HTML - Form Two Collumns From One Script's Data?
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. Similar TutorialsIs there a connection between a form's "submit button" <input type="submit"> and it's "action/method/enctype" attributes <form action="url" method="post" enctype="text/plain">? Is there a difference between "submitting" a form and "posting" a form or is it all interconnected? Does the form's "action/method/enctype" attributes have to be set to allow the "submit button" to do anything? Do the "action/method/enctype" attributes have to be triggered by a "submit button"? Once I understand how this all works, I want to run some checks on user entries/selections in a form when the user clicks the submit button. These checks will be carried out by a JavaScript function. If there are problems with the user's selections/entries I want to; 1) suspend submission/posting 2) alert the user to the errors they have made via an alert box 3) allow the user to make corrections, then they click submit again 4) test the user's selections/entries again 5) if user's selections/entries are now OK, submit/post the form data or if still not OK go back to step 2 above. Any hints on how to do this? Maybe I should forget the submit button and use a command button? Is there a "submit" method I can place in a JavaScript function? Hey can someone help me and tell me how i can make like a paragraph in boxes that are side by side with borders please. Thank you. So 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 script completed, thx 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, 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... 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. 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 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. 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. 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 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> Hi This is my first post so trust I don't breach any protocols. I'm creating a form that will send data from the form to an email. I have done this many times before with no problem but suddenly it is failing to do so. The main form has approx24 data fields so in case this was a problem, created a simple form with 2 text fields and a submit button but this wouldn't work either. My default Editor is dreamweaver MX and outlook as my email. Not being sure if it is my code, editor or email system causing the problem I have tried all variations using Dreamweaver MX, Dreamweaver CS3, Frontpage and in desperation Pagebreeze with Outlook, Outlook Express and Mozilla Thunderbird. I'm pulling my hair out. Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form action="mailto:My Email address" method="post" name="form1"> <p> <input type="text" name="textfield"> </p> <p> <input type="text" name="textfield2"> </p> <p> <input type="submit" name="Submit" value="Submit"> </p> </form> </body> </html> Has anyone had the same problem and solved it ? 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 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? |