| |||||||
This is a discussion on Move to a new URL within the PHP/MySQL section, part of the Programming category; I know I am missing something simple, and I have looked at the W3 schools stuff on PHP, so I ...
![]() |
|
| | LinkBack | Thread Tools | Display Modes |
|
#1
| ||||
| ||||
|
I know I am missing something simple, and I have looked at the W3 schools stuff on PHP, so I need someone's help. I simply want a PHP "command" or function, or whatever, that allows me to give it a URL, and it will move me to that URL. I want to do it from within code, not as a hyperlink on my webpage. I want the user to enter some data on a form, then depending upon the data entered, move to a different URL. Must be done behind the scenes in code. Any PHP experts that can help me would be greatly appreciated. |
|
#2
| ||||
| ||||
Hii... nice to see you ! ok..Does this help ? PHP Code: http://www.w3schools.com/php/func_http_header.asp http://in.php.net/header Note: In vBulletin we use $vbulletin->url
__________________ Would you like to Link To Us | Support TECH6 by going Premium Know more about me at Vinayaks.com | Follow TECH6 at Twitter |
|
#3
| ||||
| ||||
|
Now see, this is why your site is so great. Webwizzy knows everything. Well, maybe not everything, but pretty much. I said I had missed something. I missed the "Location:" part of it. Add that in, and everything works great! Thanks. |
|
#4
| ||||
| ||||
|
Glad you got it working..
__________________ Would you like to Link To Us | Support TECH6 by going Premium Know more about me at Vinayaks.com | Follow TECH6 at Twitter |
|
#5
| ||||
| ||||
|
Thanks, Stupid 2am type error. Reading - it sometimes helps. |
![]() |
| Bookmarks |
| Tags |
| header, location, new url, php |
| Thread Tools | |
| Display Modes | |
| |