![]() |
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"> Is there an easy way to achieve this? Thanks in advance Niklas |
Bump
|
You can store the errors in sessions if you don't post the data to the same page.
PHP Code:
|
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. |
You can use header('Location: ..., you just can't output anything before sending them. Neither white spaces nor HTML.
|
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! |
You can redirect with HTML then.
Echo this instead. Code:
<meta http-equiv="refresh" content="0;URL=http://url.com" /> |
All times are GMT. The time now is 07:11 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|