Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

form to mail

the mail() function

Moderators: macek, egami, gesf

form to mail

Postby cermin_mata » Sat Feb 01, 2003 4:01 am

how to make form that contain

1. form
2. check eror (all form must fill) if not display what is no fill
3. display what has been fill out.. (comformation)
4. if comform...clik ok...and send to owner email...

the example form..

<form name="form1" method="post" action="">
<table width="90%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="42%">
<div align="right">Name</div>
</td>
<td width="58%">
<input type="text" name="name" size="30">
</td>
</tr>
<tr>
<td width="42%">
<div align="right">e-mail</div>
</td>
<td width="58%">
<input type="text" name="email" size="30">
</td>
</tr>
<tr>
<td width="42%">
<div align="right">Gender</div>
</td>
<td width="58%">
<input type="radio" name="radiobutton1" value="radiobutton">
male
<input type="radio" name="radiobutton2" value="radiobutton">
Female </td>
</tr>
<tr>
<td width="42%">
<div align="right">Country</div>
</td>
<td width="58%">
<select name="select">
<option value="Us">Us</option>
<option value="Erope">Erope</option>
<option value="Asia">Asia</option>
</select>
</td>
</tr>
<tr>
<td width="42%">
<div align="right"></div>
</td>
<td width="58%">&</td>
</tr>
<tr>
<td width="42%">
<div align="right">Buy What</div>
</td>
<td width="58%">
<p>
<input type="checkbox" name="buy1" value="checkbox">
10 t-shirt ($10)</p>
<p>
<input type="checkbox" name="checkbox" value="checkbox">
20 t-shirt ($20)</p>
</td>
</tr>
<tr>
<td width="42%">
<div align="right">Total</div>
</td>
<td width="58%">
<input type="text" name="textfield" value="$ sum all">
</td>
</tr>
<tr>
<td width="42%">
<div align="right">message</div>
</td>
<td width="58%">
<textarea name="textfield2" cols="30" rows="5"></textarea>
</td>
</tr>
<tr>
<td width="42%">
<div align="right">Password</div>
</td>
<td width="58%">
<input type="password" name="textfield3">
</td>
</tr>
<tr>
<td width="42%">
<div align="right">Conform password</div>
</td>
<td width="58%">
<input type="password" name="textfield4">
</td>
</tr>
<tr>
<td width="42%">&</td>
<td width="58%">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Reset">
</td>
</tr>
</table>
</form>

i want all field must fill out and if not eror message will display ..
please help me..
cermin_mata
New php-forum User
New php-forum User
 
Posts: 5
Joined: Thu Jan 16, 2003 7:59 am

Postby Oleg Butuzov » Sun Feb 02, 2003 12:31 am

I will helh you! I will give you a link at the documentation ok ?

http://www.php.net/docs.php
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am


Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron