...

View Full Version : Notice: Undefined offset: 1



1andyw
08-19-2007, 02:00 AM
Hi,

I am collecting data within a form. The select option is generated by a php/mysql loop:

("<option>" . $row['provId'] .":".$row['provname'] ."</option>" )

I am trying to split this data with my php process file:


list($provId,$provname) = explode(':',$_POST['provider']);

This won't work in IE and returns a $provId value of '0' every time along with the notice:
"Undefined offset: 1"


Thanks,

Andy

CFMaBiSmAd
08-19-2007, 02:13 AM
You need a value="..." parameter, otherwise nothing is sent to the server - http://w3schools.com/tags/tag_option.asp



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum