[PHP] weird problem in php

2006-06-12 Thread weetat
Hi all , I have using php 4.3.2 and mysql database. I have a form which have select tag which have the value for example -New York. When use submit the form , i need to find the first occurence of - , i use strpos function as shown below : $country = $_POST['country']; $findme = '-';

Re: [PHP] weird problem in php

2006-06-12 Thread Dave Goodchild
On 12/06/06, weetat [EMAIL PROTECTED] wrote: Hi all , I have using php 4.3.2 and mysql database. I have a form which have select tag which have the value for example -New York. When use submit the form , i need to find the first occurence of - , i use strpos function as shown below :

Re: [PHP] weird problem in php

2006-06-12 Thread Rabin Vincent
On 6/12/06, weetat [EMAIL PROTECTED] wrote: I have a form which have select tag which have the value for example -New York. When use submit the form , i need to find the first occurence of - , i use strpos function as shown below : $country = $_POST['country']; $findme = '-'; $pos =