This may sound like a stupid question to most of you but I am learning web developing and need help with php forms.
I have created the form. I have created the script and it seems to work i.e. it picks up and displays the fullname variable which is an input field. It also displays the thank you msg in its entirety.
However, I have no idea where it's saving the input collected the form. It's certainly not mailing it to me. I tried to take a look at the mail () but got all confused.
Also, do I need to save all my php scripts in a cgi folder?
Could someone please help me? Thanks.
Here is my PHP script. My form has 3 fields $fullname, $email, $comments
<?php
/*Isset function, L1 to L12, checks to ensure user was directed from
the feedback If not then it sends them back to fill the form. You MUST
have the "exit" break for security reasons it prevents users to
view codes below the "exit;" */
if(!isset($HTTP_POST_VARS["feed"]))
{
header("Location: feedback.htm");
exit;
}
?>
<html>
<head><title>Contact Form</title></head>
<body bgcolor="#FFFFFF" text="#333333" link="#000000">
<table border="0" cellpadding="0" cellspacing="0" width="100%"
bgcolor="#E5E5E5">
<tr>
<td><p align="left" class="heading1"><font size="2"
face="Verdana"><img
src="../practise/sahara.jpg"
align="left" hspace="6" width="115" height="151"></font><font
size="5" face="Verdana"><b>Thank You </b><b><i><?php echo "$fullname!" ?></i></b><b>
</b></font></p>
<blockquote>
<p align="left"><font size="2" face="Verdana"><br>
You will hear from us ONLY IF we have an answer to
your question. In the meantime, please visit us at the
fanclub. <br>
<br>
</font><a
href="http://groups.yahoo.com/"
target="new"><font size="2" face="Arial"><strong>Click
here</strong></font></a><font size="2" face="Arial">
to join or visit the club.</font><font size="5"
face="Verdana"> </font></p>
</blockquote>
</td>
</tr>
</table>
</div>
</body>
</html>
I have created the form. I have created the script and it seems to work i.e. it picks up and displays the fullname variable which is an input field. It also displays the thank you msg in its entirety.
However, I have no idea where it's saving the input collected the form. It's certainly not mailing it to me. I tried to take a look at the mail () but got all confused.
Also, do I need to save all my php scripts in a cgi folder?
Could someone please help me? Thanks.
Here is my PHP script. My form has 3 fields $fullname, $email, $comments
<?php
/*Isset function, L1 to L12, checks to ensure user was directed from
the feedback If not then it sends them back to fill the form. You MUST
have the "exit" break for security reasons it prevents users to
view codes below the "exit;" */
if(!isset($HTTP_POST_VARS["feed"]))
{
header("Location: feedback.htm");
exit;
}
?>
<html>
<head><title>Contact Form</title></head>
<body bgcolor="#FFFFFF" text="#333333" link="#000000">
<table border="0" cellpadding="0" cellspacing="0" width="100%"
bgcolor="#E5E5E5">
<tr>
<td><p align="left" class="heading1"><font size="2"
face="Verdana"><img
src="../practise/sahara.jpg"
align="left" hspace="6" width="115" height="151"></font><font
size="5" face="Verdana"><b>Thank You </b><b><i><?php echo "$fullname!" ?></i></b><b>
</b></font></p>
<blockquote>
<p align="left"><font size="2" face="Verdana"><br>
You will hear from us ONLY IF we have an answer to
your question. In the meantime, please visit us at the
fanclub. <br>
<br>
</font><a
href="http://groups.yahoo.com/"
target="new"><font size="2" face="Arial"><strong>Click
here</strong></font></a><font size="2" face="Arial">
to join or visit the club.</font><font size="5"
face="Verdana"> </font></p>
</blockquote>
</td>
</tr>
</table>
</div>
</body>
</html>