The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
form submission help
I've got a page outside of vb that works with some of the vb elements (mainly, it's a members-only page).
I've got a lot of it working; the login, the correct info displayed, and correct form stuff setup. I've got the submit that I want to do with the form, but I'm not sure how to go about it. Here's what I mean: I've got the insert statement I want, and an if/else statement for a couple of the fields of the form - but I'm not quite sure how to do it within the same page and the display a simple "thank you" (like after submitting a post) and then kick you back out to the page that originally led you to the form in the first place. Does that make sense? Hope so Let me know if I can clear anything up, and I hope someone can point me in the right direction. My php is iffy, but I'm getting by so far. |
#2
|
||||
|
||||
Here is the basic code to go on: In the form HTML make the file the form submits to the same as the file thats displaying the form and make sure this hidden input field is added:
HTML Code:
<input type="hidden" name="action" value="update">
PHP Code:
|
#3
|
|||
|
|||
$url = $_SERVER['HTTP_REFERRER'];
will that work if I just want to dish them back to the page that sent them? |
#4
|
||||
|
||||
Yep
|
#5
|
|||
|
|||
Quote:
$_SERVER['HTTP_REFERER'] as: $_SERVER['HTTP_REFERRER'] wouldn't work Is it spelt differently in UK-English or something? Any spell check/dictionary I know of spells it referrer (as I was taught and even as programs like DW output it). Luckily, I found out the quirk through Google. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|