Skip to main content
8 events
when toggle format what by license comment
Aug 10, 2014 at 23:04 vote accept kzidane
Aug 10, 2014 at 22:46 comment added Luke Van In @Kareem Thanks for point that out. Updated the answer to cater for both scenarios, just in case it turns out to be useful to other readers.
Aug 10, 2014 at 22:45 history edited Luke Van In CC BY-SA 3.0
Added extra condition to cater for value being available but empty to display apology.
Aug 10, 2014 at 22:37 history edited Luke Van In CC BY-SA 3.0
[Edit removed during grace period]
Aug 10, 2014 at 18:52 comment added kzidane Perfect answer as usual except that the function that should be used to check for the existence of the parameter named q, in your example, should be isset() rather than empty() because q can be provided, but empty. In this case, I want to apologize instead of re-rendering the form.
Aug 10, 2014 at 18:30 vote accept kzidane
Aug 10, 2014 at 18:32
Aug 10, 2014 at 17:25 history edited Luke Van In CC BY-SA 3.0
Added quote from original question to better indicate actual answer.
Aug 10, 2014 at 16:28 history answered Luke Van In CC BY-SA 3.0