HTML - Form Data To Asp File
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 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 Hi, I am new to this forum. As all other, I have registered because I need help: I am currently working on an automatic news system (if you can call that...), where I write my news story in an .ini file. What I need help with is that I want my page to get the string from the .ini file and "publish" it. If there's an easier/alternative method, please post ~Mikkelet Hi, I am very, very new to XML and I am not able to get my .xsl data file to read into the table in my .xsl file. Thank you, kriscann When parsing the POST data from an input form, how do you identify a uploaded file? My first guess is that the Content-Disposition header field will contain a filename parameter, but I don't want to just make that assumption. When I dissect some POST data, it looks like this... Code: -----------------------------7d721bbb0272 Content-Disposition: form-data; name="data1" 1 -----------------------------7d721bbb0272 Content-Disposition: form-data; name="myfile"; filename="X:\myfile.txt" Content-Type: text/plain mary had a little lamb with fleece as white as snow -----------------------------7d721bbb0272 Content-Disposition: form-data; name="start_date" -----------------------------7d7d37b0272 Content-Disposition: form-data; name="submit" Submit -----------------------------7d7d37b0272-- I highlighted the filename parameter. That's what I'm planning on keying in on. Is this right? Darren Hello, I have the following data in a text file which then the page reads and displays on a table. ,Event,Member,Time ,3k Run,Tom Heather,9.25 ,3k Run,Alex Peck,9.50 ,3k Run,Leith Sahla,8.20 ,3k Run,Cassie Davis,8.40 ,3k Run,Holly Calender,10.23 ,3k Run,Alex Plunkett,10.45 ,3k Run,Joe Rugg,9.44 ,3k Run,Ben Frere,9.55 ,5k Cycle,Tom Heather,10.45 ,5k Cycle,Louise Peak,11.07 ,5k Cycle,John blackhall,10.22 ,5k Cycle,Frank Kelly,10.56 ,5k Cycle,Sophie Mayo,9.55 ,5k Cycle,Steven Collins,10.37 I have a table which displays this data on my page and then i want to produce a separate table which produces the fastest time for the 3k Run and 5K Cycle events. I figure you have to use the <PARAM NAME="Filter" VALUE="fieldname = value"> but stuck from here really. Some help would be greatly appreciated, Thanks The page code is below <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Language" content="en-gb" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Contact Us</title> <style type="text/css"> .style1 { text-decoration: underline; font-family: Arial, Helvetica, sans-serif; } </style> </head> <body> <table style="width: 72%; height: 7px"> <tr> <td> <p class="style1"><strong>Member Competitions </strong></p> </td> </tr> </table> <OBJECT ID = "data" CLASSID = "CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83"> <PARAM NAME = "DataURL" VALUE = "data.txt"> <PARAM NAME = "UseHeader" VALUE = "TRUE"> <PARAM NAME = "FieldDelim" VALUE = ","> </OBJECT> <TABLE DATASRC = "#Data" STYLE = "border-style: ridge; border-color: #666666; background-color: #58595b"> <THEAD><TR STYLE = "background-color: 58595b"> <TH style="width: 164px">Event</TH> <TH style="width: 158px">Member</TH> <TH style="width: 149px">Time</TH> </TR></THEAD> <TBODY> <TR STYLE = "background-color: lightsteelblue"> <TD style="width: 164px"><SPAN DATAFLD = "Event"></SPAN></TD> <TD style="width: 158px"><SPAN DATAFLD = "Member"></SPAN></TD> <TD style="width: 149px"><SPAN DATAFLD = "Time"></SPAN></TD> </TR> </TBODY> </TABLE> <p class="style1"></p> </body> </html> i want to display wave height data from a noaa buoy that is available and updated via a txt file. how can display this data graphically on a web site instead of just displaying the raw data from the text file? hi, I had created a form using html.Can i collect all the data tht key in by the user at the form to .txt file? can ths be done by php or html? Can u please guide me step-by-step? Thanks in advance. 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! 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. 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... 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 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. 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> 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 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> Hi, I am a complete HTML novice and as such may lack certain use of terminology that you might take for granted so please allow for that. I have been linking to certain .jsp web pages , and pre-entering the data into the page by putting a "?" after the .jsp part and following it with some code. For example: - Take the page http://logis.korail.go.kr/driveinfo/TrainLocSearchg.jsp. By using the URL http://logis.korail.go.kr/driveinfo/...jsp?carNo=7001 I don't need to type the number 7001 in the form and press the submit button. This works fine on this page, however, for the following page, http://logis.korail.go.kr/driveinfo/...riveGuideg.jsp, I can't seem to get this method to work. I think the names of the fields in the form are as follows: - stYukCd wbMd1 wbMd2 trnKind trnNo trnUpDn I can't however get any of these fields to auto-fill by using this method. Any ideas? Thanks Damian |