Web Hosting Talk







View Full Version : How To? | PHP Form


mark1hos
09-09-2004, 04:18 PM
Hello, I am posting to ask if anyone knows how to have a php form, insert information given in the URL?

For example

https://secure.ourdomain.com/payment.php?total=$100&invoice=Hosting Services.

So have the 'total' inserted into a total box and the 'invoice' inserted as a description on the payment.php page.

I hope the above makes sense. IF anyone knows the bit of coding needed in the script to work, I would appreciate the information.

Regards,
Chris

sea otter
09-09-2004, 05:01 PM
Have a look at this mini-tutorial:

http://www.w3schools.com/php/php_forms.asp

Code snippets and all.

armstrongecom
09-09-2004, 06:50 PM
Here's some code you can incorporate in your page...

<input type="text" name="total" value="<?print($_GET["total"]);?>" >

<input type="text" name="invoice" value="<?print($_GET["invoice"]);?>" >

But learning is good, too :)

-A

Stevor
09-10-2004, 09:53 PM
Im not real sure what your are asing, clarify yourself and I will see what I can do..

mark1hos
09-11-2004, 11:48 AM
Hi guys, thank you all for you help. I have now figured it out and got it working great!

Thank you again!