I have a lot of code in this PHP file, and it searches for information that it receives, like age, address, etc. But if something goes wrong in the search (like the person is under 18 ), then I'd just do something, but I want the code to stop there, I don't want it to continue with the rest of the document to scan the rest of the information.
Do you use return; in PHP too?
In JavaScript You could Exit with "return;"InPHP??
Moderator: General Moderators
-
Eradication
- Forum Newbie
- Posts: 10
- Joined: Sun Dec 21, 2003 11:37 pm
- Location: USA
-
Eradication
- Forum Newbie
- Posts: 10
- Joined: Sun Dec 21, 2003 11:37 pm
- Location: USA
Cool, so how would you make the script die for a limited amount of time, so like the things are going ok on the road of scripting -------------------------------------------- but now I want to wait for like 2 seconds and then start on the road again where I left off? ----------------------------------------------------------------------------.
-
Eradication
- Forum Newbie
- Posts: 10
- Joined: Sun Dec 21, 2003 11:37 pm
- Location: USA
Well you see what's happening is this. The people first go to a form where they fill out like their name and address, and then once they click the button they get sent to this page with a text box that scans the data slowly. (because with computers these days they can scan anything in a heart beat), so I want to check the name for like 1 second, so that on the textbox it'll say "Name Valid". And then the code will check the Address for 1 second and display "Address Valid". etc...
Instead of the code instantaneously checking everything and being valid anyways, I want it to go slower, by stalling the code after every checkup. I hope that helps lol, I'll explain more if you want.
Instead of the code instantaneously checking everything and being valid anyways, I want it to go slower, by stalling the code after every checkup. I hope that helps lol, I'll explain more if you want.
-
Eradication
- Forum Newbie
- Posts: 10
- Joined: Sun Dec 21, 2003 11:37 pm
- Location: USA