The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
In my php code, I have an action section that happens when you do...
www.here.com/stuff.php?do=buy when that happens, it does some functions that run fine, I'd just like it to return back to regular stuff.php after that happens so they can refresh without accidently re-buying what they just did. Any way to do that all in one php page? I wanted to keep the file amount to a minimum. ![]() Also, redirecting with a header() can't be used. Thanks. |
#2
|
||||
|
||||
![]()
use vb's redirect function?
|
#3
|
|||
|
|||
![]()
Sorry I wasn't aware it had one. :P
Is it like redirect() or something? |
#4
|
||||
|
||||
![]()
meaning this:
PHP Code:
|
#5
|
||||
|
||||
![]()
or this:
PHP Code:
|
#6
|
|||
|
|||
![]()
Warning: Cannot modify header information - headers already sent by (output started at /home/site/www/here.php:427) in /home/site/www/includes/functions.php on line 2836
on Colin's. |
#7
|
||||
|
||||
![]()
Do it near the beginning of the file
![]() Or just use standard_redirect (See AN-net's code). Be aware that you'll have to add a phrase in the redirect group with the name you enter for "phrasename", if you have redirects turned on in your forum. |
#8
|
|||
|
|||
![]()
Never added a redirect group phrase before... ^^;;;
It just needs to redirect to www.here.com/buy.php EDIT - If I could change the do= to do=main and then make the page refresh that would be even better :P |
#9
|
|||
|
|||
![]()
just to update, I got it working with
eval(print_standard_redirect('phrasename')); Thanks AN-net and everyone else too of course. Almost got all the help I need to finish this thing. ![]() |
#10
|
|||
|
|||
![]() Quote:
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|