Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

is_valid($_POST)

 
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
ricklach
Smarty Regular


Joined: 27 Aug 2004
Posts: 39

PostPosted: Mon Sep 13, 2004 2:33 am    Post subject: is_valid($_POST) Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP