Re: HTML and PHP link
- From: Casper <Casper@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 14 Jun 2006 23:41:01 -0700
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@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6355D24B-3BB2-4756-BB08-313A7622019A@xxxxxxxxxxxxxxxx
Hi Murray
The complete PHP file is as follows
<?
$to = "casper@xxxxxxxxxxxxxx";
$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@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8D2E14FB-84F1-40D3-A938-C0BDDE27D576@xxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxx";
$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
- Follow-Ups:
- Re: HTML and PHP link
- From: Stefan B Rusynko
- Re: HTML and PHP link
- References:
- Re: HTML and PHP link
- From: Murray
- Re: HTML and PHP link
- From: Casper
- Re: HTML and PHP link
- From: Murray
- Re: HTML and PHP link
- Prev by Date: Re: save image with double click instead of right click
- Next by Date: Re: using Access database with FP2003
- Previous by thread: Re: HTML and PHP link
- Next by thread: Re: HTML and PHP link
- Index(es):
Relevant Pages
|