hey i have a url like this.
http://localhost:8888/webtopics/test.php?amnt=40&from=USD&to=GBP
the application is a currency converter.
the user types this part into the url to make the app work. “amnt=40&from=USD&to=GBP”
i would like to make my system neatly handle errors.
I need to make the system handle these errors ;
Code Message
1000 Required parameter is missing
1100 Parameter not recognized
2000 Currency type not recognized
2100 Currency amount must be to 2 decimal places
3000 Service currently unavailable
3100 Error in service
i would be grateful if anyone could show me how to do any of these.
Im pretty sure if i know how to do one i could work the others out.