Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

passing variables - POST or GET

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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....
eyewoo
New php-forum User
New php-forum User
 
Posts: 71
Joined: Sun Mar 09, 2003 10:29 am
Location: Pennsylvania, USA

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()"
Xerpher
New php-forum User
New php-forum User
 
Posts: 164
Joined: Tue Aug 27, 2002 8:25 pm
Location: Ontario, Canada

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

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


Return to PHP coding => General

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.