RE: [PHP] using html select as array

2002-04-25 Thread Maxim Maletsky \(PHPBeginner.com\)
Dame thing, no? Your SELECT name=language[]. You can see all those selected as an array. Now, add the text type and call it something different (ie; custom_lang). In the page, ? If(strlen($_GET['custom_lang'])) { // do insert of this } else { // loop the $_GET['Language']

Re: [PHP] using html select as array

2002-04-25 Thread Kevin Stone
You can't know the input type through PHP. You could use Javascript to determine the input type and pass that along with the array. However it may be easier just to store the text field as a separate variable, and knowing this, parse it into your languages array after both inputs have been