HI
I am trying to place an RSVP form on my website.
so far i have done the following:
- I created a form on a page that i saved as form.php
- in form properties my form name is RSVP, the action is thankyou.php, method is POST, and encoding type is mutlipart/form-data
- within page proterties of my form page - my file extension is html
- i then created a page save as thankyou.bvp
- on my thankyou page, within page properties, my title is thankyou and my file extension is php
- within page html of my thankyou page i inserted the following script:
<script language="php">
$email = $HTTP_POST_VARS[email];
$mailto = "samy_71********.com";
$mailsubj = "RSVP";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }
if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
- i inserted this script within the Inside Body Tag.
- now when i preview my form page and click on the sbmit button of my form - it takes me to a page that says -Internet Explorer cannot display the webpage
can anyone tell m what my problem may be?
I am trying to place an RSVP form on my website.
so far i have done the following:
- I created a form on a page that i saved as form.php
- in form properties my form name is RSVP, the action is thankyou.php, method is POST, and encoding type is mutlipart/form-data
- within page proterties of my form page - my file extension is html
- i then created a page save as thankyou.bvp
- on my thankyou page, within page properties, my title is thankyou and my file extension is php
- within page html of my thankyou page i inserted the following script:
<script language="php">
$email = $HTTP_POST_VARS[email];
$mailto = "samy_71********.com";
$mailsubj = "RSVP";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }
if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
- i inserted this script within the Inside Body Tag.
- now when i preview my form page and click on the sbmit button of my form - it takes me to a page that says -Internet Explorer cannot display the webpage
can anyone tell m what my problem may be?
Comment