HTML - Paste Form Data Into It's Own Textbox
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. Similar TutorialsHi all, Just wondering if someone could help me with the following. I'm exporting large amounts of MySQL data onto a web page and basically what I would like to do is insert that data into a large textbox. I would have put the data into a table; however, if I have a tabel for say "NAME" I'm soon going to run out of space on the web page as I may return 100 of records for that one column. I thought I could simply have a large display window and this would have scroll bars on the side and at the bottom and I can dump my data into that. Can anyone tell me how I could creat such a table which would span the web pages length? I would also like to control this via CSS and make the colour within the text box grey. Many thanks Hi all, how do i go about making my html form textbox borderless like the one in this picture? I want to make my form a bit better looking, so any links to customising them would be good. I wish to get the value of a textbox in a form however, I'm unable to reference the textbox using the name property (I wish to get both the name and value property values). Is there another way to get these properties values? Or pass them as parameters through an onClick event as I'm trying to retrieve these within another javascript function. 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 I want to make my front page look like a sticker, a notice, has been pasted across the front of it. As though the original page were a billboard or something and a paper notice "Cancelled" , or somesuch, had been pasted across it. And leave the functionality of the original page still there - i.e. the links should still operate, the text should be readable all around the 'sticker' - it doesn't have to be readable under the sticker. Can this be done? Anyone know how to do this? The sticker should actually read " Latest News: Housing withdraws it's claim. Details will follow". The site is housingnt.com if anyone wants to take a look and they have withdrawn their claim and I need to respond quickly in order to acknowledge that fact and that's the particular way I'd like to do it. By the time anyone gets to have a look (if anyone does) I will probably have inserted a table row near the top and written the facts in there. But that, I hope, will be temporary, it doesn't make the point the way I want to do it. I could do a screen grab and use it as background and put the 'sticker' on top of this background, I realise that - but then the links wouldn't work. I hope it is possible or perhaps someone knows a better alternative. regards, ab Can someone please tell me where in my blog I paste this banner navigation code? I've tried everything and it's not working. Do I need to replace something with this code? Or just post it in there somewhere? Thanks so much. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="language" content="english"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <title>navigation example</title> <style type="text/css"> #navigation { width:574px; height:87px; padding:200px 0 0 26px; margin:0; list-style-type:none; background-image:url(http://img850.imageshack.us/img850/7678/philblog.png); } #navigation li { float:left; margin-right:40px; } #navigation #nm { margin-right:0; } #navigation a { position:relative; display:block; height:45px; background-image:url(http://img850.imageshack.us/img850/7678/philblog.png); } #navigation span { position:absolute; height:45px; top:0; left:0; background-image:url(http://img850.imageshack.us/img850/7678/philblog.png); cursor:pointer; } #hello,#hello span { width:113px; background-position:-26px -200px; } #portfolio,#portfolio span { width:202px; background-position:-179px -200px; } #contact,#contact span { width:155px; background-position:-421px -200px; } </style> </head> <body> <ul id="navigation"> <li><a id="hello" href="hello.html">HELLO<span></span></a></li> <li><a id="portfolio" href="portfolio.html">PORTFOLIO<span></span></a></li> <li id="nm"><a id="contact" href="contact.html">CONTACT<span></span></a></li> </ul> </body> </html> Can someone help me integrate a form into a site that I have cut/pasted? I have both codes up at www.howmymmaworks.com/help I want the functionality of the bottom form integrated into the format of the top form. Any help would be greatly appreciated! I have a wysiwyg text editor on my site and I want users to be able to copy-n-paste clip art from their ms word docs into it and have it display on the web. Is there anyway to do that? Hay guys and girls! This is my first post so I hope this question is welcome I am having a little bit of a problem in trying a little HTML coding. what I am attempting to do is to create a Google Chrome extension where a user can post a link into a movie, on clicking submit button in the extension, the link is then copied from that box and pasted into the the box on the website and that submit button is then also liked atomically. Thanks for taking the time to read! hey guys. I need help again! Well actually its a question But before that question - You see I play a game and in that game I want to make a list of things. Here is my noob website - http://heroonline.synthasite.com/ The Question -I guess what I'm asking is how do I post a forum directly onto a page of mywebsite with separate moderator accounts? I need forums that can be added to sites like myspace, and my website, that you post with a html code, and editable by multiply accounts? On that forum I just want one thread where i can post names of people. And I want some other people to be able to post names on that one thread. Kind of like the cbox I have on there but more like forums, and changeable by other people/accounts that i choose. Hope you guys understand what I am trying to say here... I'm a noob and i tried my best to explain. 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... 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 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> |