Re: HTML and PHP link

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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







.



Relevant Pages

  • Re: HTML and PHP link
    ... The complete PHP file is as follows ... If I click on the title radio button then view the code this is highlighted ... and the form field properties shows contact_firstname and the rest of the ... Can you show me the entire code on the PHP page? ...
    (microsoft.public.frontpage.programming)
  • Re: HTML and PHP link
    ... Frankly, if that's the entire PHP file, I don't see how anything is being ... and the form field properties shows contact_firstname and the rest of the ... Surname*: ...
    (microsoft.public.frontpage.programming)
  • Re: Limits of PHP, SMTP Mailing
    ... mail w/ php and possibly alternatives. ... I have a PHP file ... mailer) w/ personalized messages to the users. ... Right now I've only got a few e-mails it needs to send per day so it ...
    (comp.lang.php)
  • Re: Text file splitter, date/time field
    ... large text file into which I have copied PHP file after PHP file, ... You appear to want to write code in a language that you do not know. ... Perl's regular expression in the documentation that came with perl. ...
    (comp.lang.perl.misc)
  • [UNIX] YaPiG add_comment.php PHP Code Injection
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... YaPiG is "a simple but powerful web album ... * YaPiG version 0.92b (Latest downloaded files appear to be immune to PHP ... This Proof of Concept creates a php file that echoes a notice. ...
    (Securiteam)