PHP forms
Posted: Sun Dec 28, 2003 9:53 am
Hi Guys,
I am new to this forum and to PHP. I have absolutely no idea how it works and thought would get some help.
I was developing a personal website and wanted to get feedback from my visitors in a HTML form.
This is the simplest form that I am trying as a beginner. I am using the method as Post in my HTML code and wanted to know how I create a PHP file so that the information my user inputs gets stored. For example if I have the code as below:[mod_edit:
I am new to this forum and to PHP. I have absolutely no idea how it works and thought would get some help.
I was developing a personal website and wanted to get feedback from my visitors in a HTML form.
This is the simplest form that I am trying as a beginner. I am using the method as Post in my HTML code and wanted to know how I create a PHP file so that the information my user inputs gets stored. For example if I have the code as below:
Code: Select all
<form action="formresponse.php" method="post">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2">
<div align="center"></div>
</td>
</tr>
<tr>
<td>Your Full Name:</td>
<td>
<input type="text" name=" name" size="40">
</td>
</tr>
<tr>
<td>Your Email:</td>
<td>
<input type="text" name="email" size="40">
</td>
</tr>
<tr>
<td>Where are you from:</td>
<td>
<input type="text" name="Place" size="40">
</td>
</tr>
<tr>
<td>Your Website:</td>
<td>
<input name="website" type="text" id="website" value="http://" size="40">
</td>
</tr>
<tr>
<td>Your Comments:</td>
<td>
<textarea name="comments" cols="35" rows="4" id="comments"></textarea>
</td>
</tr>
<tr>
<td> </td>
<td><br>
<input type="submit" name="Submit" value="Submit">
</td>
</tr>
</table>
</form>Code: Select all
-tag added][/size]
How do I create my formresponse.php file ?
My server operating system is Linux which uses PHP 4.3.3.
Hope I have made myself clear as to what I am looking for.
Thanks for your help.