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 = "casper@firetech.co.nz";
$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

Re: HTML and PHP link by Murray

Murray
Wed Jun 14 06:24:37 CDT 2006

What is the name of the textbox?

Can you show me the entire code on the PHP page?

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


"Casper" <Casper@discussions.microsoft.com> wrote in message
news:8D2E14FB-84F1-40D3-A938-C0BDDE27D576@microsoft.com...
> 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 = "casper@firetech.co.nz";
> $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
>



Re: HTML and PHP link by Casper

Casper
Wed Jun 14 18:00:02 CDT 2006

Hi Murray
The complete PHP file is as follows
<?
$to = "casper@firetech.co.nz";
$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
>
>
> "Casper" <Casper@discussions.microsoft.com> wrote in message
> news:8D2E14FB-84F1-40D3-A938-C0BDDE27D576@microsoft.com...
> > 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 = "casper@firetech.co.nz";
> > $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
> >
>
>
>

Re: HTML and PHP link by Murray

Murray
Wed Jun 14 19:27:05 CDT 2006

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" <Casper@discussions.microsoft.com> wrote in message
news:6355D24B-3BB2-4756-BB08-313A7622019A@microsoft.com...
> Hi Murray
> The complete PHP file is as follows
> <?
> $to = "casper@firetech.co.nz";
> $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
>>
>>
>> "Casper" <Casper@discussions.microsoft.com> wrote in message
>> news:8D2E14FB-84F1-40D3-A938-C0BDDE27D576@microsoft.com...
>> > 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 = "casper@firetech.co.nz";
>> > $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
>> >
>>
>>
>>



Re: HTML and PHP link by Casper

Casper
Thu Jun 15 01:41:01 CDT 2006

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
>
>
> "Casper" <Casper@discussions.microsoft.com> wrote in message
> news:6355D24B-3BB2-4756-BB08-313A7622019A@microsoft.com...
> > Hi Murray
> > The complete PHP file is as follows
> > <?
> > $to = "casper@firetech.co.nz";
> > $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
> >>
> >>
> >> "Casper" <Casper@discussions.microsoft.com> wrote in message
> >> news:8D2E14FB-84F1-40D3-A938-C0BDDE27D576@microsoft.com...
> >> > 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 = "casper@firetech.co.nz";
> >> > $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
> >> >
> >>
> >>
> >>
>
>
>

Re: HTML and PHP link by Stefan

Stefan
Thu Jun 15 03:38:17 CDT 2006

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
_____________________________________________


"Casper" <Casper@discussions.microsoft.com> wrote in message news:DFB4F679-E165-42EA-8A06-4A03531EB81B@microsoft.com...
| 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
| >
| >
| > "Casper" <Casper@discussions.microsoft.com> wrote in message
| > news:6355D24B-3BB2-4756-BB08-313A7622019A@microsoft.com...
| > > Hi Murray
| > > The complete PHP file is as follows
| > > <?
| > > $to = "casper@firetech.co.nz";
| > > $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
| > >>
| > >>
| > >> "Casper" <Casper@discussions.microsoft.com> wrote in message
| > >> news:8D2E14FB-84F1-40D3-A938-C0BDDE27D576@microsoft.com...
| > >> > 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 = "casper@firetech.co.nz";
| > >> > $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
| > >> >
| > >>
| > >>
| > >>
| >
| >
| >



Re: HTML and PHP link by Casper

Casper
Thu Jun 15 03:56:01 CDT 2006

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
> _____________________________________________
>
>
> "Casper" <Casper@discussions.microsoft.com> wrote in message news:DFB4F679-E165-42EA-8A06-4A03531EB81B@microsoft.com...
> | 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
> | >
> | >
> | > "Casper" <Casper@discussions.microsoft.com> wrote in message
> | > news:6355D24B-3BB2-4756-BB08-313A7622019A@microsoft.com...
> | > > Hi Murray
> | > > The complete PHP file is as follows
> | > > <?
> | > > $to = "casper@firetech.co.nz";
> | > > $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
> | > >>
> | > >>
> | > >> "Casper" <Casper@discussions.microsoft.com> wrote in message
> | > >> news:8D2E14FB-84F1-40D3-A938-C0BDDE27D576@microsoft.com...
> | > >> > 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 = "casper@firetech.co.nz";
> | > >> > $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
> | > >> >
> | > >>
> | > >>
> | > >>
> | >
> | >
> | >
>
>
>

Re: HTML and PHP link by Stefan

Stefan
Thu Jun 15 04:16:03 CDT 2006

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
_____________________________________________


"Casper" <Casper@discussions.microsoft.com> wrote in message news:245334BA-4367-4F1A-A946-B53EC70AAD8D@microsoft.com...
| 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
| > _____________________________________________
| >
| >
| > "Casper" <Casper@discussions.microsoft.com> wrote in message news:DFB4F679-E165-42EA-8A06-4A03531EB81B@microsoft.com...
| > | 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
| > | >
| > | >
| > | > "Casper" <Casper@discussions.microsoft.com> wrote in message
| > | > news:6355D24B-3BB2-4756-BB08-313A7622019A@microsoft.com...
| > | > > Hi Murray
| > | > > The complete PHP file is as follows
| > | > > <?
| > | > > $to = "casper@firetech.co.nz";
| > | > > $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
| > | > >>
| > | > >>
| > | > >> "Casper" <Casper@discussions.microsoft.com> wrote in message
| > | > >> news:8D2E14FB-84F1-40D3-A938-C0BDDE27D576@microsoft.com...
| > | > >> > 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 = "casper@firetech.co.nz";
| > | > >> > $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
| > | > >> >
| > | > >>
| > | > >>
| > | > >>
| > | >
| > | >
| > | >
| >
| >
| >



Re: HTML and PHP link by Casper

Casper
Thu Jun 15 20:36:02 CDT 2006

Decided to change the whole page to make it easier

"Stefan B Rusynko" wrote:

> 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
> _____________________________________________
>
>
> "Casper" <Casper@discussions.microsoft.com> wrote in message news:245334BA-4367-4F1A-A946-B53EC70AAD8D@microsoft.com...
> | 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
> | > _____________________________________________
> | >
> | >
> | > "Casper" <Casper@discussions.microsoft.com> wrote in message news:DFB4F679-E165-42EA-8A06-4A03531EB81B@microsoft.com...
> | > | 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
> | > | >
> | > | >
> | > | > "Casper" <Casper@discussions.microsoft.com> wrote in message
> | > | > news:6355D24B-3BB2-4756-BB08-313A7622019A@microsoft.com...
> | > | > > Hi Murray
> | > | > > The complete PHP file is as follows
> | > | > > <?
> | > | > > $to = "casper@firetech.co.nz";
> | > | > > $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
> | > | > >>
> | > | > >>
> | > | > >> "Casper" <Casper@discussions.microsoft.com> wrote in message
> | > | > >> news:8D2E14FB-84F1-40D3-A938-C0BDDE27D576@microsoft.com...
> | > | > >> > 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 = "casper@firetech.co.nz";
> | > | > >> > $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
> | > | > >> >
> | > | > >>
> | > | > >>
> | > | > >>
> | > | >
> | > | >
> | > | >
> | >
> | >
> | >
>
>
>