Senior & Expert PHP Developers Discussion Forum by Nyros Technologies

HIRE PHP Expert Developers Programmers Coders From India
PHP .Net Ruby on Rails Developers Community, Nyros Technologies, Kakinada
 
Log in  or IF not a member please REGISTER
Username:
Password:   


Keyword
Log in | Profile 

current url of the page

 
Post new topic   Reply to topic    Senior & Expert PHP Developers Discussion Forum by Nyros Technologies Index -> Hello Earth :)
View previous topic :: View next topic  
Author Message
soujanya



Joined: 23 Feb 2009
Posts: 27

PostPosted: Tue May 12, 2009 9:43 am    Post subject: current url of the page Reply with quote

hi all , i want to get the current url of the page so that i can have the form action to the same page , so can anyone suggestion how can i get the current url with the variables in the url
Back to top
View user's profile Send private message
soujanya



Joined: 23 Feb 2009
Posts: 27

PostPosted: Tue May 12, 2009 9:55 am    Post subject: Reply with quote

hi , we can use the $_SERVER[’PHP_SELF’] to submit the form to the same url, also we can use $_SERVER['REQUEST_URI'] to the get the current url along with the file name , directories and variables appeneded , also we can use $_SERVER[’SCRIPT_NAME’] it returns only the file name regardless of if it was typed, not typed, or anything was appended to it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Senior & Expert PHP Developers Discussion Forum by Nyros Technologies Index -> Hello Earth :)
Page 1 of 1

 latest topics 
 Topics   Replies   Author   Views   Last Post 
No new posts music portal script
0 realcoder 1 Thu Mar 11, 2010 8:42 pm
realcoder View latest post
No new posts DataExporter.php anybody make or tell
0 realcoder 4 Thu Mar 11, 2010 8:33 pm
realcoder View latest post
No new posts Email sending through PHP program
1 kumar1116 50 Thu Mar 11, 2010 10:29 am
AnilKumar View latest post
No new posts Php script to display the days between two dates?
1 Thirupathi 55 Thu Mar 11, 2010 9:09 am
Mike View latest post
No new posts display the date in given range
4 Mike 54 Thu Mar 11, 2010 5:31 am
Mike View latest post
No new posts how to add 20 minutes in past date
2 Mike 33 Wed Mar 10, 2010 1:29 pm
Mike View latest post
No new posts Get the random values from mysql
0 AnilKumar 14 Wed Mar 10, 2010 4:43 am
AnilKumar View latest post
No new posts About Expression Engine
1 Thirupathi 72 Mon Mar 08, 2010 2:31 pm
nih View latest post
No new posts content type=text/html and and image/jpeg in same php file?
3 Mike 79 Fri Mar 05, 2010 5:16 am
AnilKumar View latest post
No new posts how to create xls file using mysql and php?
4 AnilKumar 2799 Fri Mar 05, 2010 5:08 am
AnilKumar View latest post





Hire an expert PHP developer / coder / programmer or development team from India now!!

Other Forums : Ruby on Rails   ::   .Net   |   Free unlimited HTML CSS Joomla Wordpress Drupal templates download

Nyros Technologies   |   Developers Blog   |   Kakinada City Portal   |   About PHP Experts   |   More