- Oct 27, 2004
- 214
- 0
- 0
First of all I have no experience or knowledge in scripting language, but I have done similar and complex stuff using asp back in college in our web design class
I would like to ask for some assistance on how to construct the php script for this simple "form to email" page. Since I have no experience using php I had a headache figuring out the code.
I have already made a very simple html page with the form details (below is the code). All i need is the php script that will send the details entered to email. I just need the simple code to send the details to email or access database if possible (no security stuff necessary, i need the simplest code) it doesnt matter if this will work with my current setup (i have installed iis and php on my machine)
<html>
<head>
<title>Email Form </title>
</head>
<body>
<form method="post" action="senddetails.php">
<p><font face="Arial, Helvetica, sans-serif">First Name:</font>
<input type="text" name="firstname" size="35" />
</p>
<p><br />
<font face="Arial, Helvetica, sans-serif">Family Name: </font>
<input type="text" name="familyname" size="35" />
</p>
<p><br />
<font face="Arial, Helvetica, sans-serif">Email Address:</font>
<input type="text" name="emailaddress" size="35" />
</p>
<p><br />
<br />
<input type="submit" value="Send Details" />
<br />
</p>
</form>
</body>
</html>
Lastly the reason why I stumbled upon php is because of my search for "form to email" on google and it suggest me to use php, I know the asp for this and it is easier but i needed a different language, is there any other scripting language that can do "form to email" or form to database" function?
Thanks for any replies!
I would like to ask for some assistance on how to construct the php script for this simple "form to email" page. Since I have no experience using php I had a headache figuring out the code.
I have already made a very simple html page with the form details (below is the code). All i need is the php script that will send the details entered to email. I just need the simple code to send the details to email or access database if possible (no security stuff necessary, i need the simplest code) it doesnt matter if this will work with my current setup (i have installed iis and php on my machine)
<html>
<head>
<title>Email Form </title>
</head>
<body>
<form method="post" action="senddetails.php">
<p><font face="Arial, Helvetica, sans-serif">First Name:</font>
<input type="text" name="firstname" size="35" />
</p>
<p><br />
<font face="Arial, Helvetica, sans-serif">Family Name: </font>
<input type="text" name="familyname" size="35" />
</p>
<p><br />
<font face="Arial, Helvetica, sans-serif">Email Address:</font>
<input type="text" name="emailaddress" size="35" />
</p>
<p><br />
<br />
<input type="submit" value="Send Details" />
<br />
</p>
</form>
</body>
</html>
Lastly the reason why I stumbled upon php is because of my search for "form to email" on google and it suggest me to use php, I know the asp for this and it is easier but i needed a different language, is there any other scripting language that can do "form to email" or form to database" function?
Thanks for any replies!