On Wed, 2009-02-18 at 10:21 -0600, Shawn McKenzie wrote:
> Thodoris wrote:
> >
> >> I've had a bit of a problem with a function I'm using for a form.
> >> Essentially, the function looks like this:
> >>
> >> function addEvent($values = Array('name' => '', 'venue' => '',
> >> 'description' => '', '
Thodoris wrote:
>
>> I've had a bit of a problem with a function I'm using for a form.
>> Essentially, the function looks like this:
>>
>> function addEvent($values = Array('name' => '', 'venue' => '',
>> 'description' => '', 'errors' => Array()))
>> {
>> // code here displays the form
>> }
>>
I've had a bit of a problem with a function I'm using for a form.
Essentially, the function looks like this:
function addEvent($values = Array('name' => '', 'venue' => '',
'description' => '', 'errors' => Array()))
{
// code here displays the form
}
The function is used to both display an
On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan
wrote:
> I've had a bit of a problem with a function I'm using for a form.
> Essentially, the function looks like this:
>
> function addEvent($values = Array('name' => '', 'venue' => '',
> 'description' => '', 'errors' => Array()))
> {
>// code
Andrew Ballard wrote:
> On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan
> wrote:
>> I've had a bit of a problem with a function I'm using for a form.
>> Essentially, the function looks like this:
>>
>> function addEvent($values = Array('name' => '', 'venue' => '',
>> 'description' => '', 'errors'
On Tue, 2009-02-17 at 20:35 +, Lewis Wright wrote:
> What about:
>
>
> function addEvent($values='')
> {
> !is_array($values) && $values = Array('name' => '', 'venue' => '',
> 'description' =>'',
> 'errors' => Array());
>
> //rest of the code
>
> }
>
> It's nice and sort.
>
> 2009/2/17 A
What about:
function addEvent($values='')
{
!is_array($values) && $values = Array('name' => '', 'venue' => '',
'description' =>'',
'errors' => Array());
//rest of the code
}
It's nice and sort.
2009/2/17 Ashley Sheridan :
> On Tue, 2009-02-17 at 15:21 -0500, Andrew Ballard wrote:
>> On Tue,
On Tue, 2009-02-17 at 15:21 -0500, Andrew Ballard wrote:
> On Tue, Feb 17, 2009 at 3:29 PM, Ashley Sheridan
> wrote:
> > On Tue, 2009-02-17 at 15:13 -0500, Bastien Koert wrote:
> >> On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan
> >> wrote:
> >>
> >> > I've had a bit of a problem with a function
On Tue, 2009-02-17 at 15:19 -0500, Andrew Ballard wrote:
> On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan
> wrote:
> > I've had a bit of a problem with a function I'm using for a form.
> > Essentially, the function looks like this:
> >
> > function addEvent($values = Array('name' => '', 'venue'
On Tue, Feb 17, 2009 at 3:29 PM, Ashley Sheridan
wrote:
> On Tue, 2009-02-17 at 15:13 -0500, Bastien Koert wrote:
>> On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan
>> wrote:
>>
>> > I've had a bit of a problem with a function I'm using for a form.
>> > Essentially, the function looks like this:
On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan
wrote:
> I've had a bit of a problem with a function I'm using for a form.
> Essentially, the function looks like this:
>
> function addEvent($values = Array('name' => '', 'venue' => '',
> 'description' => '', 'errors' => Array()))
> {
>// code
On Tue, 2009-02-17 at 15:13 -0500, Bastien Koert wrote:
> On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan
> wrote:
>
> > I've had a bit of a problem with a function I'm using for a form.
> > Essentially, the function looks like this:
> >
> > function addEvent($values = Array('name' => '', 'venue'
On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan
wrote:
> I've had a bit of a problem with a function I'm using for a form.
> Essentially, the function looks like this:
>
> function addEvent($values = Array('name' => '', 'venue' => '',
> 'description' => '', 'errors' => Array()))
> {
>// code
13 matches
Mail list logo