[PHP] Re: what is wrong with my big array

2006-03-07 Thread Ross
get a parse error! $region_array = array('a' ='All of Scotland', 1 ='Aberdeen City Council', 2 ='Aberdeenshire Council', 3 ='AngusCouncil', 5 ='Argyll and Bute Council', 6 = 'Clackmannanshire Council', 9 ='Dumfries and Gallowalloway', 10 = 'Dundee City Council', 11 = 'East Ayrshire Council',

Re: [PHP] Re: what is wrong with my big array

2006-03-07 Thread Ray Hauge
On Tuesday 07 March 2006 08:08, Ross wrote: $region_array = array('a' ='All of Scotland', 1 ='Aberdeen City Council', 2 ='Aberdeenshire Council', 3 ='AngusCouncil', 5 ='Argyll and Bute Council', 6 = 'Clackmannanshire Council', 9 ='Dumfries and Gallowalloway', 10 = 'Dundee City Council', 11 =

[PHP] Re: what is wrong with my big array

2006-03-07 Thread Ross
Nice spot ray! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: what is wrong with my big array

2006-03-07 Thread Stut
Ross wrote: get a parse error! $region_array = array('a' ='All of Scotland', 1 ='Aberdeen City Council', 2 ='Aberdeenshire Council', 3 ='AngusCouncil', 5 ='Argyll and Bute Council', 6 = 'Clackmannanshire Council', 9 ='Dumfries and Gallowalloway', 10 = 'Dundee City Council', 11 = 'East

[PHP] Re: what is wrong with my big array

2006-03-07 Thread João Cândido de Souza Neto
I think that the error is in the line above that. Ross wrote: get a parse error! $region_array = array('a' ='All of Scotland', 1 ='Aberdeen City Council', 2 ='Aberdeenshire Council', 3 ='AngusCouncil', 5 ='Argyll and Bute Council', 6 = 'Clackmannanshire Council', 9 ='Dumfries and

Re: [PHP] Re: what is wrong with my big array

2006-03-07 Thread João Cândido de Souza Neto
You're Right. I don't saw that. Stut wrote: Ross wrote: get a parse error! $region_array = array('a' ='All of Scotland', 1 ='Aberdeen City Council', 2 ='Aberdeenshire Council', 3 ='AngusCouncil', 5 ='Argyll and Bute Council', 6 = 'Clackmannanshire Council', 9 ='Dumfries and Gallowalloway',

[PHP] Re: what is wrong?

2002-09-12 Thread lallous
try this: if (empty(trim($_POST[new_password1]))) { echo 'Empty!!!'; } Meltem Demirkus [EMAIL PROTECTED] wrote in message 001701c25a2c$4758d4a0$5583@hiborya">news:001701c25a2c$4758d4a0$5583@hiborya... Hi, I want to understand what is wrong with this code?I am trying to understand

[PHP] Re: what is wrong?

2002-09-12 Thread David Robley
In article 001701c25a2c$4758d4a0$5583@hiborya, mdemirkus@momentum- dmt.com says... Hi, I want to understand what is wrong with this code?I am trying to understand when an empty inputs come from form and I will then give a warning message.. if($_POST[new_password1] ==) echo empty

[PHP] Re: what is wrong?

2002-09-12 Thread Erwin
Meltem Demirkus wrote: Hi, I want to understand what is wrong with this code?I am trying to understand when an empty inputs come from form and I will then give a warning message.. if($_POST[new_password1] ==) echo empty input; And as final addition, you probably have to use

[PHP] Re: what is wrong?

2002-09-12 Thread lallous
I'ld also add isset() to avoid warnings too: if (isset($_POST['new_password1']) !empty(trim(isset($_POST['new_password1'] { echo i am not empty, you can do whatever; } else { echo i am empty! show error message; } Erwin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL