473,327 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

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 2918
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

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

Similar topics

3
by: josh dismukes | last post by:
/// here is the code i'm getting a parse error on the last line of the code which /// is </html> any help will be much appreciated. <?php session_start ();
1
by: sumithradevi | last post by:
Hello Friends, I have two forms(form1 and form2) on my html page. question1 : can i access form 1 variables in form 2?. if so how? question 2: when form2 action is saveci.jsp . can i access...
2
by: sumithradevi | last post by:
Hello Friends, I have two forms(form1 and form2) on my html page. question1 : can i access form 1 variables in form 2?. if so how? question 2: when form2 action is saveci.jsp . can i access...
3
by: Kathy | last post by:
Can someone help me with the code to take the data in four fields on an HTML form and add it to a table in a database on an intranet. Thanks to all who help! Kathy
9
by: Veerle | last post by:
Hi, When you use multiple asp:Buttons on one Form, then asp.net generates html submit buttons for all of them. When you put your cursor in one of the textfields of the form, the default submit...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.