passing variables - POST or GET

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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

passing variables - POST or GET

Postby eyewoo » 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....

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

Postby Xerpher » 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()"

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

Postby eyewoo » Tue Mar 25, 2003 10:04 am

Thanks Xerpher


Return to “PHP coding => General”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest