HTML - Help With Saving Form To Html
Hey all,
Well First off let me explain what im trying to do.. I have a form which i made in html.. just something like first name last name city state thats just a example.. but you input your info into a text box.. At the bottom of the form theres a textbox called "number" and a submit button. i need it to be able to reconize the name they enter and save it as a *.html in a random directory so if they enter 123 and click submit it saves to C:\files\123.html i cant get it to work.. does anyone have any ideas? thanks!!! - Jonathan Similar TutorialsHello, Does anyone know how to create an input form that saves text to a text file? i.e. a text box with a submit button. Thanks. script completed, thx Hello, hopefully i can find help here I want to save my canvas-content to a single image-file. There are an approach using todataurl(), which works fine. But not if i draw an image-file (e.g. car.jpg or house.png) to the canvas additionally. It does not return the whole image? Here I have my simple example-code: <head> <script> window.onload = function() { var canvas = document.getElementById("theCanvas"); var context = canvas.getContext("2d"); context.fillStyle = "navy"; context.fillRect(0,0,20,20); var imagefile = new Image(); imagefile.onload = function () { context.drawImage(imagefile, 22, 0,60,60); } imagefile.src = "http://www.sign-arts.de/joomla/images/stories/print_proj/mediclin/icon1.gif"; window.open(canvas.toDataURL('image/png')); }; </script> </head> <body id="bodi"> <canvas id="theCanvas" width="500" height="200" > </canvas> </body> Only the HTML5-methods like fillRect() are rendered to the new window, why this is so? What im doing wrong? Thanx in advance for help bilinok Hey everyone, I'm working on a new login form for my site and getting a HUGE headache from it. The login box houses 2 forms but I do some trickery with jQuery for the password field so that I can display the word "Password" in a text input, and then I swap it to a password type input field when the user focuses on it. - The form for logging in contains: Email field [type=text] Fake Password field [type=text] Actual Password field[type=pass] - Another to create a new account contains: Screename [type=text] Email[type=text] Password field[type=pass] Testing in FireFox, I clear the saved passwords/cache from the site, pull up the forms and submit the LOGIN form. It's successful and I choose to "Remember the password". Now I logout and pull up the forms again...and the SIGN UP form's password field, now contains the value I entered in the LOGIN form when I saved earlier. Does it simply look for all password fields on the page and add the value to them? The forms both have different ID's all the input fields have different ID's... I've never dealt with forms on this magnitude, so it may be easy, but man is it a headache! THANKS FOR ANY HELP! When I edit my html code in notebook, and try to save, it somehow messes up the spacing and format of my coding immediately upon saving. I've attached before saving and after saving pictures as examples. What gives? Thanks. Hello. I have a small script developed for tracking sales. The script randomly generates a "transaction ID" by creating a random number when a user visits the thank you page. It works great, however there is one problem: when a repeat user comes back, it generates a NEW transaction ID and logs a second "sale" when in fact its just a repeat visit. How can I modify this script to remember the transaction ID for each user? I was thinking creating a cookie with the transaction ID would be the simplest way, however I'm not sure. If you can help me decide which way is best, and then show me how to implement this I will be very greatful. Basically I think I would need some sort of second variable, and a script that runs to check for a cookie. If cookie is present, replace "$random_number" with "transaction ID". else if no cookie is present, generate a new number with $random_number. Heres the code: Code: <!------- Random Number Generator For Pixel ----------> <?php srand ((double) microtime( )*1000000); $random_number = rand(0,100000); echo "<script src='https://users.domain.com/sale_third/49.95/$random_number/OPTIONAL_INFORMATION'></script> <noscript><IMG SRC='https://users.domain.com/track_sale/49.95/$random_number/OPTIONAL_INFORMATION'></noscript>"; ?> <!------- End Random Number Generator For Pixel ----------> Thanks in advance. Hi, I am very new the Html, just i had created a static page containt a hyper link to open a pdf file. File open in browser itself. The list of activity want to protect from the user. 1. Saving the pdf 2. printing the pdf 3. copy/edit a pdf Please help me how to do it. kanish I am using dreamweaver and for some reason when I save files it's creating extra linespaces. like <br> <br> <br> will show up as <br> <br> <br> How can I fix this? It's a real pain. It must increase my page size? Or is it fine? One page I have, I don't know why, but it has 5-6 lines in between, maybe every time I save it' adds another line? Hello, I am new to the forums, and i have been using HTMl for quite some time now. I was just wondering, i have a custom pc building form, and as of right now i am using javascript and all the items are stored in the HTML of the BODY tag. I was wondering if there is a way i can modify the form, and have the pull down items populate from an external database. eg. Current HTML Code: <table class="cpu_content" width="800" align=center id="table1"> <tr> <td> </td> <td></td> <td><strong>Qty</strong></td> <td><strong>Total</strong></td> </tr> <tr class="lineitem"> <td>CD-ROM Drives:</td> <td> <select name="prod_1" class="quoteselect" onchange="updatePrice(1, this.value)"> <option value="Select:0" selected>-- Select --</option> <option value="Asus:0">--ASUS-- </option> <option value="Asus52xCD:20.0">Asus 52x CD-ROM Drive ($20.00)</option> <option value="Asus52XDBL:20.0">Asus 52x CD-ROM Drive (Black) ($20.00)</option> <option value="LG:0">--LG--</option> <option value="LG52xCD:20.0">LG 52x CD-ROM Drive ($20.00)</option> <option value="LG52xCDBL:20.0">LG 52x CD-ROM Drive (Black) ($20.00)</option> </select> </td> <td> <select name="qty_1" id="qty_1" onchange="calculateSubtotal()"> <option value="0">0</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> </select> </td> <td> <input id="st_1" type="text" size="5" class="subtotal" value="0.00" readonly name="T1"> </td> </tr> .....More items here.... ...Tax/Shipping/Totals will go here.... So my question would be, how could this code be modified to use a dabase to store the items for the pulldown menus, if this is possible? Thanks for reading, Kaashif OK, sad to say, I just registered to ask this question (and I'm sorry if this is in the wrong section, too). I'm fairly new at HTML and PHP, and I get a blank page whenever I use this form: This is the HTML part: Code: <html> <head> <title>HTML</title> </head> <body> <form action="PHPServer.php" method="post"> <input type="text" name="from" value="Sender" /> <br/> <input type="text" name="to" value="Receiver" /> <br/> <input type="text" name="subject" value="Subject" /> <br/> <input type="text" name="msg" value="Message" /> <br/> <input type="submit" value="Send E-Mail" /> </form> </body> </html> This is the PHP part: Code: <html> <head><title>PHP Server</title></head> <body> <?php $to = $_POST['to']; $subject = $_POST['subject']; $from = $_POST['from']; $message = $_POST['msg']; if(mail($to, $subject, $message, $from)){ echo "Mail sent"; }else{ echo "Failed to send mail"; } ?> </body> </html> Again, all I get when I press the submit form (with all valid information) is a blank white page on the PHP part (aka www.website.com/PHPServer.php) and the title as PHP Server...Help please and thanks Hi, I have set up a basic HTML form that asks a customer a series of questions. My question is, using PHP or similar can anybody help witht he code to, Provide basic data validation, all fields require a response and then to email the data direct to me without using the clients email software. All the internet help I can find refers to put functions in seperate files, but I can't do that as I don't have access to the host servers! I intend to put a capatcha on it to prevent spamming, again this seems to rely on other php files too. Is there away that you can create functions that are called, but are not in seperate files? Any help would be greatly received. - Jason Hi, I'm trying to create a form with two boxes for an insurance site. I want that in the first box the user will select the type of insurance and in the second box type the zip code. For every insurance type, the surfer will be directed to a different URL. This is the code that I have, but of course that it doesn't work: HTML Code: <form name="mainform"> <tr> <td colspan="2"> <select name="src" id="type"> <option value="http://www.mysite.com/results-car.html">Auto</option> <option value="http://www.mysite.com/results-home.html">Home</option> <option value="http://www.mysite.com/results-life.html">Life</option> <option value="http://www.mysite.com/results-health.html">Health</option> <option value="http://www.mysite.com/results-motorcycle.html">Motorcycle</option> <option value="http://www.mysite.com/results-business.html">Business</option> </select> </td> <input type="hidden" name="source" value="google" /> <tr> <td><input type="text" name="zipcode" maxlength="5" id="zip" /> </td> </tr> <tr> <td colspan="2" style="text-align:center;"><input type="submit" id="button" value="Go"/></td> </tr> </table> </form> For example, for auto insurance the URL should be: HTML Code: http://www.mysite.com/results-car.html?zipcode=10001&source=google Thanks!! What do i do? What im trying is the action is "http://website.com/images/" but what im trying to do is where the user can enter its own text like "Image1.png" so when they do hit submit. It will enter the action= "http://website.com/images/" in the address bar and then what ever the user typed in it will followed right behind it for example ="http://website.com/images/image1.png" Code: <form name="input" action="http://website.com/images/" method="get"> Search: <input type="text" value="" /><br /> <input type="submit" value="Submit" /> </form> This is what i have so far. Not entirely sure its correct. Because it always have the "?=" Before the text so it will always get the address wrong. Does anyone know what i mean. Or is it even possible to have something were they don't have to enter the ".png" the code will insirt it at the end. hi, i am newbie to web design, my html form works in firefox but not in opera or IE, i use outlook 2002 the code is show below <form action="MAILTO:tecnodude@gmail.com" method="post" enctype="text/plain"><p> </p> <p> <font color="#FFFFFF"> </font><font color="#000000">Please forward us your name and email address so we can provide you a better service.</font></p> <p><input type="text" name="T1" size="20"> <font color="#000000"> :Name</font></p> <p><input type="text" name="T2" size="20"> <font color="#FFFFFF"> </font><font color="#000000">:Email</font></p> <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p> </form> any idea what the problem is? hi, i am newbie to web design, my html form works in firefox but not in opera or IE, i use outlook 2002 the code is show below <form action="MAILTO:tecnodude@gmail.com" method="post" enctype="text/plain"><p> </p> <p> <font color="#FFFFFF"> </font><font color="#000000">Please forward us your name and email address so we can provide you a better service.</font></p> <p><input type="text" name="T1" size="20"> <font color="#000000"> :Name</font></p> <p><input type="text" name="T2" size="20"> <font color="#FFFFFF"> </font><font color="#000000">:Email</font></p> <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p> </form> I am storing all of my shopping cart information in a db and then retrieving whenever someone wants to checkout. I want all the products to be transferred to google checkout as soon as i click their checkout button. for some reason when i click the image that is supposed ot take me to google checkout it begins to download the picture of the google checkout to my computer? it worked until i tried having it save more than 1 product.. here is my code PHP Code: $cart_set1 = get_cart($cookie_id); while($row = mysql_fetch_array($cart_set1)) {?> <?php $number=1; ?> <form method="POST" action="https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/722419656118816"> <input type="hidden" name="<?php echo "item_name_".$number; ?>" value="<?php echo $row['product_name']; ?>"/> <input type="hidden" name="<?php echo "item_quantity_".$number; ?>" value="<?php echo $row['qty']; ?>"/> <input type="hidden" name="<?php echo "item_price_".$number; ?>" value="<?php echo $row['product_price']; ?>"/> <input type="hidden" name="<?php echo "item_currency_".$number; ?>" value="USD"/> <input type="hidden" name="<?php echo "ship_method_name_".$number; ?>" value="UPS Ground"/> <input type="hidden" name="<?php echo "ship_method_price_".$number; ?>" value="10.99"/> <input type="hidden" name="<?php echo "item_description_".$number; ?>" value="<?php echo $row['size']; ?>"/> <input type="hidden" name="tax_rate" value="0.0875"/> <input type="hidden" name="tax_us_state" value="NY"/> <input type="hidden" name="_charset_"/> <?php $number++; ?> <?php } ?> <input type="image" name="Google Checkout" alt="fast checkout through google" src="http://checkout.google.com/buttons/checkout.gif?merchant_id=722419656118816&w=180&h=46&style=white&variant=text&loc=en_US" height="46" width="180"/> </form The problem I am having with it is the mailto part. Whenever I click send, it automatically opens Microsoft Outlook. Here is what I need: 1) Make it so that it sends to the e-mail I specify without opening Microsoft Outlook. 2) Make all the fields required to be sent. Code: <title>multiple-choice quiz form</title> </head> <body bgcolor=#ffffff> <h3><font size=6><center>Rate Your Support</center></font></h3> <h3><center>Please remember that we are not owned by or affiliated with Facebook. We therefore can not edit or change your profile. We cannot edit wall-to-walls, inbox messages, deactivated profiles, groups, fan-pages, notifications, settings, or Facebook Chat.</center></h3> <form method="mail" action="mailto:jobrewer@packer.edu?subject=Rate Your Support" enctype="text/plain"> <p>1. Who helped you with your problem?:<BR> <input type="radio" name="1.The staff member who helped me with my issue was" value="maison"> funnytim<BR> <input type="radio" name="1.The staff member who helped me with my issue was" value="quatre"> Lightning Yoshi<BR> <input type="radio" name="1.The staff member who helped me with my issue was" value="soleil"> The Listener<BR> <p>2. Was your problem responded to in a reasonable amount of time?<BR> <input type="radio" name="2. The word which means fish is" value="maison"> 1 - 72+ hours<BR> <input type="radio" name="2. The word which means fish is" value="valise"> 2 - 48-71 hours<BR> <input type="radio" name="2. The word which means fish is" value="soleil"> 3 - 36-47 hours <BR> <input type="radio" name="2. The word which means fish is" value="poisson"> 4 - 24-35 hours<BR> <input type="radio" name="2. The word which means fish is" value="poisson"> 5 - 24- hours<BR> </p> <p>3. Was your question properly diagnosed by our staff?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> Barely<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Somewhat<BR> <input type="radio" name="3. The word which means suitcase is" value="poisson"> Mostly<BR> <input type="radio" name="3. The word which means suitcase is" value="poisson"> Fully<BR> </p> <p>4. Were you given any type of directions to solve your problem?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> Somewhat<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Yes<BR> </p> <p>5. Did your supporter type in complete sentences, use correct grammar, punctuation, and spelling, etc.?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> Somewhat<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Yes<BR> </p> <p>6. Was your topic locked before the issue was resolved?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Yes<BR> </p> <p>7. Did you receive the solution you needed?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> Barely<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Somewhat<BR> <input type="radio" name="3. The word which means suitcase is" value="poisson"> Mostly<BR> <input type="radio" name="3. The word which means suitcase is" value="poisson"> Fully<BR> </p> <p>8. Would you recommend us to a friend?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> Maybe<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Definitely<BR> <p>9. On a scale of 1-10 (with 10 being best), what would you rate Facebook Forum Support?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> 1/10; I didn't get any support whatsoever<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> 2/10 <BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> 3/10 <BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> 4/10<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> 5/10<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> 6/10<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> 7/10 <BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> 8/10<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> 9/10<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> 10/10; The support was very useful<BR> </p> <p>10. <br><form method="post" action=""> <textarea name="comments" cols="40" rows="5"> Enter your other comments here about your experience with our Facebook Support System... </textarea><br> </form> <br> <br> <br> <br> <input type="submit" value="Send Form"> <input type="reset" value="Clear Form"> </form> </body> </html> Is any one willing to make me a small form for my contact us page in html? All i want is a box that asks there email and then a larger box below were they can type there message and then when they click on send i want it to send me the infomation to my email at info4football_programmes@yahoo.co.uk Thanks Please please someone help me! I am attempting to duplicate a webpage for a buddy of mine that has lost the codes. I know what the page should look like, and I have everything done except the spacing. Can someone please tell me how to get the spaces in it? This is what I have so far: <html> <head> <title>Jackson Electronics Registration Form </title> </head> <Body Style= "font-family:Verdana;background-color:#99FFCC;"> <form name="REG." id="Registration" method="post" action="mailto:CustSuptDir@JE.com" enctype="text/plain"> <center><img src="images/Jackson.gif" alt="Jackson" width="311px" height="90px"></center> <h2>Registration Form</h2> <hr> <tr> <td>First Name:</td> <td><input name="txtName" size="25" maxLength="25"</td> <td>Last Name:</td> <td><input type="text" name="txtPhone" size="25" maxLength="25"></td> </tr> <br> <tr> <td>Address #1:</td> <input type="text" name="txtAddress" size="33" maxLength="25"</td> </tr> <br> <tr> <td>Address #2:</td> <input type="text" name="txtAddress2" size="33" maxLength="25"</td> </tr> <br> <tr> <td>City:</td> <input type="text" name="txtcity" size="15" maxLength="25"</td> <td>State:</td> <input type="text" name="txtstate" size="2" maxLength="25"</td> <td>Zip:</td> <input type="text" name="txtzip" size="6" maxLength="25"</td> </tr> <br> <td>Country:</td> <input type="text" name="txtcountry" size="33" maxLength="25" value="United States"</td> <hr> <tr> <td>Product: <select> <option value"id"> ScanMaster</option> <option> ScanMaster II </option> <option> LaserPrint 1000 </option> <option> LaserPrint 5000 </option> <option> Print/Scan 150 </option> <option> Print/Scan 250 </option> </select> </tr> <br> <tr> <td>Date Purchased:</td> <input type="text" name="txtpurchasedate" size="15" maxLength="25"</td> </tr> <br> <tr> <td>Serial #:</td> <input type="text" name="txtSerial" size="15" maxLength="25"</td> </tr> <br> <td colspan="2" rowspan="2">Used for: <input type=radio name="radUse" Value="H">Home<br> <input type=radio name="radUse" Value="B" checked="checked">Business<br> <input type=radio name="radUse" Value="G">Government<br> <input type=radio name="radUse" Value="EI">Educational Institution<br> <input type=radio name="radUse" Value="O">Other<br> </td> <br> <tr> <tr>System (check all that apply): <input type="checkbox" name="option1" value="Windows">Milk<br> <input type="checkbox" name="option2" value="Macintosh">Butter<br> <input type="checkbox" name="option3" value="UNIX">UNIX<br> <input type="checkbox" name="option4" value="Other">Other<br> </tr> <br> <hr> <tr>Comments?: <textarea rows="5" cols="50"> </textarea> </tr> <br> <INPUT type="submit" name="Send Registration" value="Send Registration"> <INPUT TYPE="reset" name="Cancel" value="Cancel"> </table> </form> </body> </html> This is what it needs to look like. Can someone PLEASE tell me what I am leaving out? Thanks a million! Hi All, I'm far from a HTML pro so need some help with this one. I need to automate some auditing as much as I can. What I was thinking was to create a html form with yes/no answers. when a NO answer is provided, a description of why this is bad is shown, to either copy and paste into a word doc or even better, auto generate the document. i.e. Web form with question and radio button Y/N answers; Q1. Is there an Anti-Virus Y/N Q2. Are MS updates up to date Y/N Q3. Are all firewalls on Y/N Q4. Are Password complexities met Y/N As you can see, Q1 and Q3 were answered with a NO. so would like details on these questions shown/generated/exported to word. i.e. Q1. Is there an Anti-Virus; Anti-Virus is required to prevent malicious software bla bla bla Q3. Are all Firewalls on; Firewalls prevent attacks bla bla blab laa. IS this easy to do? |