my actual link is
http://www.website.com/testing/xyz.php?id=2
but when i use PHP_SELF it is refreshing and the url turn as http://www.website.com/testing/xyz.php
please reply
queenc
-1
Junior Poster
Recommended Answers
Jump to PostThis is because all GET variables are lost. The page reloads, so the url is set to the default. If you want to pass GET variables to POST, insert them in hidden fields into the form, then grab them again using POST. Here is a sample:
<?php …
All 4 Replies
bad_dreams99
0
Newbie Poster
jansson
0
Newbie Poster
ryan_vietnow
13
Posting Pro
queenc
-1
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.