Jump to content

Archived

This topic is now archived and is closed to further replies.

HHawk

PHP result > form

Recommended Posts

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,
HHawk

PS: Sorry for my bad English, but English isn't my native language. So I still hope you can understand what I want to do.

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.