The two methods that I use to get variable names and values to the server are:
1. Getting the name and value from a form or hidden variable and then hitting an "<Input type=submit>" button to post data;
2. Using a link "www.mysite.com/page.php?city=sydney&fname=john&age=10"
With regard to method 2, if I have 100 links like the one above, each with different fname and age values but all with the same city value, is there any way that I can avoid having to include city=sydney on each link yet still getting the city name and value from the webpage to the server?
There are lots of pages, each with 100 links.Each individual page will have the 100 links but a different city name.
All pages will call upon the same php script.
Thanks in advance for you help.
If you're going to have that many inserts for each city would you be able to have a separate table for each city. That would avoid the need for the link, but might not suit your table structure.
How would you see that working, can you give a small example?