PLEASE CHECK THE WEB PAGE FOR ME(POINT 100)!THX A LOT!
1.2 Form
Your orders page should be an interactive form that obtains the following
information (names in brackets refer to what the field must be named in the form):
Name of customer. (Name= Customername Postal address (address), suburb (suburb), state (state), postcode postcode), e-mail address (email), phone (phone) and fax (fax) of
customer.
Radio buttons for preferred contact method ?mail, phone, fax, or
e-mail (values = rmail, rphone, rfax, remail; name=
referredcontact?
Product or service code (drop-down menu based on product codes
from catalogue). (values = p1,p2,p3,p4; name = productcode?
Quantity of the product or service required. (quantity)
Preferred date of delivery in DD/MM/YYYY format (deliverydate)
Total price (price)
"Reset" and "Submit" buttons are to be used.
You need to include the following hidden fields:
<INPUT TYPE="hidden" NAME="recipient" VALUE="[insert your
e-mail address]">
<INPUT TYPE="hidden" NAME="subject" VALUE="Order form ">
<INPUT TYPE="hidden" NAME="Return URL" VALUE="[Insert
your home page]">
<INPUT TYPE="hidden" NAME="Return Link Text"
VALUE="Return to the homepage">
<INPUT TYPE="hidden" NAME="Show Results" VALUE="Yes">
<INPUT TYPE="hidden" NAME="Toggle Graphics"
VALUE="Off">
The method associated with the form is "Post."
The form is to be directed to the following CGI program:
"http://130.102.196.65/Scripts/SendMail.asp".
1.3 JavaScript (form validation)
Use JavaScript to do the following:
Validate that the quantity of the product required is a number in the
range 10-100 (orders outside this range will be processed via
traditional channels);
Display the total cost of the order based on the product code and
quantity ordered.
Ensure that an e-mail address is entered by checking that the email
field is not null.
These validation procedures should occur as soon as the relevant
information is entered (onchange). You should also ensure that the form is
not capable of submission if it still contains an error or if any field is empty.
Assume that customers are only able to order one product at a time