Jump to content

Search the Community

Showing results for tags 'Form'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 122 results

  1. christina_g

    Styling a form with CSS

    Hello everybody, I would like to add a simple form to a webpage that will allow internet users to suscribe to a newsletter by indicating their email address.I do have the HTML code for the form and it works out fine, but I do not know how to style the form with CSS (font, font size, text align, etc.).Currently, adding the HTML form code to the page overrides nearly all CSS styling defined for the section of the page concerned :-( Thank you very much in advance for your help !
  2. Let's try this again... I'm using 2 radio buttons and a drop down. what I want is to send the user to one of 6 urls when they hit submit. radio buttons: -Fairy Goddess -Inner Warrior drop down : -Young Adult -20 Something -30 and up Possible outcomes: 1. Fairy Goddess - Young Adult -->url 2. Fairy Goddess - 20 Something -->url 3. Fairy Goddess - 30 and up -->url 4. Inner Warrior - Young Adult -->url 5. Inner Warrior - 20 Something -->url 6. Inner Warrior - 30 and up -->url here's my NEW code: <form action="/html/tags/html_form_tag_action.cfm" method="get"><fieldset><div><label for="guide">Choose Your Guide</label><br><input type="radio" name="guide" value="fairygoddess" /> Fairy Goddess<input type="radio" name="guide" value="innerwarrior" /> Inner Warrior</div><div><label for="age">Choose your Age Group:</label><br><select name="age"><option value ="youngadult">Young Adult</option><option value ="20something">20 Something</option><option value ="30andup">30 and up</option></select></div><div><input type="submit" value="Submit" /></div></fieldset></form>
  3. Hi All, This is my first post! I think this site is amazing. I love the little try it yourself windows. SO cool. So my question is this: how can I make a form that has two drop down menus (the first with 2 options and the second with 3) and a submit button which upon clicking will take the user to one of 6 html pages on my website. Drop down 1: -Fairy Goddess -Inner Warrior Drop down 2: -Young Adult -20 Something -30 and up Possible outcomes: 1. Fairy Goddess - Young Adult 2. Fairy Goddess - 20 Something 3. Fairy Goddess - 30 and up 4. Inner Warrior - Young Adult 5. Inner Warrior - 20 Something 6. Inner Warrior - 30 and up I've tried to get a start by modifying this check-box & submit disclaimer code that I successfully implemented on one page. I haven't an idea how to modify the JS to match what I want to do with the HTML. Please correct and direct me to solve this! The code I have now: <SCRIPT language=JavaScript><!--//Accept terms & conditions script (by InsightEye www.insighteye.com)//Visit JavaScript Kit (http://javascriptkit.com) for this script & more.function checkCheckBox(f){if (f.agree.checked == false ){alert('Please agree to the terms by checking the box to continue.');return false;}else{return true;}}//--> </SCRIPT> followed by: <!-- Consultation form code --> <form action="fairy-goddess.html" autocomplete="on"> Choose your Guide <input list="guides" name="guide"> <datalist id="guides"> <option value="Fairy Goddess"> <option value="Inner Warrior"> </datalist><br> Choose your age group <input list="age-groups" name="age-group"> <datalist id="age-groups"> <option value="Young Adult"> <option value="20 Something"> <option value="30 & up"> </datalist><br> <input type="button" class="btn btn-default" value="Submit" onclick="document.location.href='../disclaimer.html';"></form><!-- Consultation form code --> THANKS!!
  4. christina_g

    Table or form messing up layout

    Hello everyone, I am facing an issue with a page containing a table and a form : the form does not take over the style defined in the style sheet. It work out fine once I omit the closing </table>, however in that case the order of the elements gets messed up. What can I do to fix this ? Here is the code (I've taken out several irrelevant elements (additional list items, metas, etc.) : <!DOCTYPE html> <html> <head> <meta charset="iso-8859-1" /> <title>HIGHWAY - Hard Rock'n'Roll</title> <link rel="Shortcut icon" href="favicon2.ico" type="image/x-icon"> <link rel="stylesheet" type="text/css" media="screen" href="styles.css"> <style> ul {list-style-type: none; margin: 0; padding: 0;} li {display: inline;} </style> </head> <body style="background-color:#000"> <center> <img src="logo_entete.jpg" alt="Logo Highway" style="width:700px; height:196px;"><br/> <br/> <br/> <!-- Site navigation menu --> <nav> <ul> <li><a href="news_fr.html">★ NEWS</a></li> <li><a href="band_fr.html">★ BAND</a></li> </ul> </nav> <br/> <!-- Main content --> <h1 style="text-align:left">CONTACT</h1> </br> <table> <tr> <td><u>Booking (France)</u><br/><br/> HIGHWAY Corp.<br/> 128 Place du Quebec, Appt 36<br/> 34000 Montpellier - France<br/> Email : highwaybeer@hotmail.com<br/> Téléphone : +33 6 29 37 93 57 </td> <td><u>Booking international (hors France)</u><br/><br/> Big Noise Productions<br/> Christina Guntert<br/> Email : ca.guntert@hotmail.fr<br/> Téléphone : +33 6 43 58 53 29<br/> </br> </td> <td><u>Technicien son</u><br/><br/> Adrien Lagarde<br/> Email : lagarde.music@gmail.com<br/> Téléphone : +33 6 48 55 29 59<br/> </br> </br> </td> </table> <p class="section_form" align="left"> <form action="MAILTO:ca.guntert@hotmail.fr" method="post" enctype="text/plain"> Abonnez-vous à la newsletter : <input type=text name:mail value="Votre adresse email"> <input type="submit" value="S'abonner"> </form> </p> <br/> <!-- Footer --> <p class="footer">© Highway Corp. 2014</p> </body> </html>
  5. Hi, i am new to the PHP scene and am having trouble getting this PHP code i found to work. I found it here:http://www.inmotionhosting.com/support/edu/website-design/using-php-and-mysql/how-to-create-a-custom-php-contact-form <!doctype html><html><head><meta charset="utf-8"><title>Untitled Document</title></head> <body><?php if (isset($_REQUEST['submitted'])) {// Initialize error array. $errors = array(); // Check for a proper First name if (!empty($_REQUEST['firstname'])) { $firstname = $_REQUEST['firstname']; $pattern = "/^[a-zA-Z0-9_]{2,20}/";// This is a regular expression that checks if the name is valid characters if (preg_match($pattern,$firstname)){ $firstname = $_REQUEST['firstname'];} else{ $errors[] = 'Your Name can only contain _, 1-9, A-Z or a-z 2-20 long.';} } else {$errors[] = 'You forgot to enter your First Name.';} // Check for a proper Last name if (!empty($_REQUEST['lastname'])) { $lastname = $_REQUEST['lastname']; $pattern = "/^[a-zA-Z0-9_]{2,20}/";// This is a regular expression that checks if the name is valid characters if (preg_match($pattern,$lastname)){ $lastname = $_REQUEST['lastname'];} else{ $errors[] = 'Your Name can only contain _, 1-9, A-Z or a-z 2-20 long.';} } else {$errors[] = 'You forgot to enter your Last Name.';} //Check for a valid phone number if (!empty($_REQUEST['phone'])) { $phone = $_REQUEST['phone']; $pattern = "/^[0-9_]{7,20}/"; if (preg_match($pattern,$phone)){ $phone = $_REQUEST['phone'];} else{ $errors[] = 'Your Phone number can only be numbers.';} } else {$errors[] = 'You forgot to enter your Phone number.';} if (!empty($_REQUEST['redmapleacer']) || !empty($_REQUEST['chinesepistache']) || !empty($_REQUEST['raywoodash'])) { $check1 = $_REQUEST['redmapleacer']; if (empty($check1)){$check1 = 'Unchecked';}else{$check1 = 'Checked';} $check2 = $_REQUEST['chinesepistache']; if (empty($check2)){$check2 = 'Unchecked';}else{$check2 = 'Checked';} $check3 = $_REQUEST['raywoodash']; if (empty($check3)){$check3 = 'Unchecked';}else{$check3 = 'Checked';} } else {$errors[] = 'You forgot to enter your Phone number.';} } //End of validation if (empty($errors)) { $from = "From: Our Site!"; //Site name // Change this to your email address you want to form sent to $to = "your@email.com"; $subject = "Admin - Our Site! Comment from " . $name . ""; $message = "Message from " . $firstname . " " . $lastname . " Phone: " . $phone . " Red Maple Acer: " . $check1 ." Chinese Pistache: " . $check2 ." Raywood Ash: " . $check3 .""; mail($to,$subject,$message,$from); }?> <!--Error Reporting Code--><?php //Print Errors if (isset($_REQUEST['submitted'])) { // Print any error messages. if (!empty($errors)) { echo '<hr /><h3>The following occurred:</h3><ul>'; // Print each error. foreach ($errors as $msg) { echo '<li>'. $msg . '</li>';} echo '</ul><h3>Your mail could not be sent due to input errors.</h3><hr />';} else{echo '<hr /><h3 align="center">Your mail was sent. Thank you!</h3><hr /><p>Below is the message that you sent.</p>'; echo "Message from " . $firstname . " " . $lastname . " <br />Phone: ".$phone." <br />"; echo "<br />Red Maple Acer: " . $check3 . ""; echo "<br />Chinese Pistache: " . $check2 . ""; echo "<br />Raywood Ash: " . $check3 . ""; } }//End of errors array ?> <h2>Contact us</h2> <p>Fill out the form below.</p> <form action="" method="post"> <label>First Name: <br /> <input name="firstname" type="text" value="- Enter First Name -" /><br /></label> <label>Last Name: <br /> <input name="lastname" type="text" value="- Enter Last Name -" /><br /></label> <label>Phone Number: <br /> <input name="phone" type="text" value="- Enter Phone Number -" /><br /></label> <label>Red Maple Acer: <input name="redmapleacer" type="checkbox" value="Red Maple Acer" /><br /></label> <label>Chinese Pistache: <input name="chinesepistache" type="checkbox" value="Chinese Pistache" /><br /></label> <label>Raywood Ash: <input name="raywoodash" type="checkbox" value="Raywood Ash" /><br /></label> <input name="" type="reset" value="Reset Form" /><input name="submitted" type="submit" value="Submit" /> </form> </body></html> I get an issue with the phone number check could someone give me an idea of whats wrong? Thanks Simon Lehmann
  6. I'd like to achieve the following with javascript:When you type any of the following words into the inputbox and click the submit button you'll be redirected to the corresponding page:tree => tree.phpchocolate => chocolate.phpbird => bird.phpcandle => candle.phpapple => apple.phpHowever if you type a different word than the above, you'll get a warning message. <div id="main"> <form action=""> <ul> <li><input class="inputbox" type="text" name="TypeWord" value="" placeholder="Type a word here"/></li> <li><input class="button" type="submit" name="Submit" value="Submit word"/></li> </ul> </form></div><div id="warning"> <p style="visibility:hidden;">Oops, wrong word, please try again.</p></div>   Does anyone know of a javascript that can do this?
  7. nhuyvan1106

    How do you clear input text box?

    <!DOCTYPE html><html lang = "en-US"> <head> <meta charset = "UTF-8"> <style type = "text/css"> fieldset { width: 850px; margin: auto; text-align: center; } #txtField { text-align: center; } #tryAgainBtn { display: none; } </style> <script type = "text/javascript"> window.onload = myFunction; var randomNumber; var outPut; function myFunction() { randomNumber = Math.floor(Math.random()*1000); document.getElementById("checkBtn").onclick = checkAnswer; document.getElementById("tryAgainBtn").onclick = tryAgain; } function checkAnswer() { outPut = document.getElementById("outPut"); outPut.innerHTML = ""; var myInput = document.getElementById("txtField"); if (myInput.value < 0 || myInput.value > 1000) { return outPut.innerHTML += "I said between 0 and 1000."; } if (myInput.value == "") { return outPut.innerHTML += "Please enter a number between 0 and 1000!!!"; } if (myInput.value > randomNumber) { outPut.innerHTML += "Too High !!!"; } if (myInput.value < randomNumber) { outPut.innerHTML += "Too low !!!"; } if (myInput.value == randomNumber) { outPut.innerHTML += "Yay, you are awesome !!!"; document.getElementById("tryAgainBtn").style.display = "inline"; } document.getElementById("txtField").onclick = reset(); } function tryAgain() { document.getElementById("txtField").value = ""; outPut.innerHTML = ""; document.getElementById("tryAgainBtn").style.display = "none"; randomNumber = Math.floor(Math.random()*1000); } </script> </head> [attachment=1390:MyGame.png]<body> <form action = " " id = "myForm"> <fieldset> <p>Let's play a guessing game, I am thinking about a number between 0 and 1000. Enter your guess in the box, I'll tell you if it's correct or not. </p> <div id = "outPut"> </div> <input type = "text" id = "txtField"/> <br/> <button type = "button" id = "checkBtn"> Check your guess!!! </button> <br/> <button type = "button" id = "tryAgainBtn"> Try again ??? </button> </fieldset> </form> </body></html> Hi guys, I am building this text-based guessing game(please don't judge, I'm just a starter), everything is working correctly, just one thing I can't find the answer anywhere at all, but I sure know you guys do know the answer, my question is, btw, I've attached a picture so you can conjure up what I am trying to say, ok, so, after the user entered a value, and they are gonna enter another value, so when the user clicks on the box, what do I do to make the previously entered value removed, like when they click on the box, the previous value disappears, I've tried using the reset() method as you can see in the code, but every time the "Check your answer" button is clicked, the value disappears right away, and that is not I want, I really don't know method to use? any suggestions are greatly appreciated. Thank you very much for your time and help.
  8. atmananda

    help with CSS for form!

    hi, I have a contact form with 4 fields; name, email, input text, and security question.. For some reason, I can get the input fields of Name and Email to sit on the left side of their respective input fields, but for Input Text and the Security Question, the label sits on the right of the input field... Anyone have any idea what I'm doing wrong?? Thankyou!! http://www.atmananda.com/contact-us/
  9. funbinod

    duplicate entry

    how to check for duplicate entry on a form using php?
  10. i was trying to make error message relating from the w3schools learning center but it returned nothing. please help me find the error.... here is the code i wrote... <?php// define variables and set to empty values$cnameErr = $dateErr = $itemErr = $rateErr = $qtyErr = "";$cname = $date = $rfn = $item = $rate = $qty = $less = $amt = "";if ($_SERVER["REQUEST_METHOD"] == "POST"){ if (empty($_POST["cname"])) {$cnameErr = "Customer Name is required";} else {$cname = test_input($_POST["cname"]);} if (empty($_POST["date"])) {$emailErr = "Date is required";} else {$date = test_input($_POST["date"]);} if (empty($_POST["rfn"])) {$rfn = "";} else {$rfn = test_input($_POST["rfn"]);} if (empty($_POST["item"])) {$itemErr = "Item name is required";} else {$item = test_input($_POST["item"]);} if (empty($_POST["rate"])) {$rateErr = "Please input Rate";} else {$rate = test_input($_POST["rate"]);} if (empty($_POST["qty"])) {$qtyErr = "Please input item quantity";} else {$qty = test_input($_POST["qty"]);} if (empty($_POST["less"])) {$less = "";} else {$less = test_input($_POST["less"]);} if (empty($_POST["amt"])) {$amt = "";} else {$amt = test_input($_POST["amt"]);}}function test_input($data){ $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data;}// error messageecho $dateErr; // and so on?>
  11. funbinod

    mysql data & dropdown

    i created loop for selecting from all the rows of a table like this--- <?$rows = mysql_num_rows($result);for ($n = 0 ; $n < $rows ; ++$n) { echo '' . mysql_result($result,$n,'item') . '<br />'; }?> and tried to put in dropdown menu like this ---- echo '<form action="#" id="test" name="test">';echo '<select name="item">';echo "<option></option>";echo "<option>";{echo '' . mysql_result($result,$n,'item') . '<br />';}echo "</option>";echo '</select>';echo '</form>'; but returned error "Warning: mysql_result(): Unable to jump to row 2 on MySQL result index 5 in .................................." please guide me....
  12. razeldazel2

    Need help with HTML FORM email

    so, what i am trying to do is send an email from an HTML FORM. i want to keep it somewhat simple, meaning i don't want employ JS or PHP. HTML and CSS only. what i have so far: <form name="DriveOnRequest" method="POST" action="mailto:myemail@example.com?subject=Drive On Request" type="text/html" content-type="Multipart/formdata" accept-charset="UTF-8" enctype="Multipart/formdata" > <table> <td> <tr> <th><label>Requestor Name:<abbr title="Enter your name if you are the requestor or the name of the person who you are requesting the drive on for.">Help</abbr></label></th> <td><label>First</label><input type="text" name="first1" min="2" required></td> <td><label>Last</label><input type="text" name="last1" min="2" required></td> </tr> this is the more important part .. i think as i believe that the problem is somewhere in here. i am closing the form out and have a submit button. everything works fine up until then. when i submit it opens the default email program and is ready to send; however, the email inside looks something like this: Questions: 1. How can i remove the INPUT NAME Tags (first1=) or at least the "=" sign? 2. How can i remove the "&" sign obviously used as space. 3. Is there a way to style the whole thing at all? Because this is really where i need it. In the email, not the form. I am thinking that it has to do with the charset or the encoding but i am not sure. I find everything on the www about how to style the form but no more than bits and pieces about the resulting email.
  13. MarkT

    PHP File Upload - How Does it Work?

    Hello, Can anyone show me a demo of a code, I'm looking for a form that uses text and file upload. I need a form that has details such as title and content, but I also want an image upload where it saves the file to my FTP server in a folder called Uploads and then it saves the filename and extension to the database, along with the other details from the form. Can anyone give me the code and explain it please! Thanks in advance.
  14. I have been searching for days and just cant figure this out. Hope someone can help. I am fairly new to html and have been working on an application form. I finally have the form working, However - the submit button is towards to top and any attempt to move it renders the button non functioning. I know my code is messy - I'll clean that up once I know what I need to do can even be done. Thanks to anyone who can help! Here is my HTML" ​<head><meta content="en-us" http-equiv="Content-Language" /><meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><title>CALIFORNIA SCHOOL OF LAW APPLICA</title><style type="text/css">.auto-style1 { color: #000080;}.auto-style3 { text-align: center;}.auto-style4 { font-size: large; font-family: Arial, Helvetica, sans-serif; text-align: left;}.auto-style5 { font-size: small;}.auto-style6 { font-family: Arial, Helvetica, sans-serif; font-size: large;}.auto-style7 { font-size: xx-small;}.auto-style8 { font-size: large;}.auto-style9 { font-size: small; font-family: Arial, Helvetica, sans-serif;}.auto-style10 { color: #000000;}</style></head><form method="post" action="contact.php"><body> <p><img alt="California School Of Law Logo" height="116" src="LogoFinal%20no%20text.jpg" width="162" /></p><div id="layer1" class="auto-style3" style="position: absolute; width: 347px; height: 52px; z-index: 1; left: 368px; top: 53px"> <span class="auto-style6">CALIFORNIA SCHOOL OF LAW</span><br class="auto-style6" /> <span class="auto-style6">APPLICATION</span></div><hr class="auto-style1" style="height: 4px" /><div id="layer2" class="auto-style4" style="position: absolute; width: 397px; height: 380px; z-index: 2; left: 76px; top: 170px"> <strong>Personal Information<br /> <br /> </strong><span class="auto-style5">Last Name: <input name="Text1" type="text" /><br /> <br /> First Name: <input name="Text2" type="text" /> M.I: <input name="Text3" style="width: 15px" type="text" /><br /> <br /> Name on acedemic records (if different from above) <br /> <input name="Text4" style="width: 227px" type="text" /><br /> <br /> Social Security Number: <input name="SS" size="9" style="width: 141px" type="text" /> <br /> <br /> DL State:<select name="Select1"> <option></option> <option value="CA">CA</option> <option>NV</option> <option>TX</option> </select> DL Number: <input name="Text5" type="text" /><br /> <br /> Gender: <select name="Select2"> <option></option> <option>Male</option> <option>Female</option> </select> Date of birth: <input name="Text6" style="width: 92px" type="text" /><br /> <br /> Ethnic/Racial Background: <select name="Select3"> <option></option> <option>Caucasian</option> <option>Hispanic</option> <option>Asian</option> <option>African American</option> <option>Other</option> </select><br /> <br /> Birth place: <input name="Text7" type="text" /><br /> </span></div><p> </p><p> </p><div id="layer9" class="auto-style9" style="position: absolute; width: 518px; height: 230px; z-index: 9; left: 537px; top: 1022px"> D. Have you ever been court marshaled? <select name="Select14"> <option></option> <option>YES</option> <option>NO</option> </select><br /> <br /> E. Have you ever been dishonorably disharged<br /> from Miltary service? <select name="Select15"> <option></option> <option>YES</option> <option>NO</option> </select><br /> <br /> F. Do you know of any matter which might otherwise adversly affect your admissions to law school or the state bar? <select name="Select16"> <option></option> <option>YES</option> <option>NO</option> </select><br /> <br /> </div><div id="layer8" class="auto-style8" style="position: absolute; width: 520px; height: 307px; z-index: 8; left: 11px; top: 949px"> <strong>Miscellaneous<br /> <br /> </strong><span class="auto-style9">Please answer the following questions, if you answer YES to any question please explain<br /> <br /> A. Have you ever been on probation, suspended, dismissed or formally reprimanded by any educational institution? <select name="Select11"> <option></option> <option>YES</option> <option>NO</option> </select><br /> <br /> B. Have you ever been convicted, pleaded guilty or no contest to any crime other than a minor traffic violation or juvenile offense? <select name="Select12"> <option></option> <option>YES</option> <option>NO</option> </select><br /> <br /> C. Are there any criminal charges currently pending or expected against you? <select name="Select13"> <option></option> <option>YES</option> <option>NO</option> </select><br /> <br /> Explanation: <br /> </span></div><div id="layer7" style="position: absolute; width: 1162px; height: 24px; z-index: 7; left: 9px; top: 922px"> <strong><span class="auto-style5"> <hr class="auto-style1" style="height: 4px" /></span></strong></div><div id="layer6" style="position: absolute; width: 415px; height: 205px; z-index: 6; left: 462px; top: 644px"> Email Address: <input name="Text18" style="width: 229px" type="text" /><br /> <br /> In case of emergency:<br /> <br /> Name: <input name="Text19" type="text" /><br /> <br /> Relationship: <input name="Text20" type="text" /><br /> <br /> Phone: <input name="Text21" type="text" /></div><div id="layer5" class="auto-style6" style="position: absolute; width: 431px; height: 278px; z-index: 5; left: 10px; top: 643px"> <strong>Contact Information<br /> <br /> </strong><span class="auto-style5">Street Address:</span><strong> <input name="Text12" type="text" /><br /> <br /> </strong><span class="auto-style5">City:<strong> <input name="Text13" type="text" /><br /> <br /> </strong>State:<strong> <select name="Select10"> <option></option> <option>CA</option> <option>CO</option> <option>TX</option> <option>NV</option> <option>WA</option> </select> </strong>ZIP:<strong> <input name="Text14" type="text" /><br /> <br /> </strong>Home Ph:<strong> <input name="Text15" type="text" /><br /> <br /> </strong>Work Ph<strong>: <input name="Text16" type="text" /><br /> <br /> </strong>Cell Ph:<strong> <input name="Text17" type="text" /><br /> </strong></span></div><div id="layer4" style="position: absolute; width: 1174px; height: 31px; z-index: 4; left: 5px; top: 610px"> <strong><span class="auto-style5"> <hr class="auto-style10" style="height: 4px" /></span></strong></div><div id="layer3" class="auto-style6" style="position: absolute; width: 446px; height: 422px; z-index: 3; left: 671px; top: 165px"> <strong>Status - Term Start 14WIN<br /> <br /> </strong><span class="auto-style5">Application Status:<strong> <select name="Select4"> <option></option> <option>New Student</option> <option>Returning Student</option> </select><br /> <br /> </strong>Prior Application Submitted?:<strong> <select name="Select5"> <option></option> <option>YES</option> <option>NO</option> </select><br /> <br /> </strong>LSAC Registration No.: <strong> <input name="Text8" type="text" /></strong></span><br /> <br /> <span class="auto-style5">Have you taken the LSAT?: <select name="Select6"> <option></option> <option>NO</option> <option>YES</option> </select> Score: <input name="Text9" style="width: 71px" type="text" /><br /> <br /> Are your transcripts on file with LSAC? : <select name="Select7"> <option></option> <option>YES</option> <option>NO</option> </select><br /> <br /> </span><em><span class="auto-style7"><strong>Note: You do not have to be a U.S. Citizen to attend law school or practice law in California<br /> <br /> </strong></span></em><span class="auto-style5">Are you a United States Citizen? :<strong> <em><span class="auto-style7"> <select name="Select8" style="width: 24px"> <option>YES</option> <option>NO</option> </select></span></em><br /> <br /> </strong>If NO, are you a permanent resident? :<strong> <select name="Select9"> <option></option> <option>YES</option> <option>NO</option> </select><br /> <br /> </strong>VISA Type:<strong> <input name="Text10" style="width: 166px" type="text" /><br /> <br /> </strong>Alien Number:<strong> </strong></span> <input name="Text11" style="width: 178px" type="text" /></div><p> </p><tr><td> <input type=submit name="send" value="Submit" input align="bottom" style="margin-left:550px"> </td></tr> </form></body></html>
  15. Hi all,urgent, I need help.I need to set up and online form where people can register their details and I need these details to gointo a speadsheet (Excel).Im asssuming its a database.How do I set that up? I was planning on using php script which grabs the detail and send it to an email but they want it to be sentonto a spreadsheet.I have never done it before and do not have a clue how its done.Can anypne help please.Many thanks
  16. jimfog

    preselected radio button

    I have made a form where some radio buttons are contained.The selection made by the user is stored in the db tables as a number, corresponding to the different values of each of the radio buttons. Here are the radio buttons with corresponding values: <td><input type="radio" class="formBuzType" name="buztype" value="1" > <label>test1</label><br></td> <td> <input type="radio" class="formBuzType" name="buztype" value="3"> <label>test3</label> <br></td> <td> <input type="radio" class="formBuzType" name="buztype" value="4"> <label>test4</label> <br></td> <td><input type="radio" class="formBuzType" name="buztype" value="5"> <label>test5</label> <br></td> <td><input type="radio" class="formBuzType" name="buztype" value="2"><label>test2</label> <br></td> If the user has chosen test3 then "3" will be stored in the database. Getting the value 3 from the db is not difficult(a simple SELECT query)...what I cannot do is making the appropriate preselection in the form depending on the fetched from the db value. To say it simpler...since 3 is in the db, I want when the radio buttons appear to the user(HTML) the value 3 option is selected so that the user can know what he has chosen the last time...how I will do that?
  17. I would swear I have seen an input type that was somewhere between a plain ol' text box and a select. In other words, the user could choose from the drop-down list or, if their choice was not found in the list, they could type in whatever they wanted. Is there such a control? I spent some time on http://w3schools.com looking for this, but found nothing.
  18. I have a page in which users are an employee of a charity. They can / should enter information about their organization including phone numbers. It occurs to me that some organizations may have dozens or even hundreds of phone numbers. I do NOT want to have to place that many <input> tags on the page since most users will never need them. I thought it would be nice if there were some sort of input device that can be expanded as needed like a spreadsheet.If there is no such control, I want one. I want it very similar to an <input type=text> control because I want to limit the length of the user's input and even the content, if possible. Also, the cells need to be named as they are created so the server can know they exist and can extract their value.
  19. Hello internet Safari is not allowing my radio buttons to work and it will not let submit my form connected with those... any help is greatly appreciated. Thanks. SUBMITTING THE FORMHTML<form name=poll1 id=poll1 method="post" target="_blank">.....<input type="radio" name="ne" id="ne1" value="1">.....</form> JAVAfunction poll1submit(){poll1.action = "polls_p.php";document.getElementById('poll1').submit()}
  20. Hi! I'm new to the whole form-making business and currently beating my way though the basics. Right now i'm clueless about what seems to be a pretty simple and straightforward function. I want my visitor to be able to add values from two different <input-type>-fields into a <textarea>. These two values (being name and e-mail) should become a single row in the <textarea>. The visitor should also be able to remove desired generated rows with a simple click on the "remove selected"-button. The result should look like this: This part of my form looks like this thus far: <div class="deltagare-rubrik">Namn:</div> <input type="text" size="45" name="deltagare-namn" value""> <div class="deltagare-rubrik">E-post:</div> <input type="text" size="45" name="deltagare-epost" value""> <br /> <input type="button" name="deltagare-add" value="Add" class="button"> <br /> <textarea name="deltagare-list" class="deltagare-list" readonly="true"></textarea> <input type="button" name="deltagare-remove" value="Remove selected" class="button"> Very grateful for help, thanks!
  21. Hi all, I'm new to JavaScript and I'm really stuck on something for a project that is probably easy to resolve but I can't seem to figure out after many trial and errors! I'm trying to get ALL of the onfocus events to work for each input field. For example, I want to create a div for the instructional message to appear whenever you click on the text field. It'll be much appreciated if anyone can help! I'm using this code but it only works for the first text field I click on and not the rest of the other text fields: function init(){ document.querySelector("#fEmail").onfocus = Einstructions;document.querySelector("#fName").onfocus = Ninstructions;document.querySelector("#fAddress1").onfocus = Ainstructions;} //function for instructions on the email text fieldfunction Einstructions(){ //select any message divs that might be where we don't want them, and destroy themmsgs = document.querySelectorAll(".DivMsg");for(var i=0;i<msgs.length;i++){ //ask the parent node of each message div to destory the message divmsgs[i].parentNode.removeChlid(msgs[i]);} var div = document.createElement("div");div.className = "DivMsg";div.innerHTML = "Please enter your e-mail address (example: john@blah.com)."; //append the div to the page, inside of the parent of the current form elementthis.parentNode.appendChild(div); } //function for instructions on the name text fieldfunction Ninstructions(){ //select any message divs that might be where we don't want them, and destroy themmsgs = document.querySelectorAll(".DivMsg");for(var i=0;i<msgs.length;i++){ msgs[i].parentNode.removeChlid(msgs[i]);}var div = document.createElement("div");div.className = "DivMsg";div.innerHTML = "Please enter your full name."; //append the div to the page, inside of the parent of the current form elementthis.parentNode.appendChild(div); }//function for instructions on the address text field function Ainstructions(){ //select any message divs that might be where we don't want them, and destroy themmsgs = document.querySelectorAll(".DivMsg");for(var i=0;i<msgs.length;i++){//ask the parent node of each message div to destory the message divmsgs[i].parentNode.removeChlid(msgs[i]);} var div = document.createElement("div");div.className = "DivMsg";div.innerHTML = "Please enter your full primary address."; //append the div to the page, inside of the parent of the current form elementthis.parentNode.appendChild(div); }
  22. sunziun

    Get User Input From Form Field

    Hi, I got a form which I use to take payments via PayPal. All is setup but one form field. To write the "item_name" for PayPal i use this piece of code: document.getElementById('item').value = "Week: " + week + ", Load: " + loading + ", Add. Hours: " + chours + ", Dest: " + postcode Selection fields are: week, loading and chours postcode is an input field, type text I want to get the postcode entered by the user into the item field and use it as the item_name for PayPal. I tried pcode = document.getElementById('postcode') postcode =pcode.value postcode = document.FormName.ElementName.value and more other suggestions form the internet, but none is working.postcode is always empty or undefined form field is: <input type="text" id="postcode" name="postcode" required /> Please someone help me out!
  23. nerospace

    User data handling problem.

    Hi all Expert, I am PHP learner. I want to do something by PHP. My process is below:I have created a form now need to do like this: I will input data by PHP in my database.(I can input only one field data but i need to input multiple field data). Then database's all data will show in other page in & there will show a EDIT button then anyone can update their data by selecting name or ID. Then it will show me welcome page. This process I want to do.
  24. James_Parsons

    Ruby POST form

    This is the same exact question here in http://w3schools.invisionzone.com/index.php?showtopic=46321. I just want to know how to do it in ruby. I just want to know how to use POST to retrieve info form a textbox and write it to a file called info.txt. just so you don't have to run back and forth between pages here is the html: example.htm <!DOCTYPE html><html><head> <title>POST Example</title></head><body><form name="example" method="POST" action="TheRubyFile"> <input type="text" name="value" /> <input type="submit" name="submit" value="Submit It"/></form></body></html>
  25. goose2013

    using php to send form data to email

    Im looking for a little help, I am in the process of building a website and I want the contact form data to be sent to an email account.After looking at a tutorial on how to send my html form data to php I have hit a problem where the email always goes into the outlook accounts junk folder. I suspsect it may be the code I have used anyway any help would be very appreciated. Anyone know of a good tutorial or example code that will help me send my form data to email? Many thanks
×