I’m new to php so I’m not too sure if what i’m doing is right. I’ve created an email form off of a simple script which originally had only two fields, name and email, i found that the html and php worked fine.
When I added more fields, I found that the form doesn’t work. This is the php:
[CODE]<?
$message = $_REQUEST[‘name’] ;
$email = $_REQUEST[’email’] ;
$penname = $_REQUEST[‘penname’] ;
$fftitle = $_REQUEST[‘fftitle’] ;
$genre = $_REQUEST[‘genre’] ;
$rating = $_REQUEST[‘rating’] ;
$period = $_REQUEST[‘period’] ;
$pship = $_REQUEST[‘pship’] ;
$pship2 = $_REQUEST[‘pship2’] ;
$sship = $_REQUEST[‘sship’] ;
$sship2 = $_REQUEST[‘sship2’] ;
$pship = $_REQUEST[‘pship’] ;
$summary = $_REQUEST[‘summary’] ;
$link1 = $_REQUEST[‘link1’] ;
$link2 = $_REQUEST[‘link2’] ;
$link3 = $_REQUEST[‘link3’] ;
$link4 =$_REQUEST[‘link4’] ;
$link5 = $_REQUEST[‘link5’] ;
$sship3 = $_REQUEST[‘sship3’] ;
$sship4 = $_REQUEST[‘sship4’] ;
mail( “[email protected]”, “Fanfiction listing”,
$message, “From: $email” );
header( “Location: http://www.example.com/thankyou.html” );
?>
[URL=”http://www.hp-ships.com/main_files/submitff2.htm”]This is the form.
I found when i used _request for the form when it initially had two fields, it sent, though now it has more fields it doesn’t.
When I changed it to
Also I have no specified header yet, I don’t know if that makes a difference..
I’m learning as I go so a little help would be great!! Thanks.