HTML - Auto Fill Form By Link
I was wondering, if there is a web page with forms, is there anyway you can create a link so that some of the input boxes are automatically filled. This would be nice so that I can email a few links to a lot of my friends and I've already filled out some of the info for everyone. Thanks for the help.
~Bryan H.~ Similar TutorialsI have come accross a problem on my site. If i let the browser (FF in this example) remember my login details, it then places them in some input fields on my account settings page. Only it puts them into the wrong one. Eg, it places the username from the login into the "new_forename" field in the account settings below is the html (minus the divs...etc) for the site login form and then the change forename form on account settings.php. Here is the html code for the username and password entry on my login screen: Code: <form name="login" method="post" action="authenticate.php"> username <input style="width:180px" name="enter_user" type="text"/> <span class="form-warning"></span> password <input style="width:180px" type="password" name="enter_pass"/> <input class="button blue medium" type="submit" name="login" value="login"/> </form> Here is some html code from my account settings page Code: <form name="new_forename" method="post" action="accountDetails.php"> Enter new forename <input type="text" name="new_forename" value="" size="30"/><br/> Enter your password <input type="password" name="password" size="30"/> <input class="button blue medium" style="width:130px" type="submit" name="save_forename" value="Save new forename"/> <input class="button red medium" type="submit" name="cancel" value="Cancel"/> </form> How can i correct this? Is it that the browser is seeing the "password" fields and simply filling in the stored password field with the password saved for the site? Hi All, I've been asked to make some hyperlinks that automatically select items in a drop down menu in a contact form. Is this possible if so, how is it done Thanks in advance Bluestreak I was wondering if there was any way to do this: I have a site that has a catalog. There are 10 - 20 items per page and about 15 pages/categories. Each item will have a check box. When a checkbox is clicked a window will open (containing a list of EVERY item, quantities, etc.) and a check box next to that particular item will be automatically checked. Then as the user clicks through the catalog and checks off boxes they will be filled in in the new window as well. Basically I need to know how to check a box in one window and have it check a box in another window at the same time. Thanks. Hi everyone - I've been building our new site located at http://viralms.com for the last few weeks. There is just one thing I can't seem to figure out. On the home page there is a Marketing Evaluation form with "Name" and "Email" fields. When someone is to fill out those 2 fields and hit "Continue" I want it to land on this page: http://viralms.com/analysis.html Upon loading the analysis page, the name and email fields should be automatically filled out. I've seen it done before but can't really figure out how to do it Thanks J How do I prefill an input field in a form? I don't mean "value=hello" I mean have a light gray text inside that says "enter your first name" and then when the user starts typing that text disappears. I thought there was an html tag that did this (or a form tag like type=""). I hope it doesn't require CSS... thanks! I have several pages of webaddresses and I want all of the addresses to link but dont want to do it to each address, is there anyway to make each addresses automatically hyperlink to itself. e.g www.cnn.com, i would like that address to be hot and when clicked it goes to cnn.com but i have pages and pages of addresses and dont want to have to type a target for each one. Thanks Good morning... I have a bunch of links that open pdf files publish on a server. These files are overwritten with the latest data every 30 minutes... the challenges i have is to open the latest and greatest when i click on the link..... I do have a meta refresh code in the head of my page, it look like this: <head> <meta http-equiv="Cache-Control" content="no-cache"> each one of my links look like this: <a href="http://myweb.com/report/reportinpdf.pdf"; >Report name herer</a> Any ideas on making sure that i open the latest and greatest instead of whatever is in the cookies....???? (i am assuming that is why the files is not updating...) Thanks in advance... Seabass Hi, I would like to construct a form which is auto filled and submits automaticaly.. It has to upload a file whose path I know.. Here is what I tried Code: <FORM action="read_csv.php" enctype="multipart/form-data" method="POST"> <input type="file" name="datafile" value="/home/anirudh/public_html/readd_csv/performance.csv"> <script type="text/javascript">document.form.submit()</script> </FORM> But the form's file field is not filled automatically..What is the problem? Hi everybody! I have a jsp page with a form and a table. My aim is that when i press the submit button of the form,collect the data and fill the table with it. I am working with J2EE. I have already collected the data in a Java class,but I dont know how to introduce this data into the table. Best Regards! Hi All, I want to autosubmit my file to google.com. Here is the code I wrote to execute it. Unfortunately output is not what is intended. I tried in IE and mozilla only. Basically I want the script to be browser independent Any help will be appreciated. Below is the code. My file name is autosub.html <HTML> <HEAD> <TITLE>My First JavaScript</TITLE> </HEAD> <BODY onload=""> <FORM NAME="search_Key" METHOD="post" ACTION="http://www.google.com" target="_top" id="search_key"> <p align="center"> Search value : <INPUT NAME="search_value" SIZE="10" MAXLENGTH="3" VALUE="spiderman"></p> <INPUT type="submit" value=Go> </FORM> <SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT"> <!-- document.write("I love JavaScript"); //--> function myautosubmit() { document.pnr_stat.submit(); document.write("I love JavaScript2"); } </SCRIPT> </BODY> </HTML> When open my autosubmit.html, browser shows "I love JavaScript2" only. Thanks in advance Hey, Using PHP and MySQL but I thought this problem is more suited to HTML (admin, please move if its not). I have a drop down select form which I want to automatically change the page once the user has selected it. Like a home page of a company and you choose the country, when it automatically goes to the appropirate page. Any ideas of how to do this? Thanks, Hi all, I'm trying to find a way to have my webpage scroll to the bottom automatically after the script: document.form1.submit() is called. I need to run the function/refresh in order to reload some different data into part of the page, but after the refresh the position of the page is always at the top... making the user have scroll down again. I could set some anchors or use window.scroll(0.500); on the page load, but i only want it to scroll down if that function of form1.submit() is called - and thats only called once the page has already loaded for the first time. So the first time a user goes to the page, it loads normally at the top of the page. Then they scroll down themselves and select an option. Once the select an option, the form1.submit() is called and the page refreshes with new data in it but is still at the top. Is what I want possible? Thanks, Mike A customer gave me a Word doc that they want turned into a printer friendly web page. I understand that there are tons of ways to do this but I really want the answer to the subject. What i'm referring to is a form that someone can print from the browser and "fill in the blanks" on the page where there are "underscores". My question is how to code those underscores. I tried manipulating the <hr> tag but it's putting way too much space in between each <hr>. I've already coded a "fill in the blank" line using <u> nbsp;</u> but that looks very messy. What do you guys/gals think? Hello - I have a page that lists open jobs for a small company (job id, pay, location etc). There won't be that many postings, so its easy to add it via a table in html. However, I also have an application form, (job id, job title, name, email, etc) that is accessible once the person clicks the job id on the job listing page. I want to link these two pages in a way that once you click the job ID on the listings page, that information carries over and pre-populates the corresponding field on the application form. I understand I can build a mysql database to populate the job listings and then populate the application form, but given the small size of the site, i wanted to explore another option (javascript, light php, etc). Is this possible? Or do I have to build a database? I am having problem with a hyperlink to PDF file with form fields. When I click on the hyperlink the new window opens and says "done" but the PDF file does not open automatically. "Right-click and save target as" works, though. I tried linking PDF file without the form field and worked fine. Definitely something to do with the form on pdf file. Could anybody give me some help? I want this form to be open when I click...Thanks... I need to correct some code for an email link. It's complicated and I need help offline. I'm willing to pay decent money for the help. It involves a secured email form. Please email me at helpline1958@yahoo.com <form name="form1" method="POST" action="finance_request.shtml" webbot-action="--WEBBOT-SELF--"> <!--webbot bot="SaveResults" S-Email-Format="TEXT/PRE" S-Email-Address=" ....... Thanks This is probably the simplest thing in the world but I can't figure out what to do to make it happen... I need to have an "enter zip code" box with submit button, that opens a link in a new window...where the zip code entered is passed into the link... So, I enter my zip code: 28052 and get this link in a new window when pressing submit: thesiteaddresshere.com/ login/ minisearchpost.cfm? something=1&zipcode=28052 &signup=ouraffiliatecode Thanks in advance for any and all help! David T. A client of mine has a regular Contact Us form on her site. She's asking if it's possible to have a link elsewhere on the site that, when clicked, goes to the form and has a subject field pre-filled in. The caveat is that this form still needs to exist as a generic Contact Us form when a user navigates to it directly, so I can't just have the subject line exist in the form already: the link has to go to the form page and fill in the field. Is something like that possible? I know you can create subject-filled mailto links using the ?subject= code, but've never tried to do it with a link to a form and can't think how it might be done. The simpler the better as the site is just .shtml, nothing fancy. Thanks, m19 hiiii alll........ I am creating 2 html pages. when i open first page i want to display a particular form. clicking on link in form 1 we will go to 2nd html page where a image link will appear. when we click on this image link i want to dispaly 1st html page with 2nd form. how to do this please give the html code for this..... Hey everyone! So after ruling out more complex Java implementations of passing a string onto the end of a static link, I'm attempting to do the same using <form> and onclick but am having difficulties. What I am trying to do is simple. There will be a form box where the user enters their ZIP CODE and then clicks a button 'Go'. Once clicked, I'd like to open a separate window (or possibly leave everything in the same window-not important) where the 'zip code' string (ie: 12345) is attached to the end of a static link (ie www.website.com/zip= ) to direct the user to the link 'www.website.com/zip=12345' I realize this is a simple idea, but thus far tutorials have lost me. This is the code that I have, but I admit it is a mess and might just be a better idea to ignore it: Code: <form> <input type="text" maxlength="8" name="zip" style="color:#555555;" value="Your ZIP" class="cleardefault" onclick="http://www.t-mobile.com/coverage/pcc.aspx?zip="+zip"> <input type="button" value="Go!" onclick="http://www.t-mobile.com/coverage/pcc.aspx?zip="+zip" > </form> Again, I know this is very n00bish and annoying, but if you could help I'd greatly appreciate the time! |