Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Fig 2 (a) Write code to create the web form as given above in Fig 2 . 1. Form has two fields, a text field
Fig 2 (a) Write code to create the web form as given above in Fig 2 . 1. Form has two fields, a text field that takes input of amount in ringgit and a select list with 3 options 'Select', 'Dollars' and 'Rupees'. II. When 'Convert' is clicked, it converts ringgits into the selected currency based on the conversion rate given in Fig 2. (b) Show server-side validation in the form handler to check - I. Amount field is not left empty II. Amount field is a number only III. select option has a currency selected. (c) If validation fails, redirect the user back to the web form with a message and with all the values to be used as a sticky form for the 'amount' field and the 'select list
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started