It's working.. Thanks a lot ----- Original Message ----- From: "Jason Sheets" <[EMAIL PROTECTED]> To: "phpu" <[EMAIL PROTECTED]> Sent: Sunday, September 28, 2003 6:55 PM Subject: Re: [PHP] checked / unchecked
> With a conditional, note that if you have more than one picture your > current setup is not going to work. > > if ($_REQUEST['modify_picture'] == 'check') { > // do update code here > } > > If you will ever have more than one picture at a time you should > probably use an array instead of just one variable for modify_picture. > > Jason > > phpu wrote: > > >Hi > >I have this form: > > > > <form action="modify.php" method="POST" enctype="multipart/form-data"> > ><? > >$sql = "SELECT * FROM table Where id_cat=".$_POST['id_cat']; > >$result = mysql_query($sql); > >while ($row=mysql_fetch_array($result)) > >{ > > > >print 'Category<input type="text" name="nume_categorie" value="'.$row['category_name'].'"><br>Picture > ><input name="modify_picture" type="checkbox" id="modify_picture" value="check">'; > >} > >?> > ><input name="submit" type="submit" value="Modify"> > ></form> > > > > > >All i wanna do is to modify picture only if the modify_picture checkbox is checked. How can i do that? > > > >thanks > > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php