The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
i'm having a stupid moment here and cant figure out why the variables arnt passing
PHP Code:
PHP Code:
|
#2
|
||||
|
||||
![]()
Try
header("Location: /signup.php?step=2"); EDIT: Also, on a sidenote, you don't need the brackets {} if you only want to do one thing. So instead of PHP Code:
PHP Code:
EDIT 2: There should be quotes around the "yes". PHP Code:
|
#3
|
|||
|
|||
![]() Quote:
http://us3.php.net/switch |
#4
|
||||
|
||||
![]()
Yep, I prefer the switch() method as well. In his case he could do something like this:
PHP Code:
|
#5
|
||||
|
||||
![]()
Just another simpler (IMO) variation...
PHP Code:
|
#6
|
|||
|
|||
![]()
thanks for the help so far but that didnt fix the problem i'm having its either not setting the values in
HTML Code:
<td><input type="checkbox" name="agree" value="yes" style="background: #111111;"> <input type="hidden" name="step1" value="1"> <strong><nobr>I have read, and agree to abide by the Terms of Service.</nobr></strong></td> <td align="right"><input type="submit" value="next ->"></td> |
#7
|
||||
|
||||
![]()
Is the code you posted above the beginning of your page? If so, do you have register globals enabled? Try either changing all $step to $_POST['step'] and $agree to $_POST['agree'], or try placing this at the top of your page.
PHP Code:
PHP Code:
|
#8
|
|||
|
|||
![]()
changing it to $_POST helped now i get the values: Array ( [agree] => yes [step1] => 1 [step] => 1 ) so they are stored and the switch is working just not liking
PHP Code:
due to it already defined in the include |
#9
|
||||
|
||||
![]()
You cannot modify the header information after outputting data to the browser. Take out the first echo and it should work.
|
#10
|
|||
|
|||
![]()
Couldn't you write a function as well?
You can put the function at the top of your script, below the opening php tag. PHP Code:
Where you're using the if/else or switch method you can replace it with PHP Code:
HTML Code:
<input type="hidden" name="page" value="1" />
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|