Jump to content

PHP result > form


HHawk

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.