13, May 2008

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

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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

Author Topic: post question with $_SERVER['PHP_SELF']  (Read 172 times)
Cyberpunk Wannabe
*
Posts: 45
342 credits
Members referred : 0


« on: Apr 24, 2008, 12:28:38 AM »

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: 7824
39879 credits
Members referred : 3



« Reply #1 on: Apr 24, 2008, 07:50:35 AM »

Of course there is Smiley

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

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Community Supporter ?
OMG!I am geek
**
Gender: Male
Posts: 56
364 credits
Members referred : 0


Schwa?


« Reply #2 on: May 05, 2008, 08: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....

Topic sponsors:
Get a permanent link here for $1.99!


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 13, 2008, 06:21:45 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!


Forum Statistics
Total Posts: 34.931
Total Topics: 7.262
Total Members: 3.482
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: ondho

18 Guests, 3 Users online :

11 users online today:



Readers

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