Sep 10, 2000, 11:53 AM
Post #1 of 2
I have a problem figuring out the difference between param() and url_param() and also, I guess, between GET and POST methods for <form> submissions.
param() vs url_param()
I want to pass name=value pairs to my script from my Web page both from a <form> submission (eg- <form method=post action=/.../cgi-bin/script.pl> ) and from a <a> tag with name=value pairs encoded on the URL (eg- <a href=http://.../cgi-bin/script.pl?firstName=James&lastName=Bond> ).
I have 2 questions. First, does the GET method pass name=value pairs on the URL as I written above? What is the difference between POST and GET methods when passing name=value pairs?
Second, do I use url_param() to get the values when it is passed as encoded on the URL, as I written above? Or do I use param() instead?
Thanks in advance.