Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
EliDee #1
Javascript and forms HELP!!!!!
Guys,
I have no knowledge of javascript at all, but I need to make a form which will
validate fields using javascript and then submit the data to a mysql database.
Can any one help..... here is my form
<HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Leads Report</title>
</head>
<body>
Problem Leads:<br>
<form action="leads.php" method="post">
<div align="left"><span class="style1"> *required field
</span>
</div>
<table width="98%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td width="18%"><div align="right"><span
class="style2">*</span>Manager</div></td>
<td width="38%"> <select name="manager" id="manager">
<option>Claire McCall</option>
<option>Gillian Howieson</option>
<option>Jennifer Eadie</option>
</select></td>
<td width="44%"><div align="center" class="style3">WHERE YOU FIND TABLE
NAMES </div></td>
</tr>
<tr>
<td width="18%"><div align="right"><span
class="style2">*</span>BG-Login</div></td>
<td width="38%"><input type="text" name="agent" size="30" maxlength="30"
/></td>
<td width="44%"><div align="center" class="style3">ENERGY</div></td>
</tr>
<tr>
<td width="18%"><div align="right"><span class="style2">*</span>Customer
ID</div></td>
<td width="38%"><input type="text" name="cust_no" size="30" maxlength="30"
/></td>
<td width="44%" align="center" valign="top"><img
src="../graphix/energytables.gif" width="250" height="77"></td>
</tr>
<tr>
<td width="18%"><div align="right">Premise Number</div></td>
<td width="38%"><input type="text" name="premise_no" size="30"
maxlength="30" /></td>
<td width="44%" align="center" valign="top"><span
class="style3">HOMECARE</span></td>
</tr>
<tr>
<td width="18%"><div align="right">Title</div></td>
<td width="38%"><input type="text" name="title" size="30" maxlength="30"
/></td>
<td width="44%" rowspan="12" align="center" valign="top"><div
align="center"></div> <img src="../graphix/homecaretables.gif" width="300"
height="318"></td>
</tr>
<tr>
<td width="18%"><div align="right">Initial</div></td>
<td width="38%"><input type="text" name="initial" size="30" maxlength="30"
/></td>
</tr>
<tr>
<td width="18%"><div align="right"><span
class="style2">*</span>Surname:</div></td>
<td width="38%"><input type="text" name="surname" size="30" maxlength="30"
/></td>
</tr>
<tr>
<td><div align="right">House</div></td>
<td><input type="text" name="house" size="30" maxlength="30" /></td>
</tr>
<tr>
<td><div align="right">address line 1 </div></td>
<td><input type="text" name="address_1" size="30" maxlength="30" /></td>
</tr>
<tr>
<td><div align="right">address line 2</div></td>
<td><input type="text" name="address_2" size="30" maxlength="30" /></td>
</tr>
<tr>
<td><div align="right">city</div></td>
<td><input type="text" name="city" size="30" maxlength="30" /></td>
</tr>
<tr>
<td><div align="right">postcode</div></td>
<td><input type="text" name="postcode" size="30" maxlength="30" /></td>
</tr>
<tr>
<td><div align="right"><span class="style2">*</span>phone</div></td>
<td><input type="text" name="phone" size="30" maxlength="30" />
</td>
</tr>
<tr>
<td><div align="right"><span class="style2">*</span>table_name</div></td>
<td><select name="table_name" id="table_name">
<option>BG_NRG_DF_ERT_07032005</option>
<option>BG_NRG_DF_ERT_12022005</option>
<option>BG_NRG_DF_14032005</option>
<option>BG_NRG_DF_27022005</option>
<option>BG_NRG_DF_28022005</option>
<option>BG_NRG_DF_12022005</option>
<option>BG_NRG_DF_07022005</option>
<option>BG_NRG_DF_31012005</option>
<option>BG_NRG_SF_NEO_29012005</option>
<option>BG_NRG_SF_NEO_08022005</option>
<option>BG_NRG_SF_NEO_12022005</option>
<option>BG_NRG_SF_NEO_27022005</option>
<option>BG_NRG_SF_NEO_28022005</option>
<option>BG_NRG_SF_NEO_14032005</option>
<option>BG_NRG_SF_ERT_07032005</option>
<option>BG_NRG_SF_25022005</option>
<option>BG_NRG_SF_14032005</option>
<option>BG_NRG_SF_12022005</option>
<option>BG_NRG_SF_24022005</option>
<option>BG_HEC2_09032005</option>
<option>BG_HEC8_09032005</option>
<option>BG_HEC8_12022005</option>
<option>BG_HEC2_12022005</option>
<option>BG_KAC11_09032005</option>
<option>BG_KAC5_09032005</option>
<option>BG_KAC11_15022005</option>
<option>BG_KAC5_15022005</option>
<option>BG_UPG_NOHEC_09032005</option>
<option>BG_UPG_NOHEW_17022005</option>
</select></td>
</tr>
<tr>
<td><div align="right">Notes</div></td>
<td><input type="text" name="notes" size="50" maxlength="255" /></td>
</tr>
<tr>
<td><div align="right"></div></td>
<td><input type="submit" name="submit" value="Submit!" /></td>
</tr>
</table>
<p />
</form>
</body>
</html>
EliDee Guest
-
Javascript forms for dummies?
:confused; I'm working on a website for a distributer of alcoholic beverages, and I need to implement a gateway that collects the user's age and... -
Forms and Javascript
HI, Im working on a page that give directions to an event. the event has multipul locations, though. im trying to use a mapquest form that is... -
Flash Forms and Javascript Validation
Ok, I am having a little trouble incorporating a javascript file that calls a function to validate form fields into my flash form. I am not sure... -
Flash Forms and javascript
I have been told that we can no longer use our javascript, cfform.js with the new flash forms? Is this accurate, if so why are the .js scripts... -
CFLOCATION, JavaScript and Forms
i'm having a bit of a hard time trying to get my login script to properly execute. ideally, after the user is verified, the login page checks the...



Reply With Quote

