Hi,
I have been trying to create a form which directly sends an email to me. I have found the php script needed but I have to edit the preset form.
THE THING IS THAT I HAVE NO CLUE HOW TO EDIT OR WRITE PHP SCRIPTS!!!
I tried editing the existing fileds and it worked (in the form and the script, there was a name and email text box only...I managed to add a phone and address and city text boxes and I added the php scripts to the existing one.
But I also have radio buttons in the form and I have been trying for 3 days to find the script for them but I couldnt.
Can anyone please help me!!!!
any help is much appreciated.
I also need to configure the message that is automatically sent to my email address to display ALL of the information I have in the form I created (name, eamil, address, city, phone, mobile, order...) not only the ones they have.
I have tried to add $city, $phone .... but I was not able to create spaces between them (like
in html) so all the info I received in my email where stuck next to each other!!
I have provided you with the html code of my form, the html code of the form I found (that has the php script) and the PHP script.
This is the html code of the form I created.
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Order</title>
</head>
<body>
<p align="center">
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="349" height="94">
<param name="movie" value="Order.swf">
<param name="quality" value="High">
<embed src="Order.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="349" height="94" quality="High"></object>
</p>
<p align="left">
<font size="2" face="Verdana">Personal Info</font><font face="Verdana" size="1"> </font></td>
<td style="border-style: dotted; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px">
</td></tr>
</table></p>
<table border="0" cellpadding="8" cellspacing="8" summary="feedback form" id="table12">
<tr><td style="border-style: dotted; border-width: 1px"><font face="Verdana" size="1">
Name: </font></td>
<td style="border-style: dotted; border-width: 1px">
<font size="1" face="Verdana"><input type="text" name="name" size="25" /></font></td></tr>
</table>
<table border="0" cellpadding="8" cellspacing="8" summary="feedback form" id="table13">
<tr><td style="border-style: dotted; border-width: 1px">
<p align="left">
<font face="Verdana" size="1">Email address: </font></td>
<td style="border-style: dotted; border-width: 1px">
<font size="1" face="Verdana"><input type="text" name="email" size="25" /></font></td></tr>
</table>
<table border="0" cellpadding="8" cellspacing="8" summary="feedback form" id="table14">
<tr><td style="border-style: dotted; border-width: 1px">
<font face="Verdana" size="1">
Phone
</font></td><td style="border-style: dotted; border-width: 1px"><font size="1" face="Verdana">
<input type="text" name="phone" size="25" /></font></td></tr>
</table>
<table border="0" cellpadding="8" cellspacing="8" summary="feedback form" id="table15">
<tr><td style="border-style: dotted; border-width: 1px"><font face="Verdana" size="1">
Mobile
</font></td><td style="border-style: dotted; border-width: 1px"><font size="1" face="Verdana">
<input type="text" name="mobile" size="25" /></font></td></tr>
</table>
<table border="0" cellpadding="8" cellspacing="8" summary="feedback form" id="table16">
<tr><td style="border-style: dotted; border-width: 1px">
<font face="Verdana" size="1">City
</font></td><td style="border-style: dotted; border-width: 1px"><font size="1" face="Verdana">
<input type="text" name="city" size="25" /></font></td></tr>
</table>
<table border="0" cellpadding="8" cellspacing="8" summary="feedback form" id="table17">
<tr><td style="border-style: dotted; border-width: 1px">
<font face="Verdana" size="1">Address
</font></td><td style="border-style: dotted; border-width: 1px"><font size="1" face="Verdana">
<input type="text" name="address" size="25" /></font></td></tr>
</table>
</p>
<p dir="ltr"><font face="Verdana"><font size="2">Prices:</font>
<font style="font-size: 7pt">Please click on Quality Overview in the top menu to
read more about the Quality and the Prices.</font></font></p>
<table border="0" cellpadding="8" cellspacing="8" summary="feedback form" id="table5" width="526">
<tr><td width="38" style="border-style: dotted; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"><font face="Verdana" size="1">Type</font></td>
<td style="border-style: dotted; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px">
<font size="1" face="Verdana">
<input type="radio" name="Type" value="DVD" checked>DVD
<input type="radio" name="Type" value="CD">CD
</font></td></tr>
</table>
<table border="0" cellpadding="8" cellspacing="8" summary="feedback form" id="table6" width="526">
<tr><td width="38" style="border-style: dotted; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"><font face="Verdana" size="1">Cover</font></td>
<td style="border-style: dotted; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px">
<font size="1" face="Verdana">
<input type="radio" name="Cover" value="Plastic" checked>Hard Plastic
<input type="radio" name="Cover" value="Nylon">Nylon</font></td></tr>
<tr><td width="38" style="border-style: dotted; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"><font face="Verdana" size="1">Cover Image</font></td>
<td style="border-style: dotted; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px">
<font size="1" face="Verdana">
<input type="radio" name="Cover Image" value="Color" checked>Color
High-Resolution
<input type="radio" name="Cover Image" value="B&W">Black & White</font></td></tr>
</table>
<font face="Verdana" size="1"></font></p>
<font face="Verdana" size="1"></font><font face="Verdana" size="2">Your Order</font></p>
<table border="0" cellpadding="8" cellspacing="8" summary="feedback form" id="table3">
<tr>
<td>
<textarea rows="15" cols="45" name="Order">Please type in your order or request any DVD Movie you wish.</textarea>
</td>
</tr>
</table>
<form action="feedback.php" method="post">
<input type="submit" value="Submit" />
<input type="reset" value="Reset" name="B1"></p>
</body>
</html>