HHawk Posted May 25, 2006 Share Posted May 25, 2006 Hi guys,I have a question concerning the following;I am currently building a website for one of our hosting company's. Though the website is mostly completed, except for a few things, I am having trouble to create an order form which uses the whois results from the whois php script.How do I use the results which are shown from a PHP whois script in an order form?Since I a noob concerning scripting, I would like to know how I can put the results given from the whois php script into an order form, so it's more convenient for customers to place an order.If someone can tell me how to pull this of, or can point me in the direction (or website with information), I would be very grateful.Regards,HHawkPS: Sorry for my bad English, but English isn't my native language. So I still hope you can understand what I want to do. Quote Link to comment https://forums.phpfreaks.com/topic/10438-php-result-form/ Share on other sites More sharing options...
.josh Posted May 25, 2006 Share Posted May 25, 2006 to put a 'default' value in for example a text field in a form, you would do like [code]<?php $username = 'Joe'; $form = "<form ...>"; $form.= "Username: <input type = 'text' name='username' value='$username'>"; $form.="<input type = 'submit'></form>"; echo $form;?>[/code]this will output([] represents text field):[code]Username: [Joe ][Submit][/code] Quote Link to comment https://forums.phpfreaks.com/topic/10438-php-result-form/#findComment-38931 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.