problem with my form

Hey guys, im trying to use this php e-mail form but i cant seem to get it to work, any help?

[php]<?php
if (isset($_REQUEST[‘email’]))
//if “email” is filled out, send email
{
//send email
$email = $_REQUEST[‘email’] ;
$venue = $_REQUEST[‘venue’] ;
$night = $_REQUEST[‘night’] ;
$time = $_REQUEST[‘time’] ;
$entry = $_REQUEST[‘entry’] ;
$offer = $_REQUEST[‘offer’] ;
mail("[email protected]", “$subject”,
$message, “From:” . $email);
echo “You have submitted your event.”;
}
else
//if “email” is not filled out, display the form
{
echo "
Contact Email:

Venue Name:

Night Name:

Start-Finish Time:

Entry PRice:

Offers:




"; } ?>[/php]

Try [php]if (isset($_POST[‘email’]))
//if “email” is filled out, send email
{
//send email
$email = $_POST[‘email’] ;
$venue = $_POST[‘venue’] ;
$night = $_POST[‘night’] ;
$time = $_POST[‘time’] ;
$entry = $_POST[‘entry’] ;
$offer = $_POST[‘offer’] ;
mail("[email protected]", “$subject”,
$message, “From:” . $email);
echo “You have submitted your event.”;
}
else[/php]

lothop: I don’t see any difference in the code you posted, except that the last part is missing!

Hull Calendar: do you get any errors? could you post them?

The difference is $_POST, instead of $_REQUEST. I didnt include his form because there were no changed made to it.

Sponsor our Newsletter | Privacy Policy | Terms of Service