|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
ricklach Smarty Regular
Joined: 27 Aug 2004 Posts: 39
|
Posted: Mon Sep 13, 2004 2:33 am Post subject: is_valid($_POST) |
|
|
I have a search form with a number of text boxes only one of which has to be filled in. If none of the boxes are filled in and you post the form you will always get is_valid($_POST) = true because the submit button will have a value. How do you handle the case where none of the variables are filled in and you want to generate an error message like "You must complete at least one of the fields."
Rick |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|