HTML - Retrieving Remote Data To Add To A Form?
I need to create a form with a submit button. When pressed, the form will retrieve data (a list of options) from a remote url then display those options in a Select element.
Can anyone provide me with any sample code or point me in the right direction for how I should go about achieving this? Thanks, James Similar TutorialsSo I've got a form with some input text. In addition to the data in the input text I want to send some other data that has already been predetermined on initial page load. How would I declare the other data within the form element? Thanks I have been using my site for some time now and it carries the image name over when you clicked on purchasing the print. It carries it still, but when you submit the form, the image name isnt there and the form errors because the field is blank. Here is the site: www.sthompsonphoto.com I cant seem to figure out why it disappears when you click Submit? Any help would be great! 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 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 I have a simple signup form on my site that I want to pass the input to the larger signup form. Here is the code for the simple form: <form action="http://bigdogcattle.com/?a=Cattle_Mailing-List_SignUp" method="post" accept-charset="UTF-8"> The larger signup form is located he http://bigdogcattle.com/?a=Cattle_Mailing-List_SignUp I want the email address from the simple form to move to the larger form when the submit button is pressed. Ideas? Hello all! I've been lurking in these forums for a good while as I've recently started dabbling in web design. As such, I find myself stumped. Despite my relatively thorough search on Google I've yet to find anything that points me in the right direction. I assume I'm simply not using the right terminology in my searches. Hopefully the community here can help me out. In short I have a chat applet that I'm trying to get a "Report Member" function working in. Users can right click on a member and select "Report Member". From there I have a page on my site called Report.htm and that particular URL. The chat applet provides information on the end of that URL. Here is an example URL: Code: http://www.siteurl.com/report.htm?username=JohnDoe&roomname=Main+Room&showuser=2264826&uid=2264826&srcuid=2264826&srcusername=JaneDoe Essentially, JaneDoe is reporting JohnDoe for who knows what. When the report is made they're sent to the placeholder report page with all the details at the end of the URL. If possible, I'd like the Report.htm page to have a form in it where the information for the form is prefilled (and uneditable) from the information provided by the URL. Essentially the form would roughly look like the following: Username of Member: JohnDoe Your Username: JaneDoe Room: Main Room Report: (This would be the only editable section) After filling out the report they'd hit submit and it'd get emailed to the moderating staff. Is this something handled on the server side of things? If so I've potentially posted this in the wrong subforum, but I assumed it was something that could be done via form tags in HTML (though I do know some script would be needed for the actual submission of the form). My server uses PHP, if that information is useful. With all that said, is this possible? If so, what can help get me started in learning how to do this? I've spent a good deal of time looking around on Google but nothing seems to be quite what I want or, more likely, I'm simply not using the right search terms. Any help would be greatly appreciated! Hi there, quite a lame question i think.. Anyone have on idea on a script, (which i believe should be quite simple) which can extract the line from an csv file and show ot in a html page at search request. In more details it should look like this : somebody enters some word in simple html search form and pushes search button, the script searches through the csv file and copies whole line with matchin word in the web page. Or maybe there is a simplier way, since csv file can be converter to any other format... Thanks in advance. hi, i have a form wich consist username and password. i want to read these content and store in the local system( my system) also i want to read the same thing from the file. can any one please send me the code for that. Many thanks in advance... Hey all, This is probably a stupid question, but it's driving me nuts - I have a simple form with 2x file uploads on it, and when the user clicks a button a PHP script is run. This scrip is picked up by checking the global $_POST variable for 'upload'. This works fine and my PHP script does the upload when I only select one file (using either one), but when both are filled in for some reason the global $_POST variable is empty, so my script will not run. Before looking down the PHP route I'm wondering if everything is ok with my form, or if there is some error that I am missing that is causing this problem? Any help is greatly appciated. Thanks. Code: <form action="" method="post" name="client-balances-selection" enctype="multipart/form-data"> <div id="current-balances"> <h3>Current client balances</h3> <input type="file" name="current_balances" class="file_upload" /> </div> <div id="past-balances"> <h3>Past client balances</h3> <input type="file" name="past_balances" class="file_upload" /> </div> <input type="submit" name="upload" class="button-primary" value=<?php _e('Compare'); ?> /> <input type="submit" name="delete" class="button-delete" value=<?php _e('Delete old files'); ?> /> </form> Greetings I'm organizing a competition, or quest, between my forum members. Each competitor has to finish 37 tasks. So I built this table to use as a progress tracker. It lists the names of the participants at the left side, and a horizontal bar at top with 37 cells showing task number. Each time a user finishes a task, he PMs me and I then go edit his/her table row to change the color of the cell under that task, and type the date he finished it in. But this is too much work for me, as I have to edit the table many times each day.. so I was thinking, can someone help me do the following? It would be great if I have a form that users can fill in, and then that form submits its data into the corresponding cells in the progress tracker table, so that the table automatically reflects the new data. The user has to type a code that I assign for him, for the form to know which row to handle, and also to prevent others from playing tricks with his data. It would be even greater if another form can be made that automates the participation process, by adding a new row when a new user who wants to join the competition, submits the form. Then the form emails the user the code he would later need to submit data to his row. Many thanks for any help, code or examples given. I cannot get my form to write to my asp file for the life of me. My website is rollingdice.byethost32.com you'll notice a login form with two simple txt fields. I have the action set to the name of the asp file ("logins.asp"). The asp file looks like this Code: <html> <body> <% 'declarations Dim username, password 'initiate declarations username=Request.Form("username") password=Request.Form("password") 'print input Response.Write("Username: " & Request.Form("username") & "<br />") Response.Write("Password: " & Request.Form("password") & "<br />") %> </body> </html> If someone could please tell me what i'm doing wrong it would be much appreciated Ok, this sounds extremely easy but I'm more of a designer and less of a coder. I'll try and explain what I want to accomplish. I spent the better part of the afternoon yesterday searching for a solution. Alas, I need some assistance! We have a page where users can view a report in a PDF format from a drop down. Also on that page we need to have a place where they can select an option from a drop down and email the PDF to them. Now, we have the link set up. I can take a sample link, add my email address to the end of it, hit enter and it shoots me an email. The question is how can I take what the user inputs into a form and pass it into a URL. All that needs to happen is to send the user to that URL and have the URL be correct. At that point the email gets sent automatically. My best attempt so far gets me to the URL but things like &, =, etc are replaced by %3D and %26. The URL won't work that way. I'll post that code: Code: <FORM METHOD="LINK" ACTION="https://fusion.bennettware.com:4443/drivers/getfueltaxreport?"> <select name="unitfuel"> <option selected>Select Month</option> <option value="year=09&month=01&reportName=UnitTax">January 2009 </option> <option value="year=09&month=02&reportName=UnitTax">February 2009</option> </select> Type in your email address: <INPUT TYPE="text" NAME="&email="> <INPUT TYPE="submit" VALUE="Send email"> </FORM> Here is what I get in the URL: (sorry had to place it in html tags because the link was only half showing up.) HTML Code: https://fusion.bennettware.com:4443/drivers/getfueltaxreport?unitfuel=year%3D09%26month%3D01%26reportName%3DUnitTax&%26email%3D=test@testmail.com Also, notice that "unitfuel" gets appended to the URL as well. It gets passed into the URL and that will likely cause the report to fail. The URL needs to look like this: HTML Code: https://fusion.bennettware.com:4443/drivers/getfueltaxreport?year=09&month=01&reportName=UnitTax&email=myemail@mydomain.com If a user were logged in and ran that link, a page would appear stating that an email had been sent. So, all I need it for the input to get placed into the URL without all of the additional characters. The report cannot run when the URL looks like the above and thus cannot get emailed. Also, that link probably won't work since the site is password protected, so you'll likely get a 'page cannot be displayed' error if you try to access it. Solution is likely simple, then again, my luck would have it not being so simple! I thank you all in advance for your help. At least a point in the right direction would be nice. Hi, Not sure how to explain it properly but i've got a php script which outputs a list of items in a div within my page. I want to be able to have that list form two collums. As if it were in two table TDs. Hope I've explained well enough.. Thank you. Hi everyone I'm new to this forum and I have a question. I need to create an input form that asks users for a zip code. Once they type in their zip code and hit submit I need to take their zip code and put it in the URL. EX. if 12345 was typed, after they hit submit it would take them to "www.example.com/12345" Does this make sense? Hi, I have a form designed to take details of a customer; I want to have the details of a form display in it's own textbox so i can use some javascript to 'Ctrl+A' and 'Ctrl+C' it. This code I have already, but getting the info from the 'form' into the text box is the issue. Another thing I should mention, this will be stored locally on a machine, there's no web servers. It's purely a web-based app for someone to put into while they're taking a call for a problem. any idea's, here's the code on my page thus far: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <link rel="stylesheet" type="text/css" href="main.css" /> </HEAD> <BODY> <script type="text/javascript" language="JavaScript"> function HidePart(d) { document.getElementById(d).style.display = "none"; } function ShowPart(d) { document.getElementById(d).style.display = "block"; } function CheckboxChecked(b,d) { if(b) { ShowPart(d); } else { HidePart(d); } } </script> <Table class="one" name="main_Body" align ="left" border="0" width 100%> <FORM name="MNTA" action="data.html" method="post"> <tr> <td height="26"> First Name </td> <td> <input type="text" name="firstname"> </td> </tr> <tr> <td height="26"> Last Name </td> <td> <input type="text" name="lastname"> </td> </tr> <tr> <td height="26"> Company </td> <td> <input type="text" name="company"> </td> </tr> <tr> <td height="26"> Contact Number </td> <td> <input type="text" name="contact"> </td> </tr> <tr> <td height="26"> eMail Address </td> <td> <input type="text" name="email"> </td> </tr> <tr> <td height="26"> Does User have a Maximo ID? <input type="checkbox" name="MAXID" value="yes" onclick="CheckboxChecked(this.checked,'MaxIDdiv')"> Yes <br> </td> <td> <div id="MaxIDdiv" style="display:none"> Users Maximo ID <input type="text"> </div> </td> </tr> <tr> <td height="26"> Is this an existing request? <input type="checkbox" name="MN_No" value="yes" onclick="CheckboxChecked(this.checked,'MN_Nodiv')"> Yes <br> </td> <td> <div id="MN_Nodiv" style="display:none"> ManageNow Incident Number <input type="text"> </div> </td> <tr> <td height="26"> Has a Local SME advised to raise this request? </td> <td> <input type="radio" name="LSME" value="Yes"> Yes <input type="radio" name="LSME" value="No"> No <input type="radio" name="LSME" value="NA"> Not Applicable </td> </tr> <tr> <td height="26"> Are other users experiencing the same problem? </td> <td> <input type="radio" name="OUse" value="Yes"> Yes <input type="radio" name="OUse" value="No"> No <input type="radio" name="OUse" value="NA"> Not Applicable </td> </tr> <tr> <td height="26"> Can the user log into Maximo? </td> <td> <input type="radio" name="LMAX" value="Yes"> Yes <input type="radio" name="LMAX" value="No"> No <input type="radio" name="LMAX" value="NA"> Cannot access site </td> </tr> <tr> <td height="26">Does the user have the same issue on another machine? </td> <td> <input type="radio" name="NLMI" value="Yes"> Yes <input type="radio" name="NLMI" value="No"> No <input type="radio" name="NLMI" value="NA"> Not Applicable </td> <tr> <td> <input type="submit" value="Submit" /> </td> </tr> </table> </FORM> </H1> </body> </html> I won't bother to link my CSS it's very basic. my main.html (<FORM name="MNTA" action="data.html" method="post">) page exists but doesn't have any code. I don't mind if I have to have the data populated on another page that's fine. I also don't mind using JS and the site will only be viewed in IE 6. Thanks in advance, I can't find anything and beleive me I've spent hours trying. Hi guys, new user! I've been having this problem trying to create an external client for a game I play, the form from the website is Code: <form action="/bank/deposit" method="post"> <td style="padding-bottom: 1em; width: 100px"><input id="deposit_amount" name="deposit_amount" type="text" value="100" /></td> <td style="padding-bottom: 1em"><input class="submit-large" name="commit" type="submit" value="Deposit" /></td> </form> From this, it's obvious you can use http://mafialive.com/bank/deposit?desposit_amount=100 to deposit your cash on hand but I'm trying to also pull in the actual value in the deposit_amount input, so that I can just either link or dynamically generate a link that will bank the cash on hand. simply /deposit doesn't work as it seems to require an actual number. Any ideas? I'm rightfully stumped. Thanks in advance! I'm trying to figure out if it is possible to send data from a form directly to an email address without being redirected to the user's default email app or using a CGI script. I have little to no background in PERL and while I realize I'm going to have to become well versed in it (and am in the process of learning it) I need a solution to this immediate problem. Any suggestions would be welcome. Thanks. Below is the relevant block of code: ********* <form method=post action="mailto:youremailaddress@user.com" enctype="text/plain"> <table width="90%" cellpadding="0" border="0" align="center" cellspacing="0"> <tr> <td width="40%" valign="top"> <font face="times" color="#000340" size="3"> Name: <br /><br /></td><td width="*" valign="top"> <input type="text" name="Name" size="20" /> </td> </tr> <tr> <td width="40%" valign="top"><font face="times" color="#000340" size="3">Company: <br /><br /> </td> <td width="*" valign="top"><input type="text" name="Company" size="20"> </td> </tr> <tr> <td width="40%" valign="top"><font face="times" color="#000340" size="3">Company Address: <br /><br /> </td> <td width="*" valign="top"><input type="text" name="Address" size="20"> </td> </tr> <tr> <td width="40%" valign="top"><font face="times" color="#000340" size="3">Zip Code: <br /><br /> </td> <td width="*" valign="top"><input type="text" name="ZipCode" size="20"> </td> </tr> <tr> <td width="40%" valign="top"><font face="times" color="#000340" size="3">Phone: <br /><br /> </td> <td width="*" valign="top"><input type="text" name="Phone" size="20"> </td> </tr> <tr> <td width="40%" valign="top"><font face="times" color="#000340" size="3">Email Address: <br /><br /> </td> <td width="*" valign="top"><input type="text" name="email" size="20"> </td> </tr> <tr> <td width="40%" valign="top"><font face="times" color="#000340" size="3">Requested Product(s): <br /><br /> </td> <td width="*" valign="top"><textarea cols="20" rows="4" name="comment" ></textarea><br /><br /> <input type="submit" value="Submit"> <br /><br /> </td> </tr> </table> </form> I have limited knowledge of HTML, that's why I'm here! I have a form email all set up complete with a "Submit" button. I did something wrong because when someone fills out the forms and submits it, the email doesn't contain any data. You can see my page he http://qtband.com/avon.htm If you can take a look at my code and tell me what I'm missing, I would appreciate it! Ken My school's library has a really basic search, so I made a form with more options to search for books. The problem is that they have a lot of books in the catalog that are NetLibrary books. I can usually find just the dead-tree version by adding limiters and boolean operators, but I was wondering it is possible to make a form that would let me just type the book title and automatically add "not netlibrary" to it? hi everyone this is my first post here and hope i will get solution of my problem i have designed an form and want when user click on submit button i can recieve that data into my email. here is the code <FORM METHOD="POST" ACTION="mailto:mandeep@vbams.com" ENCTYPE="text/plain"> <INPUT TYPE="text" NAME="username"> : name <BR> <INPUT TYPE="text" NAME="email"> : email <BR> comments <BR> <TEXTAREA NAME="COMMENTS" ROWS="10" WRAP="hard"> </TEXTAREA> <INPUT NAME="NEXT_URL" TYPE="hidden" VALUE="http://www.vbams.com/index.html"> <BR> <INPUT TYPE="submit" VALUE="Send"> <INPUT TYPE="reset" VALUE="Clear"> </FORM> this is not working can any one help me how to modify this code so it work properly Thanks Mandeep |