Heavy Metal
08-08-2005, 03:23 PM
ok i have this form <FORM METHOD="POST" ACTION="thankyou1.php"onReset="return confirm('Do you really want to Reset this form?')" onSubmit="return confirm('Do you really want to submit this form?')">
<fieldset>
<legend>
<FONT COLOR=BLUE><b><u><i><tt>First name</tt></i></u></b></FONT>
</legend>
<INPUT TYPE="text" NAME="Firstname" SIZE="30" value="for credits if update is inspired" AUTOCOMPLETE=ON>
</fieldset>
<p>
<fieldset>
<legend>
<FONT COLOR=BLUE><b><u><i><tt>what part of the site does this idea or suggestion partain to?</tt></i></u></b></FONT>
</legend>
<SELECT NAME="what_part_of_site" SIZE="1">
<OPTION SELECTED>Select one
<OPTION>Banner(if you have a link to one)
<OPTION>Background image
<OPTION>Page Links
<OPTION>Site form
<OPTION>Game site links
<OPTION>Mini-Games
<option>Guestbook
<OPTION>Other(if other please explain below)
</SELECT>
<p>
Other:<INPUT TYPE="text" NAME="other" SIZE="30" AUTOCOMPLETE=ON>
</fieldset>
<p>
<fieldset>
<legend>
<FONT COLOR=BLUE><b><u><i><tt>idea/suggestion</tt></i></u></b></FONT>
</legend>
<TEXTAREA NAME="comment" ROWS=6 COLS=40>might be included in credits if update is inspired
this must partian to what you choose above</TEXTAREA>
</fieldset>
<p>
<fieldset>
<legend>
<FONT COLOR=BLUE><b><u><i><tt>If update is inspired do u wish for your name to be shown with the credits?</tt></i></u></b></FONT>
</legend>
if none is selected or if your first name is left default then no name will be shown and your update will be shown from an Annonoymos user<br>
<SELECT NAME="Name_shown" SIZE="1">
<OPTION SELECTED>Select one
<OPTION>Yes
<OPTION>No
</SELECT>
</fieldset
<fieldset>
<legend>
<FONT COLOR=BLUE><b><u><i><tt>Do you want your idea/suggestion to be show in the credits?</tt></i></u></b></FONT>
</legend>
<SELECT NAME="sugestion_shown" SIZE="1">
<OPTION SELECTED>Select one
<OPTION>Yes
<OPTION>No
</SELECT>
</fieldset>
<fieldset>
<legend>
<FONT COLOR=BLUE><b><u><i><tt>Submit and Reset buttons</tt></b></u></i></FONT>
</legend>
<INPUT TYPE="Submit" value="Submit Form"><INPUT TYPE="Reset">
</fieldset>
and it sends it to this processing form
<html>
<head>
<title>Thank you</title>
</head>
<body>
<?php
$Firstname="<b>Firstname:</b> ".$_POST['Firstname'];
$what_part_of_site="\n<b>What part of the site does this idea or suggestion partain to:</b> ".$_POST['what_part_of_site'];
$other="\n<b>Other:</b> ".$_POST['other'];
$comment="\n<b>Idea/Suggestion:</b> ".$_POST['comment'];
$Name_shown="\n<b>If update is inspired do u wish for your name to be shown with the credits:</b> ".$_POST['Name_shown'];
$sugestion_shown="\n<b>Do you want your idea/suggestion to be show in the credits:</b> ".$_POST['sugestion_shown'];
?>
<b><i><u><tt>Thanks for submitting your Suggestion I will recieve it in a email.</b>
</i></u></tt><br>
<p>
<?php
echo $Firstname.'<br>';
echo $what_part_of_site.'<br>';
echo $other.'<br>';
echo $comment.'<br>';
echo $Name_shown.'<br>';
echo $sugestion_shown.'<br>';
?>
<?php $message="Site Suggestion Recieved:
\n\n".$Firstname.$what_part_of_site.$other.$comment.$Name_shown.$sugestion_shown;
if(!mail("gamerplanet.2@gmail.com","Site Suggestion",$message))
die("Error");
?>
</body>
</html>
and its giving me these errors whenever i hit submit and it takes me to the processing page
Notice: Undefined index: Firstname in D:\Apache Group\Apache2\htdocs\bowhuntr\thankyou1.php on line 7
Notice: Undefined index: what_part_of_site in D:\Apache Group\Apache2\htdocs\bowhuntr\thankyou1.php on line 8
Notice: Undefined index: other in D:\Apache Group\Apache2\htdocs\bowhuntr\thankyou1.php on line 9
Notice: Undefined index: comment in D:\Apache Group\Apache2\htdocs\bowhuntr\thankyou1.php on line 10
Notice: Undefined index: Name_shown in D:\Apache Group\Apache2\htdocs\bowhuntr\thankyou1.php on line 11
Notice: Undefined index: sugestion_shown in D:\Apache Group\Apache2\htdocs\bowhuntr\thankyou1.php on line 12
and i cant see the problem please help me
<fieldset>
<legend>
<FONT COLOR=BLUE><b><u><i><tt>First name</tt></i></u></b></FONT>
</legend>
<INPUT TYPE="text" NAME="Firstname" SIZE="30" value="for credits if update is inspired" AUTOCOMPLETE=ON>
</fieldset>
<p>
<fieldset>
<legend>
<FONT COLOR=BLUE><b><u><i><tt>what part of the site does this idea or suggestion partain to?</tt></i></u></b></FONT>
</legend>
<SELECT NAME="what_part_of_site" SIZE="1">
<OPTION SELECTED>Select one
<OPTION>Banner(if you have a link to one)
<OPTION>Background image
<OPTION>Page Links
<OPTION>Site form
<OPTION>Game site links
<OPTION>Mini-Games
<option>Guestbook
<OPTION>Other(if other please explain below)
</SELECT>
<p>
Other:<INPUT TYPE="text" NAME="other" SIZE="30" AUTOCOMPLETE=ON>
</fieldset>
<p>
<fieldset>
<legend>
<FONT COLOR=BLUE><b><u><i><tt>idea/suggestion</tt></i></u></b></FONT>
</legend>
<TEXTAREA NAME="comment" ROWS=6 COLS=40>might be included in credits if update is inspired
this must partian to what you choose above</TEXTAREA>
</fieldset>
<p>
<fieldset>
<legend>
<FONT COLOR=BLUE><b><u><i><tt>If update is inspired do u wish for your name to be shown with the credits?</tt></i></u></b></FONT>
</legend>
if none is selected or if your first name is left default then no name will be shown and your update will be shown from an Annonoymos user<br>
<SELECT NAME="Name_shown" SIZE="1">
<OPTION SELECTED>Select one
<OPTION>Yes
<OPTION>No
</SELECT>
</fieldset
<fieldset>
<legend>
<FONT COLOR=BLUE><b><u><i><tt>Do you want your idea/suggestion to be show in the credits?</tt></i></u></b></FONT>
</legend>
<SELECT NAME="sugestion_shown" SIZE="1">
<OPTION SELECTED>Select one
<OPTION>Yes
<OPTION>No
</SELECT>
</fieldset>
<fieldset>
<legend>
<FONT COLOR=BLUE><b><u><i><tt>Submit and Reset buttons</tt></b></u></i></FONT>
</legend>
<INPUT TYPE="Submit" value="Submit Form"><INPUT TYPE="Reset">
</fieldset>
and it sends it to this processing form
<html>
<head>
<title>Thank you</title>
</head>
<body>
<?php
$Firstname="<b>Firstname:</b> ".$_POST['Firstname'];
$what_part_of_site="\n<b>What part of the site does this idea or suggestion partain to:</b> ".$_POST['what_part_of_site'];
$other="\n<b>Other:</b> ".$_POST['other'];
$comment="\n<b>Idea/Suggestion:</b> ".$_POST['comment'];
$Name_shown="\n<b>If update is inspired do u wish for your name to be shown with the credits:</b> ".$_POST['Name_shown'];
$sugestion_shown="\n<b>Do you want your idea/suggestion to be show in the credits:</b> ".$_POST['sugestion_shown'];
?>
<b><i><u><tt>Thanks for submitting your Suggestion I will recieve it in a email.</b>
</i></u></tt><br>
<p>
<?php
echo $Firstname.'<br>';
echo $what_part_of_site.'<br>';
echo $other.'<br>';
echo $comment.'<br>';
echo $Name_shown.'<br>';
echo $sugestion_shown.'<br>';
?>
<?php $message="Site Suggestion Recieved:
\n\n".$Firstname.$what_part_of_site.$other.$comment.$Name_shown.$sugestion_shown;
if(!mail("gamerplanet.2@gmail.com","Site Suggestion",$message))
die("Error");
?>
</body>
</html>
and its giving me these errors whenever i hit submit and it takes me to the processing page
Notice: Undefined index: Firstname in D:\Apache Group\Apache2\htdocs\bowhuntr\thankyou1.php on line 7
Notice: Undefined index: what_part_of_site in D:\Apache Group\Apache2\htdocs\bowhuntr\thankyou1.php on line 8
Notice: Undefined index: other in D:\Apache Group\Apache2\htdocs\bowhuntr\thankyou1.php on line 9
Notice: Undefined index: comment in D:\Apache Group\Apache2\htdocs\bowhuntr\thankyou1.php on line 10
Notice: Undefined index: Name_shown in D:\Apache Group\Apache2\htdocs\bowhuntr\thankyou1.php on line 11
Notice: Undefined index: sugestion_shown in D:\Apache Group\Apache2\htdocs\bowhuntr\thankyou1.php on line 12
and i cant see the problem please help me