28, May 2012

post question with $_SERVER['PHP_SELF'] - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: post question with $_SERVER['PHP_SELF']
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: post question with $_SERVER['PHP_SELF']  (Read 1414 times)
OMG!I am geek
**
Posts: 53
406 credits
Members referred : 0


« on: Apr 23, 2008, 11:28:38 pm »

when using the
Code:
$_SERVER['PHP_SELF']
to post in forms and having the form use file.php?type=something to generate a certain things is there a way to have it go back to file.php?type=something insted of going back to just file.php?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: Apr 24, 2008, 06:50:35 am »

Of course there is Smiley

$_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING']

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Community Supporter ?
Hunky Junky Monky Man!
**
Gender: Male
Posts: 68
436 credits
Members referred : 0


Schwa?


« Reply #2 on: May 05, 2008, 07:30:26 am »

Of course, you should always filter anything you get from $_SERVER.  For the most part, $_SERVER can be considered as un-safe as $_POST or $_GET.  Just a helpful tip.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7708
Tags : php post php_self form Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: post question with $_SERVER['PHP_SELF']
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 08:09:00 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.