phpbar.de logo

Mailinglisten-Archive

[php] problem mit "action.options[action.selectedIndex]"

[php] problem mit "action.options[action.selectedIndex]"

Florin Buzesteanu flo_(at)_rom.deltaweb.de
Wed, 20 Dec 2000 17:53:58 +0100


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C06AA5.7683D580
Content-Type: text/plain;
	charset="iso-8859-1"

tach leutz,

ich habe folgendes problem und zwar im script unten das
"action.options[action.selectedIndex]" da es in der schleife ist sagt der
internetexplorer "action.option' ist Null oder kein objekt".
ich hoffe das mir jemand helfen kann.
danke


			$query = "select id, name, groesse, wspace, info,
downloadid, rate from $tabelle";
			$result = mysql_query($query,$conn);
			$num = mysql_numrows($result);
			for ($i = 0; $i < $num; $i++) {
			$row = mysql_fetch_array($result);

			echo "
			<tr>
				<td nowrap bgcolor=\"#03085C\">
					<div align=\"center\">
						<textarea name=\"infobox\"
cols=\"40\" rows=\"2\" readonly>$row[info]
</textarea> 
					</div>
				</td>
				<td nowrap bgcolor=\"#03085C\" width=\"60\">
					<div align=\"center\">
						<select class=\"drop\"
name=\"action\" 
	
onChange=\"location.href=action.options[action.selectedIndex].value\">
						<option selected>. : Action
: . </option>
						<option
value=\"action.php3?action=0\">Update</option>
						<option
value=\"action.php3?action=1\">Delete</option></select>
				</td>
			</tr>";
			}

------_=_NextPart_001_01C06AA5.7683D580
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">



problem mit =
"action.options[action.selectedIndex]"



tach leutz,

ich habe folgendes problem und zwar im script unten = das "action.options[action.selectedIndex]" da es in der = schleife ist sagt der internetexplorer "action.option' ist Null = oder kein objekt".

ich hoffe das mir jemand helfen kann.
danke


        =         =         $query =3D = "select id, name, groesse, wspace, info, downloadid, rate from = $tabelle";
        =         =         $result =3D = mysql_query($query,$conn);
        =         =         $num =3D = mysql_numrows($result);
        =         =         for ($i =3D = 0; $i < $num; $i++) {
        =         =         $row =3D = mysql_fetch_array($result);

        =         =         echo = "
        =         =         <tr>
        =         =         =         <td nowrap = bgcolor=3D\"#03085C\">
        =         =         =         =         <div = align=3D\"center\">
        =         =         =         =         =         <textarea = name=3D\"infobox\" cols=3D\"40\" = rows=3D\"2\" readonly>$row[info]   =         =         =         </textarea> =

        =         =         =         =         </div>
        =         =         =         </td>
        =         =         =         <td nowrap = bgcolor=3D\"#03085C\" width=3D\"60\">
        =         =         =         =         <div = align=3D\"center\">
        =         =         =         =         =         <select = class=3D\"drop\" name=3D\"action\"
        =         =         =         =         =         onChange=3D\"location.href=3Daction.options[action.selecte= dIndex].value\">
        =         =         =         =         =         <option = selected>. : Action : . </option>
        =         =         =         =         =         <option = value=3D\"action.php3?action=3D0\">Update</option>
        =         =         =         =         =         <option = value=3D\"action.php3?action=3D1\">Delete</option><= ;/select>
        =         =         =         </td>
        =         =         </tr>";
        =         =         }

------_=_NextPart_001_01C06AA5.7683D580--

php::bar PHP Wiki   -   Listenarchive