The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Error reporting from input field, save values
Hello!
I have a question about error reporting (if thats what its called). Lets say I have a form: HTML Code:
<form action="save.php" method="post"> <input type="text" name="hello" /> <input type="submit" value="save" /> </form> Is there an easy way to achieve this? Thanks in advance Niklas |
#2
|
|||
|
|||
Bump
|
#3
|
||||
|
||||
You can store the errors in sessions if you don't post the data to the same page.
PHP Code:
|
#4
|
|||
|
|||
Excellent!
One questin, what is the best way to "Go back to previous page"? I tried using header() but it gives me errors since a header has already been sent. |
#5
|
||||
|
||||
You can use header('Location: ..., you just can't output anything before sending them. Neither white spaces nor HTML.
|
#6
|
|||
|
|||
and what if i do have hml before? is it impossible then? do i have to re-arrange in the document?
thanks for all the help! |
#7
|
||||
|
||||
You can redirect with HTML then.
Echo this instead. Code:
<meta http-equiv="refresh" content="0;URL=http://url.com" /> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|