Form output redirect a variable
Alright, it might be an easy answer but for mine self, I´m just stuck in it.
Here is a small script code:
Now what I want is this:
if(empty($_POST["Username"]) || empty($_POST["password"]))
echo "Fields has not been set";
Add a variable if 1 of those 2 are empty, get the variable echo'd out back on the form page.
The problem is the undefined index.
I'm currently not using global arrays and I was wondering how can I move the variable to the previous page.
However once the page has been refreshed, the variable must not be echo'd out because the user hasn't filled in the form yet "this time".
I hope I make it as much understandable to be understood.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)