473,396 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

php form return page request_uri

pradeepjain
563 512MB
hii guys i have a small problem.i have a page with parameters passed in url .i use POST method in the page and action=PHP_SELF . After submissions i want to return to same page .But the parameters in URL are causing probs.So how to get this done..
Dec 15 '08 #1
4 3235
Dormilich
8,658 Expert Mod 8TB
if you're in the base directory you can use $_SERVER['REQUEST_URI'] otherwise use $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'].

you can look at the available $_SERVER variables in the phpinfo() file.

regards
Dec 15 '08 #2
Markus
6,050 Expert 4TB
Can you elaborate on the 'probs', i.e. tell us what they are?

Thanks,
Markus.
Dec 15 '08 #3
pradeepjain
563 512MB
@Markus
the prob is that ,i am passing few variables by url to a page which is a form and the submit action needs to be set something like tht so that it come to same page after submitting.I tried request_uri also but it comes to the page with no action.URL is what i need but its not executing when i use REQUEST_URI......Hope i am clear
Dec 15 '08 #4
Dormilich
8,658 Expert Mod 8TB
if it's coming to the same page, then REQUEST_URI definitely worked. maybe there's something screwed up in the script?
Dec 15 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Don | last post by:
What's the PHP equivalent for the following? if(window.location == "http:/site.com/page1.html") { } else { }
13
by: Stephen Kay | last post by:
Is there a way to redirect every single page on an existing web site through a php function? In other words, say I have a whole functional HTML web site, never written to use any php. Now I...
10
by: Seth | last post by:
If my current page is: www.domainname.com/index.php?menu=man&pageid=mfrs/register $PHP_SELF returns: index.php What function can I use to return: index.php?menu=man&pageid=mfrs/register ...
12
by: Matthew Wilson | last post by:
Hi, we are getting a lot of spam through our PHP Feedback form, and have set up a new field 'prove you're human', asking them to do some simple maths. What is the command for the PHP script...
16
by: Alan Jones | last post by:
Hello everyone, any help would be greatly appreciated. :) What I'm trying to do may not be advisable, but here goes... I want a page named signature.php to appear conditionally as an include...
5
by: henryrhenryr | last post by:
Appologies for unclear title. I don't really understand the problem I'm facing. My system: PHP 5.2.1, Win2K, Apache 2, MySQL 5 (local - problem is same on my live site running php 4.3.9, Linux,...
1
by: dheeraj4uuu | last post by:
Hii I have an Smf forum, and i installed SEO4SMF to my forum and i made some modifications to my htaccess file.but after doing so everything works fine but i noticed that after going to some...
0
by: gnawz | last post by:
I have a feedback form code which does email but does not display the correct content. In place of the email address, it displays "+1" And the body message is "1" It works well when I test...
2
by: mike2098 | last post by:
Hi I have a form with drop down boxes, tinymce and an ajax file up-loader I want to be able to submit the form and store all the data on a mysql db the trouble I have is I do not know how to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.