Forums
This topic is locked
Passing data via a URL
Posted 26 Nov 2003 17:43:49
1
has voted
26 Nov 2003 17:43:49 Brian Selves posted:
I have created a basic 4 page survey in Dreamweaver MX using PHP/MySQL using the product name as a key. For updates I use the product name to bring up the relevant details to my form from the database. The problem is, although this works well, it also means that by typing another product name into the URL like ?prodID=record2, this would bring up another record which is something I want to avoid if it doesn't belong to the user.Is there anyway I can get around this, like hiding the URL or maybe using sessions ??
Any advice or pointers of where to read up would be much appreciated. Thanks.
Brian
Replies
Replied 02 Dec 2003 13:14:31
02 Dec 2003 13:14:31 Nozomi Kugita replied:
How about sending the data via POST method? I don't know your application, but if you let a user select from a dropdown menu or something, use the form element value to send to a details page and filter record by it.