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']
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
2 matches
Mail list logo