name=Evan+Burke&card=Visa&number=8443261344895544&order=French+perfume
for buying some French perfume into the HTML form fields and submit button on the Web page form.
for buying some French perfume into the HTML form fields and submit button on the Web page form.
2. Write the script.
Script archives exist for PERL, Python and JavaScript. Search the web for a script that processes the HTML form data. Read the code and list the steps involved in processing the form.
To use perl to get the form values, the steps are below:
i. Get the query string.
ii. Split the query string by the ampersand symbol "&".
iii. Split the resultant based on "=" symbol to get the key-value pair.
3. Can you modify the script to process the form.
4. Improve the user experience by add a JavaScript feature.
JavaScript can be added to validate forms. However, it cannot br relied upon since users can choose to disable scripts.
No comments:
Post a Comment