Forms in HTML
Topics
I have an HTML form in .asp page. whenever I save the .asp page the closing tag ie. </form> is automatically added after the opening tag ie. <form> as give below. HTML Code: <form name="ApplicationForm" class="appnitro" id="form_98697" method="post" action="CandInsertFormProcess.asp" onsubmit="return Validate()"> </form> <div class="form_description"> <p><img border="0" src="images/logo2.gif"></p> </div> <ul > I have used this form for over one year but the problem came up just after I formatted my PC and reinstalled Vista Service Pack 2. I wonder is there any problem with OS or something else. Please guide me any guy... Thanks in advance Riaz Hi all, I have a simple newsletter form, so just the email field and a submit, what I would like to do is to send this data to a larger subscriber form, so one that has name, email (with the data previously entered already added), list to subscribe to etc. Can this be done? Thanks ah sorry i think this should be in php thread Hi, im trying to have a math captcha in my registration form, but having trouble with setting it up in my form. sorry for the large code. If i change the value of $_POST['Submit'] to something else like $_POST['Submit1'] and then same for the math image captcha then it works, but i would like it to work as part of the form, makes sense? lol right now the form just posts the value and doesnt check for captcha values! if someone could help me out here that would be great! thank you. <?php if(isset($_POST['Submit'])){ if($_POST['Submit'] != $_SESSION['security_number']) { $error = ""; } else { $error = ""; } //NEED TO CHECK IF FIELDS ARE FILLED IN if( empty($_POST['name']) && (empty($_POST['email']))){ header("Location:Messages.php?msg=3"); exit(); } if( empty($_POST['pw1']) && (empty($_POST['pw2']))){ header( "Location:Messages.php?msg=4" ); exit(); } $name=$_POST['name']; $email=$_POST['email']; $pw1=$_POST['pw1']; $pw2=$_POST['pw2']; if("$pw1" !== "$pw2" ){ header( "Location:Messages.php?msg=5" ); exit(); } $ip = $_SERVER['REMOTE_ADDR']; //connect to the db server , check if uname exist include('config.php'); $query1=("Select * from user where email='$email'"); $result1= mysql_query($query1); $num1=mysql_num_rows($result1); if ($num1 > 0) {//Email already been used header( "Location:Messages.php?msg=11" ); exit(); }else{ $query=("Select * from user where uname='$name'"); $result= mysql_query($query); $num=mysql_num_rows($result); if ($num > 0) {//Username already exist header( "Location:Messages.php?msg=6" ); exit(); }else{ //if username does not exist insert user details $query=( "INSERT INTO user (uname, pw,email,date_joined,ip,level) VALUES ('$name',md5('$pw1'),'$email',NOW(),'$ip','Normal')"); if (@mysql_query ($query)) { header("location:login.php?reg=1"); exit; } } } mysql_close(); } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><!-- InstanceBegin template="/Templates/Auth.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <!-- InstanceBeginEditable name="doctitle" --> <title>Registration</title> <!-- InstanceEndEditable --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- InstanceBeginEditable name="head" --> <!-- InstanceEndEditable --> <link href="styleLog.css" rel="stylesheet" type="text/css"> <script language="javascript" type="text/javascript"> function reloadCaptcha() { document.getElementById('captcha').src = document.getElementById('captcha').src+ '?' +new Date(); } </script> </head> <body> <table width="100%" border="0" cellspacing="7" cellpadding="0"> <tr class="temptitle"> <td><!-- InstanceBeginEditable name="EditRegion4" -->New User Registration <!-- InstanceEndEditable --></td> </tr> <tr> <td><!-- InstanceBeginEditable name="EditRegion3" --> <form name="form1" action="register.php" method="post"> <table width="657" border="0"> <tr> <td width="122"><div align="left">Name</div></td> <td width="525"><input name="name" type="text" size="40"></td> </tr> <tr> <td><div align="left">Email</div></td> <td><input name="email" type="text" size="40"></td> </tr> <tr> <td><div align="left">Password</div></td> <td><input name="pw1" type="password" size="40"></td> </tr> <tr> <td ><div align="left">Confirm Password </div></td> <td><input name="pw2" type="password" size="40"></td> </tr> <tr> <td><img src="math_captcha/image.php" alt="Click to reload image" title="Click to reload image" id="captcha" onclick="javascript:reloadCaptcha()" /></td> <td><input type="text" name="Submit" value="what's the result?" onclick="this.value=''" /></td> <td> </tr> <tr> <td></td> <td> <input name="Submit" type="submit" value="Register"></td> </tr> </table> </form> <?=$error?> Hi, I am having a problem. I have a HTML table on my webpage but I am having trouble searching it from my main homepage using a HTML form. The html form on the homepage is: <html> <body> <form method="post" action="http://www.example.com/sites/default/files/html_table.html" <input type="text" size="30" maxlength="1000" value="" id="textBoxSearch" onkeyup="tableSearch.search(event);" /> <input type="submit" value="Search" onclick="tableSearch.runSearch();" /> </body> </html> I have a search working fine on the html page and javascript functions conducting the search as shown he <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>JavaScript Search</title> <style type="text/css"> body { font-family: Arial; font-size: 11px; } td { font-family: Arial; font-size: 11px; } th { font-family: Arial; font-size: 11px; background-color: #c8c8c8; } input { font-family: Arial; font-size: 11px; } </style> <script language="javascript" type="text/javascript"> //define the table search as an object, which can implement both functions and properties window.tableSearch = {}; //initialize the search, setup the current object tableSearch.init = function() { //define the properties I want on the tableSearch object this.Rows = document.getElementById('data').getElementsByTagName('TR'); this.RowsLength = tableSearch.Rows.length; this.RowsText = []; //loop through the table and add the data to for (var i = 0; i < tableSearch.RowsLength; i++) { this.RowsText[i] = (tableSearch.Rows[i].innerText) ? tableSearch.Rows[i].innerText.toUpperCase() : tableSearch.Rows[i].textContent.toUpperCase(); } } //onlys shows the relevant rows as determined by the search string tableSearch.runSearch = function() { //get the search term this.Term = document.getElementById('textBoxSearch').value.toUpperCase(); //loop through the rows and hide rows that do not match the search query for (var i = 0, row; row = this.Rows[i], rowText = this.RowsText[i]; i++) { row.style.display = ((rowText.indexOf(this.Term) != -1) || this.Term === '') ? '' : 'none'; } } //runs the search tableSearch.search = function(e) { //checks if the user pressed the enter key, and if they did then run the search var keycode; if (window.event) { keycode = window.event.keyCode; } else if (e) { keycode = e.which; } else { return false; } if (keycode == 13) { tableSearch.runSearch(); } else { return false; } } </script> </head> <body onload="tableSearch.init();"> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <input type="text" size="30" maxlength="1000" value="" id="textBoxSearch" onkeyup="tableSearch.search(event);" /> <input type="button" value="Search" onclick="tableSearch.runSearch();" /> </td> </tr> </tbody> </table> <br /> <table border="1" cellpadding="2" cellspacing="0"> <tr> <th>ID</th> <th>First Name</th> <th>Surname</th> <th>Website</th> </tr> <tbody id="data"> <tr> <td>1</td> <td>Heathesh</td> <td>Bhandari</td> <td><a href="http://heathesh.com">http://heathesh.com</a></td> </tr> <tr> <td>2</td> <td>Candice</td> <td>David</td> <td><a href="http://candicedavid.com">http://candicedavid.com</a></td> </tr> </tbody> </table> </body> </html> If anybody could help me please! I have run out of ideas Well here is what I'm trying to do: i want to create a form with numerous fields, once people fill in the information and click the submit button i want the information, along with the titles, to show up in a pop-up and in the pop-up have a copy button to copy everything. I'm having difficulties having it show up in a pop up message to copy. If there is a faster easier way to get the information I want suggestions are much appreciated. Thank You, Jae Hi there everyone, a question from England. I have just used the following code to create a memo field in a form i am building for my website: <TEXTAREA COLS="100" NAME = "Field Name"> </TEXTAREA> the problem i have is, that this field can be enlarged and it does not have a solid background colour when it is enlarged- so as you are typing on new lines and you enlarge the box to see the text - you can still see other features and text on my website behind it or below it. Is there any way i can give this memo field a solid background so that it is not see through? Many thanks, Sibla, London, UK Hi, I'm not sure if my question is posted in the correct section, I hope so. I wonder if somebody can help me. I have generated an opt-in form from Imnica Mail(Autoresponder). I put the code in a textbox widget in the sidebar using Wordpress. I want to add two things in the generated code - an image just above the First name textbox, and a text saying "Privacy: We respect your privacy." under the button. I don't know what I'm doing wrong, they do not show. I have copied the code below. I would be very grateful if you could help me. Thanks. <DIV class=o-form> <DIV class=o-form-header> <H3 id=o-form-title>Mail List Subscription Form</H3> <P id=o-form-description> Please fill in and submit the form below to subscribe to our mailing list.</P></DIV> <img src = "http://mysite.com/wp-admin/media.php?attachment_id=88&action=edit"> <FORM accept-charset=UTF-8 method=post action= http://www.imnicamail.com/v4/subscribe.php> <DIV class=o-form-row><LABEL for=FormValue_CustomField7891>First Name</LABEL><INPUT id=FormValue_CustomField7891 type=text name= FormValue_Fields[CustomField7891]></DIV> <DIV class=o-form-row><LABEL for=FormValue_EmailAddress>Email Address</LABEL><INPUT id=FormValue_EmailAddress type=text name= FormValue_Fields[EmailAddress]></DIV> <INPUT id= FormButton_Subscribe value=Subscribe type=submit name= FormButton_Subscribe><INPUT value=7093 type=hidden name= FormValue_ListID><INPUT id=FormValue_Command value=Subscriber.Add type=hidden name=FormValue_Command> <p> Privacy: We respect your privacy.</p> </FORM> <STYLE type=text/css media=screen>.o-form{background- color:#FFF4ED;border:1px solid #814913;} .o-form form{margin:0px;padding:0px;} .o-form .o-form-header{background-color:#814913;padding:9px;} .o-form h3{color:#fff;font-family:Arial,sans-serif;font- size:18px;line-height:18px;margin:0px;padding:0px;} .o-form p{color:#fff;font-family:Arial,sans-serif;font- size:12px;line-height:18px;margin:0px;padding:0px;} .o-form .o-form-row{margin-top:9px;padding:0 9px;} .o-form .o-form-row label{color:#814913;font-family:Arial,sans- serif;font-size:12px;display:block;font-weight:bold;} .o-form input[type="text"]{border:1px solid #814913;color:#814913;padding:5px 7px;} .o-form input[type="submit"]{margin:20px 9px 18px 9px;}</STYLE> </DIV> To start off, I'm having problems figuring out what to look for, let alone research it myself. If I'm posting in the wrong place, or there's a page you can link me to, please do that. I'm trying to do a webpage for my band, and what I'm trying to do is similar to blogging sites, like tumblr. I'm trying to make a page that my bandmates and I can go on, type what we want, add photos, ect, and submit it so it appears on our home page as a news article. So, a simple 1 page with form section to submit, and it appearing on another page as a new article, above the old ones. Thanks in advance for the help! i want to make a form like this http://www.i4jagan.in/join%20us.asp and save it as pdf with numbering 1,2,3,4.... and email that to my email id (gmail)how to make it can any one help me plz urgent... This form uses a wordpress plugin so it works fine but it just looks bad because it doesn't fit into the theme nicely. Can anyone tell me how to make it fit? Code: http://reveretaxi.com/order-a-taxi-cab What value do i adjust in the HTML to get it to fit? Code: <div align="center"> <center> <pre> <table width="69%" height="690" cellspacing="0" cellpadding="0" border="0"> <tbody><tr> <td width="50%" height="25" bgcolor="#ff0000" align="right"> </td> <td width="50%" height="25" bgcolor="#ff0000"> </td> </tr> <tr> <td width="50%" height="25" align="right"><b><font size="5" color="#000000">*</font><font color="#000000">Leaving From</font></b></td> <td width="50%" height="25"> <!--webbot bot="Validation" b-value-required="TRUE" -->[text* LeavingFrom]</td> </tr> <tr> <td width="50%" height="25" align="right"><b><font size="5" color="#000000">*</font></b><font color="#000000"><b>Cross-Street:</b></font></td> <td width="50%" height="25"> <!--webbot bot="Validation" b-value-required="TRUE" -->[text* Cross-Street:]</td> </tr> <tr> <td width="50%" height="25" align="right"><b><font size="5" color="#000000">*</font></b><font color="#000000"><b>Location Type:</b></font></td> <td width="50%" height="25"> <!--webbot bot="Validation" b-value-required="TRUE" -->[select* LocationType: "Choose One" "House" "Business" "Apartment" "Other"]</td> </tr> <tr> <td width="50%" height="25" align="right"><b><font size="5" color="#000000">*</font></b><font color="#000000"><b>City:</b></font></td> <td width="50%" height="25"> <!--webbot bot="Validation" b-value-required="TRUE" -->[text* LeavingFromCity]</td> </tr> <tr> <td width="50%" height="25" align="right"><b><font size="5" color="#000000">*</font></b><font color="#000000"><b>State:</b></font></td> <td width="50%" height="25"> <!--webbot bot="Validation" b-value-required="TRUE" -->[text* LeavingFromState]</td> </tr> <tr> <td width="50%" height="25" align="right"><b><font size="5" color="#000000">*</font></b><font color="#000000"><b>Date:</b></font></td> <td width="50%" height="25"> <!--webbot bot="Validation" b-value-required="TRUE" -->[text* Date]</td> </tr> <tr> <td width="50%" height="25" align="right"><b><font size="5" color="#000000">*</font></b><font color="#000000"><b>Time:</b></font></td> <td width="50%" height="25"> <!--webbot bot="Validation" b-value-required="TRUE" -->[select* Hour "Hour" "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12"]<!--webbot bot="Validation" b-value-required="TRUE" -->[select* Minute "05" "10" "15" "20" "25" "30" "35" "40" "45" "50" "55" "00"]<!--webbot bot="Validation" b-value-required="TRUE" -->[select* AMorPM "AM" "PM"]</td> </tr> <tr> <td width="50%" height="21" bgcolor="#ff0000"> </td> <td width="50%" height="21" bgcolor="#ff0000"> </td> </tr> <tr> <td width="50%" height="25" align="right"><b><font size="5" color="#000000">*</font><font color="#000000">Destination:</font></b></td> <td width="50%" height="25"> <!--webbot bot="Validation" b-value-required="TRUE" -->[text* Destination]</td> </tr> <tr> <td width="50%" height="25" align="right"><b><font size="5" color="#000000">*</font></b><font color="#000000"><b>City:</b></font></td> <td width="50%" height="25"> <!--webbot bot="Validation" b-value-required="TRUE" -->[text* DestinationCity]</td> </tr> <tr> <td width="50%" height="26" align="right"><b><font size="5" color="#000000">*</font></b><font color="#000000"><b>State:</b></font></td> <td width="50%" height="26"> <!--webbot bot="Validation" b-value-required="TRUE" -->[text* DestinationState]</td> </tr> <tr> <td width="50%" height="21" bgcolor="#ff0000" align="right"> </td> <td width="50%" height="21" bgcolor="#ff0000"> </td> </tr> <tr> <td width="50%" height="25" align="right"><b><font size="5" color="#000000">*</font></b><font color="#000000"><b>Vehicle Type Preference:</b></font></td> <td width="50%" height="25"> <!--webbot bot="Validation" b-value-required="TRUE" -->[select* VehicleTypePreference "Taxi - 4 Door preferred" "Taxi - Van preferred"]</td> </tr> <tr> <td width="50%" height="25" align="right"><b><font size="5" color="#000000">*</font></b><font color="#000000"><b>Payment Type:</b></font></td> <td width="50%" height="25"> <!--webbot bot="Validation" b-value-required="TRUE" -->[select* PaymentType "Choose One" "Cash" "Visa" "Master Card" "American Express" "Voucher"]</td> </tr> <tr> <td width="50%" height="25" align="right"><font color="#000000"><b>Number of Passengers:</b></font></td> <td width="50%" height="25">[select NumberofPassengers "1" "2" "3" "4" "5" "6" "7" "8" "9" "10"]</td> </tr> <tr> <td width="50%" height="21" bgcolor="#ff0000" align="right"></td> <td width="50%" height="21" bgcolor="#ff0000"></td> </tr> <tr> <td width="50%" height="25" align="right"><b><font size="5" color="#000000">*</font></b><font color="#000000"><b>Contact Name:</b></font></td> <td width="50%" height="25"> <!--webbot bot="Validation" b-value-required="TRUE" -->[text* ContactName]</td> </tr> <tr> <td width="50%" height="25" align="right"><b><font size="5" color="#000000">*</font></b><font color="#000000"><b>Contact Phone Number<br> (w/ Area Code):</b></font></td> <td width="50%" height="25"> <!--webbot bot="Validation" b-value-required="TRUE" -->[text* ContactPhoneNumber]</td> </tr> <tr> <td width="50%" height="25" align="right"><b><font size="5" color="#000000">*</font></b><font color="#000000"><b>Contact Email:</b></font></td> <td width="50%" height="25"> <!--webbot bot="Validation" b-value-required="TRUE" -->[text* ContactEmail]</td> </tr> <tr> <td width="50%" height="21" bgcolor="#ff0000" align="right"> </td> <td width="50%" height="21" bgcolor="#ff0000"> </td> </tr> <tr> <td height="59" align="right" colspan="2"> <p align="center"><b><font color="#000000">If you require service to meet an arriving flight, please provide the following:</font></b></p> </td> </tr> <tr> <td width="50%" height="25" align="right"><font color="#000000"><b>Airline:</b></font></td> <td width="50%" height="25">[text Airline]</td> </tr> <tr> <td width="50%" height="25" align="right"><font color="#000000"><b>Flight Number:</b></font></td> <td width="50%" height="25">[text FlightNumber]</td> </tr> <tr> <td width="50%" height="21" bgcolor="#ff0000" align="right"> </td> <td width="50%" height="21" bgcolor="#ff0000"> </td> </tr> <tr> <td height="40" align="right" colspan="2"> <p align="center"><b><font color="#000000">If paying by voucher, please provide the following:</font></b></p> </td> </tr> <tr> <td width="50%" height="25" align="right"><font color="#000000"><b>Voucher Account Name:</b></font></td> <td width="50%" height="25">[text VoucherAccountName]</td> </tr> <tr> <td width="50%" height="25" align="right"><font color="#000000"><b>Voucher Account Number:</b></font></td> <td width="50%" height="25">[text VoucherAccountNumber]</td> </tr> <tr> <td width="50%" height="25" bgcolor="#ff0000" align="right"> </td> <td width="50%" height="25" bgcolor="#ff0000"> </td> </tr> </tbody></table> </pre> </center> </div> <p align="center"><font color="#000000"><b>Please provide any special requests or instructions in the field provided below:<br> [textarea specialrequestsorinstructions] </b></font> [submit]</p> Hello. What I want for my website, is a robust login form, and a new member form, so people can become members of my website. I would like to do this in the easiest way possible. Please help. Sincerely, CJ Hi Every one I new to this forum , but I hope some one can help me here. I have a html form where I need depending on the need using check box one field to be hidden and it is place the other one should be shown. Basically one field is dropdown data and the other is inputfield Idea is if the info is not in drpodown field then user select checkbow and insert data by hand. I be able to show and hide input field but input field do not go away I hope some one can assist me, I am not that strong in JavaScript Thanx in advance LA Ok, this is a long post and is a big request so if you dont want to read alot of text or dont give out freebies, I would advice you going away now if you dont want to waste any time. Ok, anyhow, hi. This is my first post ad its a biggy. As an overall summary, I need to create a form which can be filled out that posts the information onto 1 page, but also creates another page automatically with it on. Now the detail. I run a site which uses phpbb user as the main site profile. I have intergrated into my homepage so you can log in there and see the info. What i need is a form which can be filled out by an admin with specific fields that would add a news segment onto the homepage. What I can do of this is if the admin wants to post a news segment on the homepage, they can click a link that will lead them to a conformation page that asks for thier details again and then checks thier phpb usergroup to see if they are an admin or not. I can also make it so once they have conformed it, they have access to the form. Now the form is a bit complicated. First off it needs these fields: Title Home Segment Article Segment The title is self explanitary. It is the main title of the news segment itself. The home segment is a small description of the actual segment itself. Article segment is the tricky bit. I need it to create a new page within a specific folder and it be domain.com/folder/title.php . I would also like it to post the date within the tags below. Oh and there needs to be a readmore link created with a link to the article The actual html for the segments would be: <a name="title of segment"></a> <h2>title of segment</h2> <p>homepage desc for homepage of full desc for article </p> <p class="post-footer align-right"> <a href="article link" class="readmore">Read more</a><span class="date">check system date</span></p> <br /> If you need more info, which you probably do, dont hesitate to ask. My site homepage is this : http://theholostudios.co.uk . This is if you want to see the layout. Oh and sorry if this sounds quite nooby, i am still learning all this stuff. OK. I'm looking to do two things 1) make the comments box include 5 rows. 2) make a space between the two columns in the form. Your assistance is appreciated. HTML Code: <form class='subscription_form' id='subscription_form' method='post' action='http://www.website.com/xyz form not real name'> <table align="center"> <tr> <td> First Name:<br /> <input type="text" name="first_name" size="26" /><br /> Last name:<br /> <input type='text' name='last_name' size="26" /><br /> Your Company:<br /> <input type='text' name='company' size="26" /><br /> Company Email Address:<br /> <input type="text" name="email" size="26" /><br /> Your Phone:<br /> <input type='text' name='phone1' size="26" /><br /> </td> <td> Website:<br /> <input type='text' name='custom__website' size="26" /><br /> Comments: (optional)<br /> <input type="text" name="custom_comments" size="26" col="4" /><br /> <input type='hidden' name='id' value='271' /> <input type='hidden' name='first_name_man' value='1' /> <input type='hidden' name='last_name_man' value='1' /> <input type='hidden' name='company_man' value='1' /> <input type='hidden' name='phone1_man' value='1' /> </td> </tr> </table> <p align="center"><input type="image" src="http://www.elevatingyourbusiness.com/PLEASECONTACTUS.jpg" /></p> </form> I am trying to set up a form for a website, but i am having problems with the alignment the code that i have is HTML Code: <form name="charclient" action="https://forms.netsuite.com/app/site/hosting/scriptlet.nl?script=26&deploy=1&compid=1200531&h=32f337b26222d60b23c1" method="post"> <table width="375" border="0" cellpadding="0" cellspacing="0"> <tr> <td rowspan="4" width="1" height="200"><img src="images/spacer.gif" alt="space" width="1" height="1" /></td> <td height="56" colspan="3" valign="top"><img src="images/spacer.gif" height="8" width="1" /><br /> <img src="images/joinus.png" /><br />Is your charity eligible for The Heart of Gold Donation Program?<br /> <img src="images/spacer.gif" height="1" width="8" /></td></tr> <tr> <td width="160" height="40" valign="middle"><b>First Name: *</b><br /> <input type="text" name="firstname" value="" size="30" /> </td> <td width="35" rowspan="2"> </td> <td width="179" height="40" valign="middle"><b>Last Name: *</b><br /> <input type="text" name="lastname" value="" size="30" /></td> </tr> <tr> <td valign="middle" height="44"><b>Email: *</b><br /> <input type="text" name="email" value="" size="30" /></td> <td valign="middle" height="44"><b>Organization: *</b><br /> <input type="text" name="companyname" value="" size="30" /></td> </tr><tr> <td valign="middle" height="44"><b>Phone: *</b><br /> <input type="text" name="phone1" id="phone1" value="" size="3" maxlength="3" style="margin-bottom:10px; float:left; border-left:none; padding-left:4px; margin-right:0px;" onKeyUp="autoTab(this,'phone2'); buildPhoneNumber();"/> <input type="text" name="phone2" id="phone2" value="" size="3" maxlength="3" style="float:left; border-left:none; margin-right:0px; margin-left:0px;" onKeyUp="autoTab(this,'phone3'); autoTabBack(this,'phone1'); buildPhoneNumber();"/> <input type="text" name="phone3" id="phone3" value="" size="4" maxlength="4" style="float:left; border-left:none; margin-right:0px; margin-left:0px;" onKeyUp="autoTabBack(this,'phone2'); buildPhoneNumber();"/> <b>EXT: *</b> <input type="text" name="ext" id="ext" value="" size="3" maxlength="3" style="margin-bottom:5px; float:left; border-left:none; margin-left:2px;" onKeyUp="autoTabBack(this,'ext'); buildPhoneNumber();"/> <input type="hidden" name="phone" id = "fullPhoneNumber" value="" size="27" /> <td colspan="1" height="40"><br /></td> <td valign="middle" height="39"> <input name="submit" type="image" src="images/joinbutton2.jpg" alt="joinus" align="right" border="0" style="margin-right:2px; margin-bottom:6px" /></td> </tr> </table> my problem is where it says <b>EXT: *<b> <input type="text" name="ext" id="ext" value="" size="3" maxlength="3" style="margin-bottom:5px; float:left; border-left:none; margin-left:2px;" onKeyUp="autoTabBack(this,'ext'); buildPhoneNumber();"/> the website is http://www.heartofgoldprogram.com/charities/index3.php you can see there how it is when i look in the web site this is not align with the other boxes in the phone number... i can't find the solution for that to be align. if any body can help me it will be great. thanks I have never had this error before until now, where I am trying to submit a jQuery validated form, yet my submit button won't work, I currently am not using the input type submit button, even when I do use it though I get the same error as using a <a> link that calls a javascript function to submit the form, I have a duplicate of this code and it works fine on another page, but just not here. Here is my mess: http://motb.isgreat.org/ It probably is easier to just check the whole source, since my code is scattered. This website is targeted for WEBKIT BROWSERS ONLY! To navigate to the issue on the page itself, press the gold login button on the RIGHT, and try submitting the form, I know the join form doesn't work, since I am not done with the page yet. But the login form should target to http://motb.isgreat.org/login.php which has a duplicate of my form but it works, im really confused, it may be with my JavaScript. Any Help is appreciated. I know my code is messy, my excuse is only being 15, but yeah… at least most of it functions Hey guys. I've been using local storage for my form and so far it's worked great. Most of the form is simply having the user type in an answer but I have 4 questions that need to be as radio buttons. The problem is I need these radio buttons to be calculative values. I'm pretty sure I've got the 'setting values' part down but how do I 'set item' and 'get item' using local storage? Thanks in advance! Here's what I'm using: HTML Code: <input type="radio" name="length" value=".106" /> Less than 1 year<br /> <input type="radio" name="length" value="0" /> 1-2 years<br /> <input type="radio" name="length" value="-.053" /> More than 2 years<br /> HTML Code: localStorage.setItem("length", this.elements["length"].value); HTML Code: localStorage.getItem("length") Hello everyone! My form seems to work... but I'm not getting the submission in my e-mail! You can check it out he www.BoatingHitList.com/formtest.html Here's the code for my form: HTML Code: <form name="htmlform" method="post" action="html_form_send.php"> <table width="500px"> </tr> <tr> <td valign="top"> <label for="name">Name*</label> </td> <td valign="top"> <input type="text" name="name" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="email">Email Address*</label> </td> <td valign="top"> <input type="text" name="email" maxlength="80" size="30"> </td> </tr> <tr> <td valign="top"> <label for="telephone">Location (city, state, country)*</label> </td> <td valign="top"> <input type="text" name="location" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="telephone">Website Address*</label> </td> <td valign="top"> <input type="text" name="website" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="telephone">Website Title*</label> </td> <td valign="top"> <input type="text" name="websitetitle" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="telephone">Listing Category*</label> </td> <td valign="top"> <select name="category"> <option>Select Category <option>BOAT SHOWS/EVENTS <option>BOATING ASSOCIATIONS <option>BOOKS/MAGAZINES <option>BROKERS - NEW BOATS <option>BROKERS - USED BOATS <option>CHARTERS <option>CLASSIFIEDS <option>FINANCE/INSURANCE <option>FORUMS <option>MARINAS <option>PARTS/ACCESSORIES <option>REPAIR/MAINTENANCE <option>SERVICES </select> </td> </tr> <tr> <td valign="top"> <label for="comments">Website Description (25 words or less)*</label> </td> <td valign="top"> <textarea name="comments" maxlength="300" cols="25" rows="6"></textarea> </td> </tr> <tr> <td colspan="2" style="text-align:center"> <input type="submit" value="Submit"> </td> </tr> </table> </form> And here's the code for my php page - www.BoatingHitList.com/html_form_send.php HTML Code: <?php if(isset($_POST['email'])) { // CHANGE THE TWO LINES BELOW $email_to = "submit@boatinghitlist.com"; $email_subject = "Boating Hit List Submission"; function died($error) { // your error code can go here echo "We are very sorry, but there were error(s) found with the form you submitted. "; echo "These errors appear below.<br /><br />"; echo $error."<br /><br />"; echo "Please go back and fix these errors before submitting.<br /><br />"; die(); } // validation expected data exists if(!isset($_POST['name']) || !isset($_POST['email']) || !isset($_POST['comments'])) { died('We are sorry, but there appears to be a problem with the form you submitted.'); } $name = $_POST['name']; // required $email_from = $_POST['email']; // required $location = $_POST['location']; // required $website = $_POST['website']; // required $websitetitle = $_POST['websitetitle']; // required $category = $_POST['category']; // required $comments = $_POST['comments']; // required $error_message = ""; $email_exp = "^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$"; if(!eregi($email_exp,$email_from)) { $error_message .= 'Please enter a valid e-mail address.<br />'; } $string_exp = "^[a-z .'-]+$"; if(!eregi($string_exp,$name)) { $error_message .= 'Please enter a valid name.<br />'; } if(strlen($comments) < 2) { $error_message .= 'Please enter a valid website description.<br />'; } if(strlen($error_message) > 0) { died($error_message); } $email_message = "Form details below.\n\n"; function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } $email_message .= "Name: ".clean_string($name)."\n"; $email_message .= "Email: ".clean_string($email_from)."\n"; $email_message .= "Location: ".clean_string($location)."\n"; $email_message .= "Website Address: ".clean_string($website)."\n"; $email_message .= "Website Title: ".clean_string($websitetitle)."\n"; $email_message .= "Listing Category: ".clean_string($category)."\n"; $email_message .= "Website Description: ".clean_string($comments)."\n"; // create email headers $headers = 'From: '.$email_from."\r\n". 'Reply-To: '.$email_from."\r\n" . 'X-Mailer: PHP/' . phpversion(); @mail($email_to, $email_subject, $email_message, $headers); ?> <!-- place your own success html below --> <p><center><img src="http://www.boatinghitlist.com/BHLlogo.gif"> <p><font face="calibri" size="4"> Thank you for submitting your website to BoatingHitList.com.</font> <p><font face="calibri" size="4"> Please make sure you include a link back to us on your website. All websites are individually reviewed to ensure they are placed in the correct category and that your website links back to us. Upon your website's approval, you will receive an e-mail notification. If your website is denied, you will receive an e-mail with the reason(s) your website was denied. <p>Choose one of the codes below to display our link back on your website: <p> <textarea rows="6" cols="30"> <a href="http://www.boatinghitlist.com" target="_blank"><img src="http://www.boatinghitlist.com/BHLicon.jpg" height="70" width="70" border="0"></a> </textarea> <p> Will display as: <p> <a href="http://www.boatinghitlist.com" target="_blank"><img src="http://www.boatinghitlist.com/BHLicon.jpg" height="70" width="70" border="0"></a> <p> <textarea rows="6" cols="30"> Visit <a href="http://www.boatinghitlist.com" target="_blank">www.BoatingHitList.com</a> for a directory of boating industry websites! </textarea> <p> Will display as: <p> Visit <a href="http://www.boatinghitlist.com" target="_blank">www.BoatingHitList.com</a> for a directory of boating industry websites! <p> <a href="http://www.boatinghitlist.com">CLICK HERE TO GO BACK TO www.BoatingHitList.com</a> <?php } ?> I created a form with html. At the end of the form there are two buttons, the button "entry", and the button "reset". When clicking on "entry" button i want to print the form's elements. How can i do it? Hello, just joined what looks like a great resource for HTML help. I am looking to have a form with two actions, "save as draft" and "do your thing". Both buttons would go to different scripts in the background which would perform different tasks, ie one saving the form data somewhere, and the other doing the work required. My understanding of HTML forms is that you can only have one submit action, but I am no expert. Has anyone had any experience of doing something similar? If so what would you recommend? Any suggested reading much appreciated. Thanks CKS Hello, I am attempting to make it so when a user selects an option from a drop down menu, the option will also appear in a nearby input box I've named "readout" below. I've gotten it to at least display a javascript alert with the user-selected value, theoretically ruling out the HTML as the problem. I've bolded the part below where I expect the value to change, however, it remains at the starting value of 1. Any suggestions? //-----------------------------------------------> <script> var FKeyPad = document.Keypad; var flag = true; function resetIndex(selObj) { if(flag) selObj.selectedIndex = -1; flag = true; } function doSomething(selObj) { alert(selObj.value); FKeyPad.ReadOut.value = "selObj"; flag = false; } </script> <FORM name="Keypad" action=""> <select onchange="doSomething(this)" onclick="resetIndex(this)"> <option value="A">A</option> <option value="B">B</option> <option value="C">C</option> </select> <input name="ReadOut" value="1" type="Text" size=1 width=20% maxlength="2" readonly="readonly" class="box"> </FORM> //-----------------------------------------------> hi all :-) pls can anyone advise where to post my query. it regards html code and my smtp server/ i have created a form to email code and have input my smtp script. but for the life of me i cannot get it to work, as to submit my form to email address, and the server is working fine and cannot find anything obviusly wrong with the coding. i think i have visited every web site out there lol....help me pls...thanks in advance Hey! What's the easiet way to create a link, and when it's pressed a little login form dropsdown from the link? Cheers / DiNozzo Hello, I need help. Here is what I am trying to do. I have a forum with 5 text fields. I want to populate the last 4 text fields from an online XML link which is based off of the input of the first text field. So example: Somebody types in "12345" in the 1st text field. After they press tab, the other 4 text fields are populated from the following xml link: http://website.com/data.xml?&index1=isbn&value1=12345 Any help would greatly be appreciated! Hi. I am creating web service. But the problem must be somewhere on HTML page. When I submit form, the data send by web service (java program) to the page does not show up. If I do not submit form, then the program works; results appear on the page. The form is submitted invoking pushSubmit() javascript function. This method is invoked from setMessage() javascript function. I submit form cause in this way I discover what value is selected on drop down list. This is done using JSP code. Can I do it somehow else. Next action using retrieved data is to invoke Java class on server side. What might be the problem? This is the code: Code: <%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" pageEncoding="UTF-8" %> <%@ page import="mart.ebay.database.ReadsCategoryTable" %> <jsp:useBean id="categoryList" class="mart.ebay.database.ReadsCategoryTable" scope="request" /> <jsp:setProperty name="categoryList" property="*"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>eMart</title> </head> <body class="create"> <!-- shows items from that country by default --> <% // String strSiteId = "EBAY-GB"; // Object categoryList = session.getAttribute("items"); // receives result from servlet // out.println(categoryList + " result ++++++++++++++++++++++++++++"); // strSiteId = (String)session.getAttribute("siteId"); // strSiteId =(strSiteId == null)? "": strSiteId; // out.println(strSiteId+ " strSiteId +++++++++++++++"); %> <% String result= ""; String strSiteId = request.getParameter("siteId"); strSiteId =(strSiteId == null)? "": strSiteId; if(strSiteId.equals("")) { out.println(strSiteId+ " global ID is empty"); result= categoryList.readTable("EBAY-GB"); } else { out.println(strSiteId+ " this is global ID"); result= categoryList.readTable(strSiteId); } %> <div id="container"> <div id="header"> <h1>Header</h1> <!-- end of header--> </div> <div id="mainContent"> <h1>Main content</h1> <!-- onsubmit="run()" --> <form name="form" id="form1" action="index.jsp" method="post" > <table id="input" border="0" cellpadding="0" cellspacing="5"> <tr> <th align="left">Looking for</th> <th align="left">Location</th> <th align="left">Category</th> </tr> <tr> <td align="left"><label><input style="width: 230px" type="text" name="message" id="message" /></label> </td> <td> <select name="siteId" id="siteId" > <option <%=(strSiteId.equals("EBAY-AT"))?"selected":""%> value="EBAY-AT">Austria</option> <option <%=(strSiteId.equals("EBAY-AU"))?"selected":""%> value="EBAY-AU">Australia</option> <option <%=(strSiteId.equals("EBAY-CH"))?"selected":""%> value="EBAY-CH">Switzerland</option> <option <%=(strSiteId.equals("EBAY-DE"))?"selected":""%> value="EBAY-DE" >Germany</option> <option <%=(strSiteId.equals("EBAY-ES"))?"selected":""%> value="EBAY-ES">Spain</option> <option <%=(strSiteId.equals("EBAY-FR"))?"selected":""%> value="EBAY-FR">France</option> <option <%=(strSiteId.equals("EBAY-FRBE"))?"selected":""%> value="EBAY-FRBE">Belgium (French)</option> <option <%=(strSiteId.equals("EBAY-NLBE"))?"selected":""%> value="EBAY-NLBE">Belgium (Dutch)</option> <option <%=(strSiteId.equals("EBAY-FRCA"))?"selected":""%> value="EBAY-FRCA">Canada (French)</option> <option <%=(strSiteId.equals("EBAY-ENCA"))?"selected":""%> value="EBAY-ENCA" onclick="pushSubmit()" >Canada (English)</option> <option <%=(strSiteId.equals("EBAY-GB"))?"selected":""%> value="EBAY-GB" selected="true">United Kingdom</option> <!-- <option value="EBAY-HK">Hong Kong</option> --> <option <%=(strSiteId.equals("EBAY-IE"))?"selected":""%> value="EBAY-IE" onclick="pushSubmit()" >Ireland</option> <option <%=(strSiteId.equals("EBAY-IN"))?"selected":""%> value="EBAY-IN">India</option> <option <%=(strSiteId.equals("EBAY-IT"))?"selected":""%> value="EBAY-IT">Italy</option> <!-- <option value="EBAY-MOTOR">Motors</option> --> <option <%=(strSiteId.equals("EBAY-NL"))?"selected":""%> value="EBAY-NL">Netherlands</option> <option <%=(strSiteId.equals("EBAY-NLBE"))?"selected":""%> value="EBAY-NLBE">Belgium (Dutch)</option> <option <%=(strSiteId.equals("EBAY-PH"))?"selected":""%> value="EBAY-PH">Philippines</option> <option <%=(strSiteId.equals("EBAY-PL"))?"selected":""%> value="EBAY-PL">Poland</option> <option <%=(strSiteId.equals("EBAY-SG"))?"selected":""%> value="EBAY-SG">Singapore</option> <option <%=(strSiteId.equals("EBAY-SE"))?"selected":""%> value="EBAY-SE">Sweden</option> <option <%=(strSiteId.equals("EBAY-MY"))?"selected":""%> value="EBAY-MY">Malaysia</option> <option <%=(strSiteId.equals("EBAY-US"))?"selected":""%> value="EBAY-US">United States</option> </select> </td> <td> <select name="Category" > <option value="100" ><%= result%></option> </select> </td> <td> <label> <input type="button" value="Start" onclick="run()"/></label></td> </tr> </table> </form> </div> <div id="footer"> <p>Footer</p> </div> <!-- the end of container--></div> <script type="text/javascript"> function getXmlHttpRequest() { try { // Firefox, Opera 8.0+, Safari return new XMLHttpRequest(); } catch (e) { // Internet Explorer try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { alert("Your browser does not support AJAX!"); return null; } } } } function setLocation(location) { strSiteId = location; var xmlHttp = getXmlHttpRequest(); xmlHttp.open("GET","app/messages/location/" + location,true); xmlHttp.send(null); } function setCategory(category) { var xmlHttp = getXmlHttpRequest(); xmlHttp.open("GET","app/messages/category/" + category, true); xmlHttp.send(null); } function setMessage(index) { var xmlHttp = getXmlHttpRequest(); //alert(index) xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { // document.write(xmlHttp.responseText.indexOf("<body>")); if(xmlHttp.responseText.indexOf("<body>") != -1) { s = xmlHttp.responseText.substring(xmlHttp.responseText.indexOf("<body>") + 6, xmlHttp.responseText.indexOf("</body>")) document.getElementById("output").innerHTML=s; } else { document.getElementById("output").innerHTML=xmlHttp.responseText; } pushSubmit() // submits form } } xmlHttp.open("GET","app/messages/" + index,true); xmlHttp.send(null); } function run(){ setCategory(document.form1.Category.value) setLocation(document.form1.siteId.value) setMessage(document.form1.message.value) alert(document.form1.Category.value+" "+document.form1.siteId.value+ " "+document.form1.message.value) } function pushSubmit() { document.getElementById('form1').submit(); } </script> <% // sessionObj = null; //arlItems = null; //session.removeAttribute("items"); //session.removeAttribute("siteId"); %> <h3>result</h3> <div id="output" style="border: 1px solid black; color: black; height: 18em; width: 100%"></div> </body> </html> hey all, here's my site http://www.nativboardriding.com/shopb.htm this paypal form was originally given to me in table format and i dismantled it into divs.. cuz divs are way better obviously.. well.. i'm setting it up like this: <form> Line 1 (all elements float left): first paypal option >> descriptions <br clear="all"> Line 2 (all elements float left): second paypal option >> descriptions <br clear="all"> Line 3 (all elements float left): third paypal option >> descriptions <br clear="all"> Buy now button </form> seems simple enough.. but as u can see the divs arent stacking like i want.. i've dealt with divs a lot and troubleshot it everytime.. i feel like the fact that its embeded in a form that the <br clear="all">'s arent working... seems ridiculous but i cant find any errors. any ideas?? thx Hi. Please help me. I am using XHTML and Javascript. This is how I submit form: Code: <td> <button type="submit" name="action" value ="start">Start</button></td> And this is how looks part of my form: Code: <form name="form1" action="/Project/CategoryListServlet" method="post" onsubmit="run()"> But somehow method run is not invoked. What is the problem? Regards Hi, I've encountered this problem, and been struggling for few hours. Thing is, I have a form with enctype="multipart/form-data" and 2 inputs with type "file" in it with names RequestForm[doc1] and RequestForm[doc2]. When I submit the form, only the first one of the fields is sent into $_POST. If i comment out the 1st field, then only the second is sent. This thing is just killing me! Could someone help? What might be wrong? And yes, I do need 2 inputs, not 1 multifile input. Hey guys I've been browsing for awhile now and I have finally joined up with a pretty basic simple question. I used a form generator to make this signup form for a group my friends putting together (long story lol). Basically its all generated and looks awesome. The issue is I have added this to the top <form id="form_113298" class="appnitro" method="post" action="mailto:EMAIL"> When i click submit however nothing happens... I dont have an email and it doesnt move forward or anything. Of course I never programmed another page after but heres some code from the bottom. <li class="buttons"> <input type="hidden" name="form_id" value="113298" /> <input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" /> How can I make this form email me ? regards, Eddy I need help with a form. I am creating a form to send an email, and I need one of the input values to be changed to the contents of a table cell that is somewhere else in the body of the document. That table cell has dynamic content in it so it's not as simple as just doing this: Value="div contents here". I'm sure there is a way to do it, I'm just not sure what that way is. I'm more than willing to use a div instead of a table cell if that helps any. Hi there. I was wondering if anyone could tell me whats going wrong with the form here. It's the definition of temperamental when clicking the submit button. Sometimes theres an error and others it works just fine. It was generated with NO Fusion. Was this a good idea? N.B Is it anything to do with the fact that the form is in an iframe? I'm open to all options. Maybe i should code myself? (EDIT: Please feel free to test the form, The info is sent to me) Thanks for your time. Andy. Hello, I worked very hard on creating this calculation form. Now I am trying to input some radio buttons (MALE/FEMALE). The formulas are different: MALE function formula(x,y){ return ((x+y-1)/12); FEMALE function formula(x,y){ return ((x+y+1)/12); Can someone please help me?? I gave up trying after 7 h. I can`t do this anymore, it seems impossible to me. <script type="text/javascript"> function $(el) { return document.getElementById(el); } function formula(x,y){ return ((x+y-1)/12); } function check() { var x=parseInt($('x').value); var y=parseInt($('y').value); if($('x').value.length>0 && $('y').value.length>0) { $('result').value=formula(x, y); } } </script> <table> <tr><td width="50%"><font face="arial" size="2" color="#FFCCFF"><b><input type="radio" name="male" value="male"checked>MALE</b></font></td> <td width="50%"><font face="arial" size="2" color="#FFCCFF"><b><input type="radio" name="female" value="female">FEMALE</b></font></td></tr> <tr><td> x:</td><td><input type="text" id="x" onclick="this.select()"/></td></tr> <tr> <td> y:</td><td><input type="text" id="y" onclick="this.select()"/></td></tr> <tr><td> Rezult <input name="button" type="button" onclick="check()" value="calculate" /></td><td><input id="result" type="text" disabled style="width:100px; height:40px; text-align:center; vertical-align:middle"/></td> <tr><td> </td> <tr> <td> </td> </table> </td> THANK YOU!!!!! Hello, I have created my form and used CSS to dress it up. Now what I am looking for is when the Submit button is clicked, a type of confirmation appears, a "thank you" or something instead of having the confirmation occur in another page. I'm not certain if that makes sense, but appreciate any feed back or advice on how to do this. Thank you! Hello, Sorry to ask a question that I'm sure has been asked before, but I'm in a situation that none of them were probably in... See I'm working with an internal site, and I have no access to the back-end of the site or for that matter even to the header section of any page within the site, just to the body section. I'm trying to create a form that will send an email to a designated address and use the URL of the page with the form on it for the subject using an arguement that automatically pulls the URL because the URL's will change periodically and I don't want to have to manually change every form every time they do change. I also want to add a piece of static text to the body of the email in addition to the user input section. Alternately if it is not possible to modify the subject line given my constraints, would it be possible to get the URL to post in the body of the email? The only good news is that since this is an internal server available to employees that all have the same systems and group policy, we do know that all users will be using the same browser (IE-8) and there's no need to have cross-browser compatibility. Also all users have javascript enabled on their browsers if that helps at all (although I have no idea how it would). PS - I'm not worried about the outlook warning popup message since it's for internal use by employees who can be directed to click ok on the popup. Here is all I have so far: Code: <form action="MAILTO:my_email@this_is_just_an_example.com" method="post" enctype="text/plain"> Text above the form inputs, this text should not be included in the email.<br /> label of input: <input type="text" name="Reason" value="preloaded info that will be cleared out" size="63" /> <input type="submit" value="Send"> </form> Thanks for your help with this. how to send e-mail from a form?... I know how to create a form to send an email, but I'm wondering if it's possible to have a form send either an event notification or outlook calendar event that would set up an outlook event reminder once accepted by the recipient. Does anybody know if that's at all possible with HTML or Javascript? Thanks. I'm trying to create a basic form with a text, password and submit button. I don't really have clue on how to set up this form and aswell I need to style it so it fits in my header on a straight line. If anyone could help it would be much appreciated? Thanks So i have a form i am trying to email when you click submit, but i don't like the way the mailto function works. So i am trying to use php to email the form. Then have the user directed to a thank you page. The problem is when i click send it loads the sendmail.php page but its just a blank page and nothing happens. I can't figure out how to fix it. All help is appreciated, thanks. I have the form i am trying to email: Quote: <form method="post" action="sendmail.php"> <font face="Myriad Pro"><b>Name:</b></font><input type="text" size="24" maxlength="40" name="name"> <br /> <font face="Myriad Pro"><b>Email: </b></font><input type="text" size="24" maxlength="40" name="email"> <br /> <input type="submit" value="Send"> </form> </font> And then i have the sendmail.php: Quote: <?php $email = $_REQUEST['email'] ; $name = $_REQUEST['name'] ; mail( "*****@gmail.com", "Form send", $name , "From: $email" ); header( "Location: thankyou.html" ); ?> And then i have a simple page that says thank you. I have no idea whether this is a reasonable thing to seek to do. My site is: http://archemni.co.uk/products_adw.php Have a look at the first product (MLDC). I am getting a lot of hits on my pages but no one is contacting us. We are not going to be setting up shopping carts etc. as that is not how the business works. What I was thinking of was a button or a link which would either take me to a form or open an email. That much is trivial, even for me! The problem comes because there are upwards of 100 products on there which are actually coded onto the pages (don't try persuading me to sql yet, I am not ready for that and not confident that it will not make us hard for google to 'pick up'). So I have some code like: Code: <h3>MLDC</h3> <p>MLDC is a premium professional detergent for machine dishwashing. Highly concentrated. Removes fats, proteins and starch residues. Suitable for use with all commercial dishwashers within catering establishments and professional kitchens.</p> <table class="table_products" cellspacing="0" summary="product specs"> <tr> <td class="body_products_emp">Uses:</td> <td class="body_products"><ul><li>General Machine Dishwashing use in areas with hard water - up to 400 ppm.</li></ul></td> </tr> <tr> <td class="body_products_emp" width="100px">Application:</td> <td class="body_products">Automatic dosing</td> </tr> </table> So I want a common piece of code that will, into either a field on a form or into the subject/body of an email paste 'something' that allows me to identify which product I am being contacted about. The ideal solution would be that I can write a bit of code which searches up the document and returns me the last statement which is wrapped in <h3></h3> (in this case MLDC). This would mean that I can have one bit of code which is common for every product and then it will return me a different product depending on which one a person is viewing. I am certain that this can be done, but I am only learning programming so do not know how. Can it be done in html? Do I need to resort to php or even javascript? Any help is greatly appreciated Adam Hi I'm new around here and new to html as well so pardon me if I posted this under the wrong section. I currently have a navigation bar using the following codes to swap innerHTML within the page. Code: <span class="navs" onMouseover="this.style.background='#666666'" onMouseout="this.style.background='#000000'" onClick="document.getElementById('main').innerHTML=document.getElementById('About Us').innerHTML"><center>About Us</center></span> And Code: <script> function changeNavigation(id) {document.getElementById('main') .innerHTML=document.getElementById(id).innerHTML} </script> Which gets me to Code: <div id="About Us" style="display:none"> Stuff about IAS </div> I now want to make a menu at the bottom of the page to quickly jump to other pages since the navigation bar is at the top. Therefore I am using the form code as such Code: <form name="selecter" id="selecter" action=""> <select name="select1" id="select1" size="1"> <option value="none"> Quick Jump <option onClick="document.getElementById('main').innerHTML=document.getElementById('About Us').innerHTML"> About Us</option> </select> </form> However, when I select the option "About Us" in the menu, nothing happens. Could someone explain to me why nothing happens and perhaps provide a solution? Thanks in advance. I have this code that I am using for a contact form on my website. What do I need to add for it to send the data in the fields to my email address Code: <form name='Contact Time For You' action='sent.htm' method='POST' enctype='multipart/form-data' onsubmit='return verifyMe();'> <table class='table_form_1' id='table_form_1' cellspacing='0' width="271" align="right"> <tr> <td class='ftbl_row_1a' width="241" align="left" > <font face="Arial" size="2"><LABEL for='Full_Name' ACCESSKEY='none' ><b style='color:red'>*</b>Your Name </label></font> <font face="Arial"> <input type='text' name='Full_Name' id='Full_Name' size='34' value=''></font></td> </tr> <tr> <td class='ftbl_row_2a' width="241" align="left" > <p> <font face="Arial" size="2"><LABEL for='Email' ACCESSKEY='E' ><b style='color:red'>*</b><u>E</u>mail Address </label></font> <font face="Arial"> <input type='text' name='Email' id='Email' size='34' value=''></font></td> </tr> <tr> <td class='ftbl_row_1a' width="241" align="left" > <p style="margin-top: 0; margin-bottom: 0"> <font face="Arial" size="2"><LABEL for='Telephone' ACCESSKEY='T' ><b style='color:red'>*</b><u>T</u>elephone </label></font> </p> <p style="margin-top: 0; margin-bottom: 0"><font face="Arial"><input type='text' name='Telephone' id='Telephone' size='15' value=''></font></p> <p style="margin-top: 0; margin-bottom: 0"> </td> </tr> <tr> <td class='ftbl_row_2a' width="241" align="left" > <font face="Arial" size="2"><LABEL for='Enquiry_Text' ACCESSKEY='none' ><b style='color:red'>*</b>Enquiry</label></font><font face="Arial"><textarea name='Enquiry_Text' id='Enquiry_Text' cols='28' rows='6' value=''></textarea></font></td> </tr> <tr> <td class='ftbl_row_1a' width="241" align="left" > <p> <font face="Arial" size="2"><LABEL for='Code' ACCESSKEY='none' ><b style='color:red'>*</b>Offer Code </label></font> <font face="Arial"> <input type='text' name='Code' id='Code' size='34' value=''></font></td> </tr> <tr> <td align='center' width="249"> <p style="margin-top: 1; margin-bottom: 1"> </p> <p style="margin-top: 1; margin-bottom: 1"><font color="#FFFFFF"> <input type='submit' name='submit' value='Send' style="float: right; color: #FFFFFF; font-family: arial; font-weight: bold; background-color: #000080"></font> </td> </tr> </table> </form> Thank you in advance, Dan I've been having trouble with targeting an iframe with a goto form. Let me show you what I've done. <form name="openlocation" target="PicFrame"> <input type="text" name="href" value="http://"> <input type="button" value="Go To" onClick="location.href=document.openlocation.href.value;; "> </form> <iframe name="PicFrame" src="blank.htm"></iframe> I'm trying to get allow the user to submit the url of a photo and then load that page into my iframe. So far the only thing it does is open up the url in the same window and does not target the iframe at all. Also I am using FF. Hi This is my first post so trust I don't breach any protocols. I'm creating a form that will send data from the form to an email. I have done this many times before with no problem but suddenly it is failing to do so. The main form has approx24 data fields so in case this was a problem, created a simple form with 2 text fields and a submit button but this wouldn't work either. My default Editor is dreamweaver MX and outlook as my email. Not being sure if it is my code, editor or email system causing the problem I have tried all variations using Dreamweaver MX, Dreamweaver CS3, Frontpage and in desperation Pagebreeze with Outlook, Outlook Express and Mozilla Thunderbird. I'm pulling my hair out. Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form action="mailto:My Email address" method="post" name="form1"> <p> <input type="text" name="textfield"> </p> <p> <input type="text" name="textfield2"> </p> <p> <input type="submit" name="Submit" value="Submit"> </p> </form> </body> </html> Has anyone had the same problem and solved it ? Hi guys i have a form that has name , email , country (drop down list ) , state , city , address , phone . I would like to validate the form so that when a space is left empty for example the "name" space is left empty a message box alerts them hay gays ! I am new in HTML and have a simple query (I suppose). How do I align a password (you know... usernamename: , Password: )form on the right of the page I am creating ? I wanna put it at the top right side of the page, next to the title, where we usually find it Thanks a lot ! OK, sad to say, I just registered to ask this question (and I'm sorry if this is in the wrong section, too). I'm fairly new at HTML and PHP, and I get a blank page whenever I use this form: This is the HTML part: Code: <html> <head> <title>HTML</title> </head> <body> <form action="PHPServer.php" method="post"> <input type="text" name="from" value="Sender" /> <br/> <input type="text" name="to" value="Receiver" /> <br/> <input type="text" name="subject" value="Subject" /> <br/> <input type="text" name="msg" value="Message" /> <br/> <input type="submit" value="Send E-Mail" /> </form> </body> </html> This is the PHP part: Code: <html> <head><title>PHP Server</title></head> <body> <?php $to = $_POST['to']; $subject = $_POST['subject']; $from = $_POST['from']; $message = $_POST['msg']; if(mail($to, $subject, $message, $from)){ echo "Mail sent"; }else{ echo "Failed to send mail"; } ?> </body> </html> Again, all I get when I press the submit form (with all valid information) is a blank white page on the PHP part (aka www.website.com/PHPServer.php) and the title as PHP Server...Help please and thanks I would like someone to help me get the email form on the html page working. I am so lost! http://hershs-salsa.com/locations.html The contactus page currently sends data to 3 email addresses. I dont verify these fields currently but wish to do so. I merely have them sent to feedback.php which accepts the data and sends the emails. I want two things done where I need help: 1, I need all fields to be validated in the contactus page itself before going to the feedback.php file 2, I want a simple captcha that can also be verified on contactus.php itself. Can someone help? Thanks Navs We currently have a feedback form (feedback.php) that is used in our contactus page. This gets sent to three email address. I now want to add a captcha to it and create a verification for all the fields in the contactus page itself |