Blank form submit displays all listings

2 posts by 2 authors in: Forums > CMS Builder
Last Post: August 16, 2010   (RSS)

Re: [RapidWeb] Blank form submit displays all listings

By Jason - August 16, 2010

Hi,

What you can do is see if anything was entered into the text box before you output any data with your foreach loop.

It would look something like this:

<?php if(@$_REQUEST['minyan_name_keyword']): ?>
<?php foreach(......) : ?>
*YOUR OUTPUT
<?php endforeach ?>
<?php endif ?>


This way the foreach loop will only run if a value was entered into the text box.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/