passing variables - POST or GET

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
eyewoo
New php-forum User
New php-forum User
Posts: 71
Joined: Sun Mar 09, 2003 10:29 am
Location: Pennsylvania, USA
Contact:

Tue Mar 25, 2003 5:50 am

Is there a way to pass variables after the "?" on a URL using the POST method rather than the GET method? It seems they go GET by default, so the variables are visible, which encourage some folks to screw around with "what if's" by changing their values. If they could be sent POST, then they wouldn't be visible....
Philip Williams
Image

Xerpher
New php-forum User
New php-forum User
Posts: 164
Joined: Tue Aug 27, 2002 8:25 pm
Location: Ontario, Canada
Contact:

Tue Mar 25, 2003 10:00 am

You can only use $_POST by posting information via forms... what you could do is make a form with hidden values and then replace links with href="javascript:formname.submit()"
Terra Design, my business and sole / huge PHP project... a fully dynamic and adaptive site engine.

eyewoo
New php-forum User
New php-forum User
Posts: 71
Joined: Sun Mar 09, 2003 10:29 am
Location: Pennsylvania, USA
Contact:

Tue Mar 25, 2003 10:04 am

Thanks Xerpher
Philip Williams
Image

Post Reply