HTML - Autofill Html Form From Xml
Hello,
I need help. Here is what I am trying to do. I have a forum with 5 text fields. I want to populate the last 4 text fields from an online XML link which is based off of the input of the first text field. So example: Somebody types in "12345" in the 1st text field. After they press tab, the other 4 text fields are populated from the following xml link: http://website.com/data.xml?&index1=isbn&value1=12345 Any help would greatly be appreciated! Similar TutorialsHello, I have produced a form which can be viewed at http://www.magicalwonders.com/Freestufftest5.html and have a couple of questions I hope someone can advise me on. Firstly, I'm not sure why the "autofill" option available on the google tool bar is not being made available for the "Name" and "Country" input. The code I am using is as follows: Code: <form method='POST' action='http://www.magicalwonders.com/cgi-bin/arp3/arp3-formcapture.pl'> <div align='center'> <p>First name<br><input type='text' name='first_name' size='20'></p> </center></div> <div align='center'> <p>Country<br> <select name="country" input type='text' size='1'> <option value="Afghanistan">Afghanistan</option> <option value="Albania">Albania</option> </select></p> </center></div> <div align='center'> <p>E-mail address<br><input type='text' name='email' size='20'></p> </center></div> <input type='hidden' name='subscription_type' value='E'><div align='center'> <p><input type='submit' value='Submit'></p></div> <input type='hidden' name='id' value='2'> <input type='hidden' name='extra_ar' value=''> <input type='hidden' name='first_name_man' value='1'> <input type='hidden' name='country_man' value='1'> <input type='hidden' name='notify_email' value='MWsubscription@hey-presto.demon.co.uk'> <input type='hidden' name='notify_subject' value='Magical Wonders Opt In'> </form> The autofill highlights the email input box in yellow, but not the first two boxes. I have no idea why. I have only included two countries in the above code, to make it easier to read. Secondly, is there any way I can center the list of Countries in the drop down box, instead of them showing hard left in the box? Hope someone can advise. Myles Firstly sorry if this is not posted in the correct forum unsure of how this would/could be done. I am creating a website for a business and I want a page for "Directions." Is it possible to create a form where the customer can enter their address and on submission the form will open a new window with "multimap.com" with the fields already filled. Thanks in advance for any replies. gil My job is to test the J2EE web application. Everyday I need to fill those forms again and again, includes textbox, radio button, check boxes, and clicking buttons. I wonder if I can design a tool that can fill all the fields and click the button automatically just with one click. How can I do? script completed, thx 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 sorry i found it 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 Hello, With a HTML form, is there anyway I can allow the user to send the form to my email without it opening up a email program? I currently have this... HTML Code: <form method="post" action="mailto:support@huntswebdesigns.co.uk"> If it is possible, what would I need to change in this? Cheers guys. Hey Guys... need some help with a form. It seems like it should be a basic function but i can not get it to work. All I need a search form that will take whatever is entered to edit a url for instance http://www.mysite.com/<searchbox>/index.html so if i typed in hello into my search box it would open http://www.mysite.com/hello/index.html if you could help me with this it would be great 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 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 Hi all, hoping someone out there may be able to help. I need to create a form of drop down menus with the end result once submitted being a different website. IE. Choosing different options on the drop down menu will lead to a different site. Example. Q1. Yes Q2. Yes Q3. Yes Submit - Takes you to a football site. Q1. No Q2. Yes Q3. Yes Submit - Takes you to a golf site. Any ideas on this would be mostly appreciated, I can only work with html. I'm trying to build this form...so far most-everything looks like it is in working order...but i am still not getting emails forwarded to me when the form is submitted...im somewhat new at html, so any help would be appreciated! (and yes i put my real email addy into the form, i just removed it as i am posting on here) ----- HTML Code: <form action="http://www.bigbiz.com/cgi-bin/forms.cgi" method="POST"> <input type=hidden name=F_to value="email@email.com" /> <input type=hidden name=F_subject value="New Estimate Appointment" /> <p><span class="style6">Schedule Your Appointment</span></p> <p> </p> <p>Customer Information:</p> <p> </p> <p> Name:</p> <p> <input name=name size="10" maxlength="30"> </p> <p> </p> <p>Phone Number: <p> <input type="text" size="10" maxlength="30" name="phone"> </p> <p> </p> <p>Email Address: <p> <input name=F_from size="10" maxlength="40"> </p> <p> </p> <p>------------</p> <p><br/> Vehicle Information:</p> <p> </p> <p>Make :</p> <p> <input type="Make" size="10" maxlength="20" name="make"> </p> <p> </p> <p>Model:</p> <p> <input type="model" size="10" maxlength="20" name="model"> </p> <p> </p> <p>Year :</p> <p> <input type="year" size="10" maxlength="4" name="year"> </p> <p> </p> <p>Reason for bringing in vehicle:</p> <p> <textarea rows="5" cols="28" wrap="physical" name="comments"></textarea> </p> </p> <p> </p> <p>------------</p> <p> </p> <p>Schedule your apointment:</p> <p> </p> <select name="month"> <option></option> <option>January</option> <option>February</option> <option>March</option> <option>April</option> <option>May</option> <option>June</option> <option>July</option> <option>August</option> <option>September</option> <option>October</option> <option>November</option> <option>December</option> </select> <select name="day"> <option></option> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> <option>7</option> <option>8</option> <option>9</option> <option>10</option> <option>11</option> <option>12</option> <option>13</option> <option>14</option> <option>15</option> <option>16</option> <option>17</option> <option>18</option> <option>19</option> <option>20</option> <option>21</option> <option>22</option> <option>23</option> <option>24</option> <option>25</option> <option>26</option> <option>27</option> <option>28</option> <option>29</option> <option>30</option> <option>31</option> </select> <select name="time"> <option></option> <option>8:30 AM</option> <option>9:00 AM</option> <option>9:30 AM</option> <option>10:00 AM</option> <option>11:00 AM</option> <option>11:30 AM</option> <option>12:00 PM</option> <option>12:30 PM</option> <option>1:00 PM</option> <option>1:30 PM</option> <option>2:00 PM</option> <option>2:30 PM</option> <option>3:00 PM</option> <option>3:30 PM</option> <option>4:00 PM</option> <option>4:30 PM</option> <option>5:00 PM</option> </select> <p>*Note we are open Monday - Friday, 8:30 - 5:30</p> <p> </p> <input type=submit value="Send" name="submit" /> <input type=hidden name=F_fields value="'Name:'+name,'Contact Number:'+phone,'Email Address:'+F_from,'Vehicle Make:'+make,'Vehicle Model:'+model,'Vehicle Year:'+year,'Appointment Month:'+month, 'Appointment Day: '+day,'Time:'+time" /> <input type=hidden name=F_required value="name,phone,F_from,month,day,time" /> <INPUT TYPE=HIDDEN NAME=F_ok_url VALUE="http://www.website.com" /> </form> I have a Website which I need put on a CD to send out to customers. I am looking for a way of being able to send the contents of an HTML feedback form to a mail address. Bear in mind that the Form will be on a CD and will have no server side support (CGI, PHP etc). I am rapidly coming to the belief that this cannot be done!!!! Can anyone help hi guys i just added a protection to my forum - which look like this just a simple hyperlink thing can sm1 help me to modify it into to look into like this- regards ian HI i'm creating an html form which will be posted to a php file. The problem is the are multiple input fields which need to have the same name/id. If they have the same name or id what will be submitted to the php file, will it just append one value to the other? Does it make a difference if i use id or name? Thanks i have a working order form on my website. the problem is i have 300 items in the form and when someone submits the form, i get all 300 items emailed to me, when all i want is the items orders. example: person orders itemC only i get in the email: itemA: itemB: itemC:1 itemD: etc x 300 when all i want in the email is: itemC:1 is that possible? 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. I am trying to make a form where the user chooses a number from a list box a number of people (1-10), and then the form has that many sections of data. What is the name of what I am trying to do? Any help would much be appreciated. Thanks again. Example: Number of People: (LIST BOX 1-10(let say I selected 1)) 1. Height: (TEXT BOX) Weight: (TEXT BOX) Age: (TEXT BOX) Another Example: Number of People: (LIST BOX 1-10(let say I selected 3)) 1. Height: (TEXT BOX) Weight: (TEXT BOX) Age: (TEXT BOX) 2. Height: (TEXT BOX) Weight: (TEXT BOX) Age: (TEXT BOX) 3. Height: (TEXT BOX) Weight: (TEXT BOX) Age: (TEXT BOX) 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? |