Hi I’m currently building a page in PHP and I’m having a trouble on setting this one. It is currently running on my localhost. Well my page is in this folder
http://localhost/signup/signup/
named index.php so it is the front page. My goal is to use this one for database update wherein I manually key in the $_GET value in the addressbar of the browser which will now look like this
http://localhost/signup/signup/?email=email@yahoo.com.
This will fill up my forms with the user information based on their email. Now I have a problem on how can I set the $_GET value into null (or blank space) so that I can use
http://localhost/signup/signup/ even without the email being set on the addressbar.
how about something a bit better?
That way it isn’t set twice for no reason. and using $_REQUEST will allow for future changes in case you change it such that they give you that variable as part of a post. This way you wont have to rewrite a bunch of code.