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

Calendars

  • Community Calendar

Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 116 results

  1. 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.
  2. 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/
  3. duplicate entry

    how to check for duplicate entry on a form using php?
  4. 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?>
  5. 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....
  6. 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.
  7. 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.
  8. 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>
  9. 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
  10. 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?
  11. 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.
  12. 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.
  13. 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()}
  14. 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!
  15. 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); }
  16. 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!
  17. 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.
  18. 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>
  19. 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
  20. How to edit Language on php form or should i say change well im making a website in spanish and i want to chage the language of the contact form this is the site http://bioiman.com/ let me know
  21. jQuery GET method PHP

    Hello, im wondering how does jQuery get method work. Since it should not reload the page again? I've seen this, but how to example make this more automated whitout refreshing "http://mudsaf.info/games/index.php". $.ajax({ url: url, data: data, success: success, dataType: dataType});
  22. HTML Form control

    A form installed on our web site has been working for three weeks or so, but suddenly stopped workingunder the circumstance described below. The form has several <input> fields, and only one <textarea>.The problem lies with the <textarea> field: <form action-="http://.../cgi-bin/cgiemail/registration.txt" method="post" /><input name="success" type="hidden" value="http://.../thanks.htm"><textarea name="passengers" cols="20 rows="10" />...</textarea> When data is entered in the passenger field as: Alpha <enter>Beta <enter>Charlie <enter>Delta <enter> <submit> the form fails and this error message appears - [i][b][font=times new roman,times,serif]"No email was sent due to an error.[/font][/b][/i][i][b]Invalid character detected in headers.[/b][/i][i][b]Possible spam exploit attempt."[/b][/i] When data is entered on one line as: Alpha Beta Charlie Delta <submit> the form works and an email is sent via cgiemail script. All other fields are <input type="text" name="[various]" size="[various]"/>and all work as defined. When I modify the form action to ".../cgi-bin/[b]cgiecho[/b]/registration.txt..." andenter data in both formats, I get a success response page (thanks.htm) but since nothingwas transmitted, I have no way of knowing if the <textarea> field behaved as intended. My host tech support said he could not see any mis-written code, but his tests indicatedthere was indeed some sort of "invalid character in the headers," and suggested I use their$65/hr HTML division to research the problem. He doesn't think the "Possible spam exploitattempt" suggestion is a valid one. I explained that the form was working properly until lastweek and I had not made any changes... specifically the <textarea> field that would affectthe cgi scripting - I don't have access to the scripts on their servers. Can anyone help with this problem? Doug
  23. Perl POST HTML Form

    Hello. I am beginning per for cgi scripting. I have been trying to find out how to do a simple form POST. I want it to take the info from a textbox and then write it to a file called info.txt. Every POST example I have found is too complicated. Please tell me if GET would be better suited for this. I just want someone to teach me how. Here is an example html file: example.htm <!DOCTYPE html><html><head> <title>POST Example</title></head><body><form name="example" method="POST" action="ThePerlFile"> <input type="text" name="value" /> <input type="submit" name="submit" value="Submit It"/></form></body></html>
  24. Manual Seacrh Form

    My website is runing on WP Platform running PHP and MYSQL. I'm trying to buid a simple search form that will work as follow: The search form will have 5 fields as follow: Select a StateSelect a CountySelect a CitySelect a CompanyAgent Type If a user click and select the State the form will automatically select all counties within that state, then the third field will auto select every city when the user select the county and so fourth. When the user is done and is ready to hit submit the form will manually redirect the user to that specific page he or she selcted. Here is the code that I have so far: SEARCH: <form role="search" method="post" id="searchform" action="#" > <input type="hidden" value="" name="s" /> <input type="hidden" value="listing" name="post_type" /> <select name='State' id='State' class='state'> <option value="Select a State" selected>Select a State</option> <option value="AL" >Alabama</option> <option value="AK" >Alaska</option> <option value="AZ" >Arizona</option> <option value="AR" >Arkansas</option> <option value="CA" >California</option> <option value="CO" >Colorado</option> <option value="CT" >Connecticut</option> <option value="DE" >Delaware</option> <option value="FL" >Florida</option> <option value="GA" >Georgia</option> <option value="HI" >Hawaii</option> <option value="ID" >Idaho</option> <option value="IL" >Illinois</option> <option value="IN" >Indiana</option> <option value="IA" >Iowa</option> <option value="KS" >Kansas</option> <option value="KY" >Kentucky</option> <option value="LA" >Louisiana</option> <option value="ME" >Maine</option> <option value="MD" >Maryland</option> <option value="MA" >Massachusetts</option> <option value="MI" >Michigan</option> <option value="MN" >Minnesota</option> <option value="MS" >Mississippi</option> <option value="MO" >Missouri</option> <option value="MT" >Montana</option> <option value="NE" >Nebraska</option> <option value="NV" >Nevada</option> <option value="NH" >New Hampshire</option> <option value="NJ" >New Jersey</option> <option value="NM" >New Mexico</option> <option value="NY" >New York</option> <option value="NC" >North Carolina</option> <option value="ND" >North Dakota</option> <option value="OH" >Ohio</option> <option value="OK" >Oklahoma</option> <option value="OR" >Oregon</option> <option value="PA" >Pennsylvania</option> <option value="RI" >Rhode Island</option> <option value="SC" >South Carolina</option> <option value="SD" >South Dakota</option> <option value="TN" >Tennessee</option> <option value="TX" >Texas</option> <option value="UT" >Utah</option> <option value="VT" >Vermont</option> <option value="VA" >Virginia</option> <option value="WA" >Washington</option> <option value="WV" >West Virginia</option> <option value="WI" >Wisconsin</option> <option value="WY" >Wyoming</option></select><select name='county' id='county' class='county'> <option value="Select a County">Select a County</option></select><select name='city' id='city' class='city'> <option value="Select a City">Select a City</option></select><select name='company' id='company' class='company'> <option value="Select a Company">Select a Company</option></select><select name='agent type' id='agent type' class='agent type'> <option value="Agents Type">Agents Type</option></select><input type="submit" id="searchsubmit" class="searchsubmit" value="Submit" /></form> Thank you so much for all your help!
  25. Form

    Hello Everyone, I want to design form with this drop down arrow. how can i design it. There is any JS to create such a design?? please tell me. please see the attached image to understand want i want.
×