HTML and PHP link

C

Casper

Hi I have a html form page created in FrontPage 2003 where a user adds there
info on and then it is send via a php page but all it does is only pulling
through the titles not the users info, for example
The html form has the following on it;
Title*: Mr Mrs Ms Miss (with radio buttons to select)
First Name*: (with a text box for name)
Surname*: (with text box for surname)

Then this is part of the php that is working but it only e-mails the Titles
not the text box info.
<?
$to = "(e-mail address removed)";
$subject = "Message from the FPIS Contact Page";
$msg = "Title:" . $contact_gendertitle . "\n\n";
$msg .= "First Name:" . $contact_firstname . "\n\n";
$msg .= "Surname:" . $contact_surname . "\n\n";

What can I do to get it to pull through the info in the text boxes
Regards
Casper
 
C

Casper

Hi Murray
The complete PHP file is as follows
<?
$to = "(e-mail address removed)";
$subject = "Message from the FPIS Contact Page";
$msg = "Title:" . $contact_gendertitle . "\n\n";
$msg .= "First Name:" . $contact_firstname . "\n\n";
$msg .= "Surname:" . $contact_surname . "\n\n";
$msg .= "Street Address:" . $contact_streetadd . "\n\n";
$msg .= "Suburb:" . $contact_suburb . "\n\n";
$msg .= "City or Town:" . $contact_city_town . "\n\n";
$msg .= "Zip or Postcode:" . $contact_zip_postcode . "\n\n";
$msg .= "Province or State:" . $contact_province_state . "\n\n";
$msg .= "Country:" . $contact_country . "\n\n";
$msg .= "Company:" . $contact_company . "\n\n";
$msg .= "Position:" . $contact_position . "\n\n";
$msg .= "Home Phone:" . $contact_homephone . "\n\n";
$msg .= "Business Phone:" . $contact_busphone . "\n\n";
$msg .= "Mobile Phone:" . $contact_mobilephone . "\n\n";
$msg .= "Fax Number:" . $contact_fax . "\n\n";
$msg .= "E-mail Address:" . $contact_email . "\n\n";
$msg .= "Message:" . $contact_message . "\n\n";
mail ($to, $subject, $msg, "Message from the Contact Page");
?>

If I click on the title radio button then view the code this is highlighted
<input type="radio" name="contact_gendertitle" value="Mr">
and the form field properties shows contact_gendertitle

When I click on the text box and then view the code this is highlighted
<input name="contact_firstname" type="text" id="contact_firstname" size="45"
maxlength="45"></
and the form field properties shows contact_firstname and the rest of the
html file is the same

Regards
Casper
 
M

Murray

Can I assume that $contact_message is the field that you are wanting to have
included in the email?

Frankly, if that's the entire PHP file, I don't see how anything is being
included.

You should see something like -

if(isset($_POST['contactfield'])) {
$contact_message=$_POST['contactfield']; }

that would be required to get the value of the field into the
$contact_message variable.
 
C

Casper

Hi Murray
This is the link to the contact page for you to view
http://www.fpis.co.nz/pages/contact_us.htm and I need everything that is
entered on this page to be e-mailed and for now only the titles on the left
hand side is e-mailed nothing else
Regards
Casper

Murray said:
Can I assume that $contact_message is the field that you are wanting to have
included in the email?

Frankly, if that's the entire PHP file, I don't see how anything is being
included.

You should see something like -

if(isset($_POST['contactfield'])) {
$contact_message=$_POST['contactfield']; }

that would be required to get the value of the field into the
$contact_message variable.

--
Murray
--------------
MVP FrontPage


Casper said:
Hi Murray
The complete PHP file is as follows
<?
$to = "(e-mail address removed)";
$subject = "Message from the FPIS Contact Page";
$msg = "Title:" . $contact_gendertitle . "\n\n";
$msg .= "First Name:" . $contact_firstname . "\n\n";
$msg .= "Surname:" . $contact_surname . "\n\n";
$msg .= "Street Address:" . $contact_streetadd . "\n\n";
$msg .= "Suburb:" . $contact_suburb . "\n\n";
$msg .= "City or Town:" . $contact_city_town . "\n\n";
$msg .= "Zip or Postcode:" . $contact_zip_postcode . "\n\n";
$msg .= "Province or State:" . $contact_province_state . "\n\n";
$msg .= "Country:" . $contact_country . "\n\n";
$msg .= "Company:" . $contact_company . "\n\n";
$msg .= "Position:" . $contact_position . "\n\n";
$msg .= "Home Phone:" . $contact_homephone . "\n\n";
$msg .= "Business Phone:" . $contact_busphone . "\n\n";
$msg .= "Mobile Phone:" . $contact_mobilephone . "\n\n";
$msg .= "Fax Number:" . $contact_fax . "\n\n";
$msg .= "E-mail Address:" . $contact_email . "\n\n";
$msg .= "Message:" . $contact_message . "\n\n";
mail ($to, $subject, $msg, "Message from the Contact Page");
?>

If I click on the title radio button then view the code this is
highlighted
<input type="radio" name="contact_gendertitle" value="Mr">
and the form field properties shows contact_gendertitle

When I click on the text box and then view the code this is highlighted
<input name="contact_firstname" type="text" id="contact_firstname"
size="45"
maxlength="45"></
and the form field properties shows contact_firstname and the rest of the
html file is the same

Regards
Casper
 
S

Stefan B Rusynko

To start with that page will not send anything to anyone
Your form fields need to be inside of a <form> </form> set of tags and the form action set to your PHP page (fpis_contact.php)
- you do not send a form by attaching a hyperlink to a submit button

Then as Murray points out your fpis_contact.php page need to get each of the form field values before your PHP code attempts to use
them

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi Murray
| This is the link to the contact page for you to view
| http://www.fpis.co.nz/pages/contact_us.htm and I need everything that is
| entered on this page to be e-mailed and for now only the titles on the left
| hand side is e-mailed nothing else
| Regards
| Casper
|
| "Murray" wrote:
|
| > Can I assume that $contact_message is the field that you are wanting to have
| > included in the email?
| >
| > Frankly, if that's the entire PHP file, I don't see how anything is being
| > included.
| >
| > You should see something like -
| >
| > if(isset($_POST['contactfield'])) {
| > $contact_message=$_POST['contactfield']; }
| >
| > that would be required to get the value of the field into the
| > $contact_message variable.
| >
| > --
| > Murray
| > --------------
| > MVP FrontPage
| >
| >
| > | > > Hi Murray
| > > The complete PHP file is as follows
| > > <?
| > > $to = "(e-mail address removed)";
| > > $subject = "Message from the FPIS Contact Page";
| > > $msg = "Title:" . $contact_gendertitle . "\n\n";
| > > $msg .= "First Name:" . $contact_firstname . "\n\n";
| > > $msg .= "Surname:" . $contact_surname . "\n\n";
| > > $msg .= "Street Address:" . $contact_streetadd . "\n\n";
| > > $msg .= "Suburb:" . $contact_suburb . "\n\n";
| > > $msg .= "City or Town:" . $contact_city_town . "\n\n";
| > > $msg .= "Zip or Postcode:" . $contact_zip_postcode . "\n\n";
| > > $msg .= "Province or State:" . $contact_province_state . "\n\n";
| > > $msg .= "Country:" . $contact_country . "\n\n";
| > > $msg .= "Company:" . $contact_company . "\n\n";
| > > $msg .= "Position:" . $contact_position . "\n\n";
| > > $msg .= "Home Phone:" . $contact_homephone . "\n\n";
| > > $msg .= "Business Phone:" . $contact_busphone . "\n\n";
| > > $msg .= "Mobile Phone:" . $contact_mobilephone . "\n\n";
| > > $msg .= "Fax Number:" . $contact_fax . "\n\n";
| > > $msg .= "E-mail Address:" . $contact_email . "\n\n";
| > > $msg .= "Message:" . $contact_message . "\n\n";
| > > mail ($to, $subject, $msg, "Message from the Contact Page");
| > > ?>
| > >
| > > If I click on the title radio button then view the code this is
| > > highlighted
| > > <input type="radio" name="contact_gendertitle" value="Mr">
| > > and the form field properties shows contact_gendertitle
| > >
| > > When I click on the text box and then view the code this is highlighted
| > > <input name="contact_firstname" type="text" id="contact_firstname"
| > > size="45"
| > > maxlength="45"></
| > > and the form field properties shows contact_firstname and the rest of the
| > > html file is the same
| > >
| > > Regards
| > > Casper
| > >
| > >
| > >
| > > "Murray" wrote:
| > >
| > >> What is the name of the textbox?
| > >>
| > >> Can you show me the entire code on the PHP page?
| > >>
| > >> --
| > >> Murray
| > >> --------------
| > >> MVP FrontPage
| > >>
| > >>
| > >> | > >> > Hi I have a html form page created in FrontPage 2003 where a user adds
| > >> > there
| > >> > info on and then it is send via a php page but all it does is only
| > >> > pulling
| > >> > through the titles not the users info, for example
| > >> > The html form has the following on it;
| > >> > Title*: Mr Mrs Ms Miss (with radio buttons to select)
| > >> > First Name*: (with a text box for name)
| > >> > Surname*: (with text box for surname)
| > >> >
| > >> > Then this is part of the php that is working but it only e-mails the
| > >> > Titles
| > >> > not the text box info.
| > >> > <?
| > >> > $to = "(e-mail address removed)";
| > >> > $subject = "Message from the FPIS Contact Page";
| > >> > $msg = "Title:" . $contact_gendertitle . "\n\n";
| > >> > $msg .= "First Name:" . $contact_firstname . "\n\n";
| > >> > $msg .= "Surname:" . $contact_surname . "\n\n";
| > >> >
| > >> > What can I do to get it to pull through the info in the text boxes
| > >> > Regards
| > >> > Casper
| > >> >
| > >>
| > >>
| > >>
| >
| >
| >
 
C

Casper

Hi Stefan
Thanx for the info I must be stupid not to get paid to do this for my boss
but in the long run it will help me to understand everything.
Is there then maybe a easier way to submit the info directly from the html
page instead of doing it through the php page?
Cheers
Casper

Stefan B Rusynko said:
To start with that page will not send anything to anyone
Your form fields need to be inside of a <form> </form> set of tags and the form action set to your PHP page (fpis_contact.php)
- you do not send a form by attaching a hyperlink to a submit button

Then as Murray points out your fpis_contact.php page need to get each of the form field values before your PHP code attempts to use
them

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi Murray
| This is the link to the contact page for you to view
| http://www.fpis.co.nz/pages/contact_us.htm and I need everything that is
| entered on this page to be e-mailed and for now only the titles on the left
| hand side is e-mailed nothing else
| Regards
| Casper
|
| "Murray" wrote:
|
| > Can I assume that $contact_message is the field that you are wanting to have
| > included in the email?
| >
| > Frankly, if that's the entire PHP file, I don't see how anything is being
| > included.
| >
| > You should see something like -
| >
| > if(isset($_POST['contactfield'])) {
| > $contact_message=$_POST['contactfield']; }
| >
| > that would be required to get the value of the field into the
| > $contact_message variable.
| >
| > --
| > Murray
| > --------------
| > MVP FrontPage
| >
| >
| > | > > Hi Murray
| > > The complete PHP file is as follows
| > > <?
| > > $to = "(e-mail address removed)";
| > > $subject = "Message from the FPIS Contact Page";
| > > $msg = "Title:" . $contact_gendertitle . "\n\n";
| > > $msg .= "First Name:" . $contact_firstname . "\n\n";
| > > $msg .= "Surname:" . $contact_surname . "\n\n";
| > > $msg .= "Street Address:" . $contact_streetadd . "\n\n";
| > > $msg .= "Suburb:" . $contact_suburb . "\n\n";
| > > $msg .= "City or Town:" . $contact_city_town . "\n\n";
| > > $msg .= "Zip or Postcode:" . $contact_zip_postcode . "\n\n";
| > > $msg .= "Province or State:" . $contact_province_state . "\n\n";
| > > $msg .= "Country:" . $contact_country . "\n\n";
| > > $msg .= "Company:" . $contact_company . "\n\n";
| > > $msg .= "Position:" . $contact_position . "\n\n";
| > > $msg .= "Home Phone:" . $contact_homephone . "\n\n";
| > > $msg .= "Business Phone:" . $contact_busphone . "\n\n";
| > > $msg .= "Mobile Phone:" . $contact_mobilephone . "\n\n";
| > > $msg .= "Fax Number:" . $contact_fax . "\n\n";
| > > $msg .= "E-mail Address:" . $contact_email . "\n\n";
| > > $msg .= "Message:" . $contact_message . "\n\n";
| > > mail ($to, $subject, $msg, "Message from the Contact Page");
| > > ?>
| > >
| > > If I click on the title radio button then view the code this is
| > > highlighted
| > > <input type="radio" name="contact_gendertitle" value="Mr">
| > > and the form field properties shows contact_gendertitle
| > >
| > > When I click on the text box and then view the code this is highlighted
| > > <input name="contact_firstname" type="text" id="contact_firstname"
| > > size="45"
| > > maxlength="45"></
| > > and the form field properties shows contact_firstname and the rest of the
| > > html file is the same
| > >
| > > Regards
| > > Casper
| > >
| > >
| > >
| > > "Murray" wrote:
| > >
| > >> What is the name of the textbox?
| > >>
| > >> Can you show me the entire code on the PHP page?
| > >>
| > >> --
| > >> Murray
| > >> --------------
| > >> MVP FrontPage
| > >>
| > >>
| > >> | > >> > Hi I have a html form page created in FrontPage 2003 where a user adds
| > >> > there
| > >> > info on and then it is send via a php page but all it does is only
| > >> > pulling
| > >> > through the titles not the users info, for example
| > >> > The html form has the following on it;
| > >> > Title*: Mr Mrs Ms Miss (with radio buttons to select)
| > >> > First Name*: (with a text box for name)
| > >> > Surname*: (with text box for surname)
| > >> >
| > >> > Then this is part of the php that is working but it only e-mails the
| > >> > Titles
| > >> > not the text box info.
| > >> > <?
| > >> > $to = "(e-mail address removed)";
| > >> > $subject = "Message from the FPIS Contact Page";
| > >> > $msg = "Title:" . $contact_gendertitle . "\n\n";
| > >> > $msg .= "First Name:" . $contact_firstname . "\n\n";
| > >> > $msg .= "Surname:" . $contact_surname . "\n\n";
| > >> >
| > >> > What can I do to get it to pull through the info in the text boxes
| > >> > Regards
| > >> > Casper
| > >> >
| > >>
| > >>
| > >>
| >
| >
| >
 
S

Stefan B Rusynko

Your server apparently does not support and is not running the FP SE
- so you must use either server side code (PGH) in your case, or what ever forms handler your host supports (CGI, etc)

Start by correcting your form and removing the link from the submit button
- then get your boss to pay for some courses in PHP

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi Stefan
| Thanx for the info I must be stupid not to get paid to do this for my boss
| but in the long run it will help me to understand everything.
| Is there then maybe a easier way to submit the info directly from the html
| page instead of doing it through the php page?
| Cheers
| Casper
|
| "Stefan B Rusynko" wrote:
|
| > To start with that page will not send anything to anyone
| > Your form fields need to be inside of a <form> </form> set of tags and the form action set to your PHP page (fpis_contact.php)
| > - you do not send a form by attaching a hyperlink to a submit button
| >
| > Then as Murray points out your fpis_contact.php page need to get each of the form field values before your PHP code attempts to
use
| > them
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > | Hi Murray
| > | This is the link to the contact page for you to view
| > | http://www.fpis.co.nz/pages/contact_us.htm and I need everything that is
| > | entered on this page to be e-mailed and for now only the titles on the left
| > | hand side is e-mailed nothing else
| > | Regards
| > | Casper
| > |
| > | "Murray" wrote:
| > |
| > | > Can I assume that $contact_message is the field that you are wanting to have
| > | > included in the email?
| > | >
| > | > Frankly, if that's the entire PHP file, I don't see how anything is being
| > | > included.
| > | >
| > | > You should see something like -
| > | >
| > | > if(isset($_POST['contactfield'])) {
| > | > $contact_message=$_POST['contactfield']; }
| > | >
| > | > that would be required to get the value of the field into the
| > | > $contact_message variable.
| > | >
| > | > --
| > | > Murray
| > | > --------------
| > | > MVP FrontPage
| > | >
| > | >
| > | > | > | > > Hi Murray
| > | > > The complete PHP file is as follows
| > | > > <?
| > | > > $to = "(e-mail address removed)";
| > | > > $subject = "Message from the FPIS Contact Page";
| > | > > $msg = "Title:" . $contact_gendertitle . "\n\n";
| > | > > $msg .= "First Name:" . $contact_firstname . "\n\n";
| > | > > $msg .= "Surname:" . $contact_surname . "\n\n";
| > | > > $msg .= "Street Address:" . $contact_streetadd . "\n\n";
| > | > > $msg .= "Suburb:" . $contact_suburb . "\n\n";
| > | > > $msg .= "City or Town:" . $contact_city_town . "\n\n";
| > | > > $msg .= "Zip or Postcode:" . $contact_zip_postcode . "\n\n";
| > | > > $msg .= "Province or State:" . $contact_province_state . "\n\n";
| > | > > $msg .= "Country:" . $contact_country . "\n\n";
| > | > > $msg .= "Company:" . $contact_company . "\n\n";
| > | > > $msg .= "Position:" . $contact_position . "\n\n";
| > | > > $msg .= "Home Phone:" . $contact_homephone . "\n\n";
| > | > > $msg .= "Business Phone:" . $contact_busphone . "\n\n";
| > | > > $msg .= "Mobile Phone:" . $contact_mobilephone . "\n\n";
| > | > > $msg .= "Fax Number:" . $contact_fax . "\n\n";
| > | > > $msg .= "E-mail Address:" . $contact_email . "\n\n";
| > | > > $msg .= "Message:" . $contact_message . "\n\n";
| > | > > mail ($to, $subject, $msg, "Message from the Contact Page");
| > | > > ?>
| > | > >
| > | > > If I click on the title radio button then view the code this is
| > | > > highlighted
| > | > > <input type="radio" name="contact_gendertitle" value="Mr">
| > | > > and the form field properties shows contact_gendertitle
| > | > >
| > | > > When I click on the text box and then view the code this is highlighted
| > | > > <input name="contact_firstname" type="text" id="contact_firstname"
| > | > > size="45"
| > | > > maxlength="45"></
| > | > > and the form field properties shows contact_firstname and the rest of the
| > | > > html file is the same
| > | > >
| > | > > Regards
| > | > > Casper
| > | > >
| > | > >
| > | > >
| > | > > "Murray" wrote:
| > | > >
| > | > >> What is the name of the textbox?
| > | > >>
| > | > >> Can you show me the entire code on the PHP page?
| > | > >>
| > | > >> --
| > | > >> Murray
| > | > >> --------------
| > | > >> MVP FrontPage
| > | > >>
| > | > >>
| > | > >> | > | > >> > Hi I have a html form page created in FrontPage 2003 where a user adds
| > | > >> > there
| > | > >> > info on and then it is send via a php page but all it does is only
| > | > >> > pulling
| > | > >> > through the titles not the users info, for example
| > | > >> > The html form has the following on it;
| > | > >> > Title*: Mr Mrs Ms Miss (with radio buttons to select)
| > | > >> > First Name*: (with a text box for name)
| > | > >> > Surname*: (with text box for surname)
| > | > >> >
| > | > >> > Then this is part of the php that is working but it only e-mails the
| > | > >> > Titles
| > | > >> > not the text box info.
| > | > >> > <?
| > | > >> > $to = "(e-mail address removed)";
| > | > >> > $subject = "Message from the FPIS Contact Page";
| > | > >> > $msg = "Title:" . $contact_gendertitle . "\n\n";
| > | > >> > $msg .= "First Name:" . $contact_firstname . "\n\n";
| > | > >> > $msg .= "Surname:" . $contact_surname . "\n\n";
| > | > >> >
| > | > >> > What can I do to get it to pull through the info in the text boxes
| > | > >> > Regards
| > | > >> > Casper
| > | > >> >
| > | > >>
| > | > >>
| > | > >>
| > | >
| > | >
| > | >
| >
| >
| >
 
C

Casper

Decided to change the whole page to make it easier

Stefan B Rusynko said:
Your server apparently does not support and is not running the FP SE
- so you must use either server side code (PGH) in your case, or what ever forms handler your host supports (CGI, etc)

Start by correcting your form and removing the link from the submit button
- then get your boss to pay for some courses in PHP

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi Stefan
| Thanx for the info I must be stupid not to get paid to do this for my boss
| but in the long run it will help me to understand everything.
| Is there then maybe a easier way to submit the info directly from the html
| page instead of doing it through the php page?
| Cheers
| Casper
|
| "Stefan B Rusynko" wrote:
|
| > To start with that page will not send anything to anyone
| > Your form fields need to be inside of a <form> </form> set of tags and the form action set to your PHP page (fpis_contact.php)
| > - you do not send a form by attaching a hyperlink to a submit button
| >
| > Then as Murray points out your fpis_contact.php page need to get each of the form field values before your PHP code attempts to
use
| > them
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > | Hi Murray
| > | This is the link to the contact page for you to view
| > | http://www.fpis.co.nz/pages/contact_us.htm and I need everything that is
| > | entered on this page to be e-mailed and for now only the titles on the left
| > | hand side is e-mailed nothing else
| > | Regards
| > | Casper
| > |
| > | "Murray" wrote:
| > |
| > | > Can I assume that $contact_message is the field that you are wanting to have
| > | > included in the email?
| > | >
| > | > Frankly, if that's the entire PHP file, I don't see how anything is being
| > | > included.
| > | >
| > | > You should see something like -
| > | >
| > | > if(isset($_POST['contactfield'])) {
| > | > $contact_message=$_POST['contactfield']; }
| > | >
| > | > that would be required to get the value of the field into the
| > | > $contact_message variable.
| > | >
| > | > --
| > | > Murray
| > | > --------------
| > | > MVP FrontPage
| > | >
| > | >
| > | > | > | > > Hi Murray
| > | > > The complete PHP file is as follows
| > | > > <?
| > | > > $to = "(e-mail address removed)";
| > | > > $subject = "Message from the FPIS Contact Page";
| > | > > $msg = "Title:" . $contact_gendertitle . "\n\n";
| > | > > $msg .= "First Name:" . $contact_firstname . "\n\n";
| > | > > $msg .= "Surname:" . $contact_surname . "\n\n";
| > | > > $msg .= "Street Address:" . $contact_streetadd . "\n\n";
| > | > > $msg .= "Suburb:" . $contact_suburb . "\n\n";
| > | > > $msg .= "City or Town:" . $contact_city_town . "\n\n";
| > | > > $msg .= "Zip or Postcode:" . $contact_zip_postcode . "\n\n";
| > | > > $msg .= "Province or State:" . $contact_province_state . "\n\n";
| > | > > $msg .= "Country:" . $contact_country . "\n\n";
| > | > > $msg .= "Company:" . $contact_company . "\n\n";
| > | > > $msg .= "Position:" . $contact_position . "\n\n";
| > | > > $msg .= "Home Phone:" . $contact_homephone . "\n\n";
| > | > > $msg .= "Business Phone:" . $contact_busphone . "\n\n";
| > | > > $msg .= "Mobile Phone:" . $contact_mobilephone . "\n\n";
| > | > > $msg .= "Fax Number:" . $contact_fax . "\n\n";
| > | > > $msg .= "E-mail Address:" . $contact_email . "\n\n";
| > | > > $msg .= "Message:" . $contact_message . "\n\n";
| > | > > mail ($to, $subject, $msg, "Message from the Contact Page");
| > | > > ?>
| > | > >
| > | > > If I click on the title radio button then view the code this is
| > | > > highlighted
| > | > > <input type="radio" name="contact_gendertitle" value="Mr">
| > | > > and the form field properties shows contact_gendertitle
| > | > >
| > | > > When I click on the text box and then view the code this is highlighted
| > | > > <input name="contact_firstname" type="text" id="contact_firstname"
| > | > > size="45"
| > | > > maxlength="45"></
| > | > > and the form field properties shows contact_firstname and the rest of the
| > | > > html file is the same
| > | > >
| > | > > Regards
| > | > > Casper
| > | > >
| > | > >
| > | > >
| > | > > "Murray" wrote:
| > | > >
| > | > >> What is the name of the textbox?
| > | > >>
| > | > >> Can you show me the entire code on the PHP page?
| > | > >>
| > | > >> --
| > | > >> Murray
| > | > >> --------------
| > | > >> MVP FrontPage
| > | > >>
| > | > >>
| > | > >> | > | > >> > Hi I have a html form page created in FrontPage 2003 where a user adds
| > | > >> > there
| > | > >> > info on and then it is send via a php page but all it does is only
| > | > >> > pulling
| > | > >> > through the titles not the users info, for example
| > | > >> > The html form has the following on it;
| > | > >> > Title*: Mr Mrs Ms Miss (with radio buttons to select)
| > | > >> > First Name*: (with a text box for name)
| > | > >> > Surname*: (with text box for surname)
| > | > >> >
| > | > >> > Then this is part of the php that is working but it only e-mails the
| > | > >> > Titles
| > | > >> > not the text box info.
| > | > >> > <?
| > | > >> > $to = "(e-mail address removed)";
| > | > >> > $subject = "Message from the FPIS Contact Page";
| > | > >> > $msg = "Title:" . $contact_gendertitle . "\n\n";
| > | > >> > $msg .= "First Name:" . $contact_firstname . "\n\n";
| > | > >> > $msg .= "Surname:" . $contact_surname . "\n\n";
| > | > >> >
| > | > >> > What can I do to get it to pull through the info in the text boxes
| > | > >> > Regards
| > | > >> > Casper
| > | > >> >
| > | > >>
| > | > >>
| > | > >>
| > | >
| > | >
| > | >
| >
| >
| >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top