
October 13th, 2004, 05:32 AM
|
|
Registered User
|
|
Join Date: Oct 2004
Location: London
Posts: 6
Time spent in forums: 17 m 7 sec
Reputation Power: 0
|
|
|
You might want to try placing this question in one of the 'programming' areas of the site. PHP would be able to easily deal with a question like this.
Quickly however, you will need something like this:
<form name="OrderInformation" action="getOrder.php" method="get">
Enter your order number: <input type="text" size="30" name="OrderID"> <input type="submit" value="Get your file now!">
</form>
Then, in a page that was called getOrder.php, you would use the value 'OrderID' to pull information from a database... this is when you would test if their order was stored in the database, if not, display an error message.
If your orders are just stored as HTML pages however, you could simply use javascript to forward the user to a page, the value of which was gathered in the form. So your form would be the same, but you would have to use an 'onSubmit' handler, that would take the 'orderID' value, and forward the user to a page called 'orderID.html'... or something similar.
I'm afraid more information as to the set up of your website is needed...
Hope it points you in the right direction though.
|