Jul 24
Patrick Larkin Form/Results Same Page
Jul 24, 2012; 11:52
Patrick Larkin
Form/Results Same Page
Hello -
I am working on a page in which there is a simple search form at top and the results display underneath.
The search is on a calendar of events. I want the default state to be all events greater than or equal to today. I hard coded the vars to make this happen. So the page initially loads correctly.
I put in an IF statement that substitutes the hard coded operator and date value above with whatever the user selects so if they select events EQUAL to November 21, 2012, it will show those events. Everything working fine.
The issue is if a user searches for events without a date. Say they search on Events of category Music and Events at a particular school. My code will still use the hard coded date and operator because the IF statement fails. This is the IF statement.
[if(action_param('date') != '')]
[var:'date_to_use'=action_param('date')]
[/if]
So, if the user enters a date then use it. Since in my scenario, the user isn't interested in dates, they do not enter one so the IF fails and the inline uses today's date.
I always displayed calendar results on another page thus avoiding this issue. But I really want the initial load of the page to show upcoming events in ascending order.
I'm sure there is a simple way around this but I'm coming up empty.
Patrick Larkin
Developer/Administrator of Special Systems / Webmaster
Bethlehem Area School District
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Jul 24
Doug Gentry Re: Form/Results Same Page
Jul 24, 2012; 09:21
Doug Gentry
Re: Form/Results Same Page
Jul 24
Steve Piercy - Web Site Builder Re: Form/Results Same Page
Jul 24, 2012; 09:27
Steve Piercy - Web Site Builder
Re: Form/Results Same Page
Jul 24
Tim Taplin Re: Form/Results Same Page
Jul 24, 2012; 10:38
Tim Taplin
Re: Form/Results Same Page
Jul 24
Patrick Larkin Re: Form/Results Same Page
Jul 24, 2012; 12:53
Patrick Larkin
Re: Form/Results Same Page
Jul 24
Steve Piercy - Web Site Builder Re: Form/Results Same Page
Jul 24, 2012; 10:12
Steve Piercy - Web Site Builder
Re: Form/Results Same Page
Jul 24
Tim Taplin Re: Form/Results Same Page
Jul 24, 2012; 11:24
Tim Taplin
Re: Form/Results Same Page
Jul 24
Patrick Larkin Re: Form/Results Same Page
Jul 24, 2012; 14:08
Patrick Larkin
Re: Form/Results Same Page
Jul 24
Ke Carlton Re: Form/Results Same Page
Jul 24, 2012; 20:11
Ke Carlton
Re: Form/Results Same Page
Jul 24
Ke Carlton Re: Form/Results Same Page
Jul 24, 2012; 20:13
Ke Carlton
Re: Form/Results Same Page