469,909 Members | 1,630 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,909 developers. It's quick & easy.

HTML Submit Form Help

Hi there, hope someone can help me.
Code is attached.
Problems I am having:
1. Need to make all fields required except check box.
2. Want it to send info in an email when submitted without sending message from the sender's outlook box.
3. Want it to populate a pop-up message when submitted saying "Thank You!" Then form page closes on click of OK.
Code:
<html>
<head>
<title>Superiordi Request Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<form action="MAILTO:myemail@email.com" method="post" enctype="text/plain" name="request_form" id="request_form" onSubmit="checkRequired(this)">
<input type="hidden" name="required" value="date_of_request, name_of_request, email_of_request, description">
<p align="center">&nbsp;</p>
<table width="75%" border="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<tr align="right" valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<td width="41%"> <div align="right"><font size="2" face="Arial, Helvetica, sans-serif"><strong>Date
of Request:</strong></font></div></td>
<td width="59%"> <div align="left"><font size="2" face="Arial, Helvetica, sans-serif">
<input name="date_of_request" type="text" id="date_of_request">
</font></div></td>
</tr>
<tr align="right" valign="top">
<td> <div align="right"><font size="2" face="Arial, Helvetica, sans-serif"><strong>Name
of Requestor:</strong></font></div></td>
<td> <div align="left"><font size="2" face="Arial, Helvetica, sans-serif">
<input name="name_of_requestor" type="text" id="name_of_requestor" size="50">
</font></div></td>
</tr>
<tr align="right" valign="top">
<td> <div align="right"><font size="2" face="Arial, Helvetica, sans-serif"><strong>E-mail
of Requestor:</strong></font></div></td>
<td> <div align="left"><font size="2" face="Arial, Helvetica, sans-serif">
<input name="email_of_requestor" type="text" id="email_of_requestor" size="50">
</font></div></td>
</tr>

<tr align="right" valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<td nowrap>
<div align="right">
<p><font size="2" face="Arial, Helvetica, sans-serif"><strong>Description
of Request:</strong><br>
<em>Include Part Numbers, Names, Etc.</em></font></p>
</div></td>
<td nowrap>
<div align="left">
<p><font size="2" face="Arial, Helvetica, sans-serif">
<textarea name="description" cols="50" rows="5" id="description"></textarea>
</font></p>
</div></td>
</tr>
<tr align="right" valign="top">
<td height="20">
<div align="right"><font size="2" face="Arial, Helvetica, sans-serif"><strong>Low
Priority</strong> <em>(work will begin in 30 days)</em></font></div></td>
<td> <div align="left"><font size="2" face="Arial, Helvetica, sans-serif">
<input name="low_priority" type="checkbox" id="low_priority" value="yes">
</font></div></td>
</tr>
</table>

<p align="center">
<input type="submit" name="Submit" value=" Submit ">
<input id="Clear " type="reset" value=" Clear " name="Clear ">
</p>
</form>

</body>
</html>
Jul 18 '07 #1
2 2750
nomad
664 Expert 512MB
Hi there, hope someone can help me.
Code is attached.
Problems I am having:
1. Need to make all fields required except check box.
2. Want it to send info in an email when submitted without sending message from the sender's outlook box.
3. Want it to populate a pop-up message when submitted saying "Thank You!" Then form page closes on click of OK.
Code:
<html>
<head>
<title>Superiordi Request Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<form action="MAILTO:myemail@email.com" method="post" enctype="text/plain" name="request_form" id="request_form" onSubmit="checkRequired(this)">
<input type="hidden" name="required" value="date_of_request, name_of_request, email_of_request, description">
<p align="center">&nbsp;</p>
<table width="75%" border="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<tr align="right" valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<td width="41%"> <div align="right"><font size="2" face="Arial, Helvetica, sans-serif"><strong>Date
of Request:</strong></font></div></td>
<td width="59%"> <div align="left"><font size="2" face="Arial, Helvetica, sans-serif">
<input name="date_of_request" type="text" id="date_of_request">
</font></div></td>
</tr>
<tr align="right" valign="top">
<td> <div align="right"><font size="2" face="Arial, Helvetica, sans-serif"><strong>Name
of Requestor:</strong></font></div></td>
<td> <div align="left"><font size="2" face="Arial, Helvetica, sans-serif">
<input name="name_of_requestor" type="text" id="name_of_requestor" size="50">
</font></div></td>
</tr>
<tr align="right" valign="top">
<td> <div align="right"><font size="2" face="Arial, Helvetica, sans-serif"><strong>E-mail
of Requestor:</strong></font></div></td>
<td> <div align="left"><font size="2" face="Arial, Helvetica, sans-serif">
<input name="email_of_requestor" type="text" id="email_of_requestor" size="50">
</font></div></td>
</tr>

<tr align="right" valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<td nowrap>
<div align="right">
<p><font size="2" face="Arial, Helvetica, sans-serif"><strong>Description
of Request:</strong><br>
<em>Include Part Numbers, Names, Etc.</em></font></p>
</div></td>
<td nowrap>
<div align="left">
<p><font size="2" face="Arial, Helvetica, sans-serif">
<textarea name="description" cols="50" rows="5" id="description"></textarea>
</font></p>
</div></td>
</tr>
<tr align="right" valign="top">
<td height="20">
<div align="right"><font size="2" face="Arial, Helvetica, sans-serif"><strong>Low
Priority</strong> <em>(work will begin in 30 days)</em></font></div></td>
<td> <div align="left"><font size="2" face="Arial, Helvetica, sans-serif">
<input name="low_priority" type="checkbox" id="low_priority" value="yes">
</font></div></td>
</tr>
</table>

<p align="center">
<input type="submit" name="Submit" value=" Submit ">
<input id="Clear " type="reset" value=" Clear " name="Clear ">
</p>
</form>

</body>
</html>
You need to do this in PHP and Html.

nomad
Jul 18 '07 #2
Can you offer any help. I am unfamiliar with PHP...

You need to do this in PHP and Html.

nomad
Jul 18 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

By using this site, you agree to our Privacy Policy and Terms of Use.