![]() |
php linking
Hi there,
I have a simple php login script but need to change something slightly Code:
$msg = 'Password incorrect.'; instead of displaying the password incorrect message i would like to send the user to a url with their whatever they put as the password on the end eg. www.mysite.com/1.php?substring=XXXX where XXXX is their input could some explain how I could do that please thanks a lot |
You can use the function exec_header_redirect when the login is invalid but I suggest highly not to redirect with the password already input. Sending a password in plain text is not a good thing to do. Also some browsers have problems with forms that have blank as the action or no action.
|
thankyou for your answer but would you be able to show me how to use it? im new to this and I cant seem to make it work.
Do I do something like.... $msg = exec_header_redirect("www.mysite.com/1.php?substring="); and also how do I add the incorrect password on the end? thanks for your help. |
exec_header_redirect is a function that does the redirect, I don't believe it returns anything.
PHP Code:
|
ok thanks i'll give that a try.
ps. im not using this to create a secure login or anything, im just adapting a login script to fit my needs. There will be the proper vbulletin login after this. --------------- Added [DATE]1214721236[/DATE] at [TIME]1214721236[/TIME] --------------- hmmm im getting the error Code:
Fatal error: Call to undefined function exec_header_redirect() in /home/invitezo/public_html/home.php on line 388 Code:
exec_header_redirect("1.php?substring=" . $password); |
Use the header() function.
|
ahhh working perfectly now, thanks very much to both of you for helping me
|
exec_header_redirect() is a vBulletin function and will only work if its files are included.
|
All times are GMT. The time now is 01:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|