Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

Comments for: hillel_aftel20070510

Message # 1510007:
Date: 05/21/07 13:38
By: Hillel Aftel
Subject: RE: GET-variables

To Eugene Wee:

Session variables would solve the problem too, as would many other types of transport. However there are times when session variable are not viable. An example would be links formed from database records, like when you need to display a record list, each record having its own edit or delete link (or button). Those links need to be formed when the page renders, and there is no point where more PHP code can be executed to set a session variable telling the receiving page which record it needs to work with. It's those instances where query strings are usually used, placing the record IDs in those links as query strings.

The moral of the story is that while there are more secure methods, GET query strings have their place in most web applications, especially database-driven ones. This technique simply makes them unreadable, where the alternative is to display them completely readable to everyone.

Previous Message | Next Message


Comments:
Error in scriptScott05/20/08 11:45
want to develop a job portal formwasim01/14/08 07:59
RE: GET-variablesmpb06/18/07 12:28
RE: GET-variablesHillel Aftel06/13/07 14:17
RE: GET-variablesgreybold06/06/07 22:45
RE: GET-variablesHillel Aftel05/21/07 13:38
RE: GET-variablesEugene Wee05/16/07 03:06
RE: GET-variablesHillel Aftel05/15/07 14:32
RE: GET-variablesHillel Aftel05/13/07 20:57
RE: GET-variablesProfessional Developer05/12/07 12:24
GET-variablesThijs05/11/07 14:10
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.