The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi there,
I have a simple php login script but need to change something slightly Code:
$msg = 'Password incorrect.'; <form action="" method="POST"> <p> <input type="password" name="password" size="20"> <input type="submit" value="Login"> <input type="hidden" name="sub" value="sub"> </p> <div class=error><?=$msg?></div> 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 |
#2
|
|||
|
|||
![]()
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.
|
#3
|
|||
|
|||
![]()
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. |
#4
|
|||
|
|||
![]()
exec_header_redirect is a function that does the redirect, I don't believe it returns anything.
PHP Code:
|
#5
|
|||
|
|||
![]()
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); |
#7
|
|||
|
|||
![]()
ahhh working perfectly now, thanks very much to both of you for helping me
|
#8
|
||||
|
||||
![]()
exec_header_redirect() is a vBulletin function and will only work if its files are included.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|