How do i get unique urls?
Posted: Mon Sep 07, 2009 9:13 am
Hi People. Wonder if you can help me out.
I am very new to php so be gentle.
I have built a rather simple database of postcodes and some information regarding them.
I have also built a php page called postcode.php
When someone enters a postcode into a form, postcode.php goes and looks at the database and if the postcode entered into the form is in the database then it returns the information about that postcode. SIMPLE YES?
Everything is working fine and dandy, EXCEPT the url in the address bar always remains the same ie http://www.mysite.com/postcode.php
I wonder if anyone can help me or point me in the right direction of how i can have a unique id for each page? ie http://www.mysite.com/postcode.php?id10 etc
I am assuming this is very simple, but i have searched my butt off and cannot find anything usefull about this.
Many thanks.
I am very new to php so be gentle.
I have built a rather simple database of postcodes and some information regarding them.
I have also built a php page called postcode.php
When someone enters a postcode into a form, postcode.php goes and looks at the database and if the postcode entered into the form is in the database then it returns the information about that postcode. SIMPLE YES?
Everything is working fine and dandy, EXCEPT the url in the address bar always remains the same ie http://www.mysite.com/postcode.php
I wonder if anyone can help me or point me in the right direction of how i can have a unique id for each page? ie http://www.mysite.com/postcode.php?id10 etc
I am assuming this is very simple, but i have searched my butt off and cannot find anything usefull about this.
Many thanks.