You are here: Re: Approving Items « PHP Programming Language « IT news, forums, messages
Re: Approving Items

Posted by Pedro Graca on 10/22/06 20:17

James54321 wrote:
> here is my code:
> <?php

<snip>

> print "\n\t<td><center><input type=\"radio\" name=\"$ID\"
> value=\"Approve\" /></center></td>";

Make that

print "\n\t<td><center><input type=\"radio\" name=\"id[$ID]\"
value=\"Approve\" /></center></td>";
// ------------------------------------------------------^^^---^

<snip>

> if (isset($_POST['submit'])) {
>
> //this is where the code i need should go :)

forach ($_POST['id'] as $key => $value) {
// $key is now the ID from the database (unless the client lied to you)
// $value is the chosen option (unless the client lied to you)
// use them as you see fit
}

> // close connection
> mysql_close($connection);
> }
>
> ?>

--
I (almost) never check the dodgeit address.
If you *really* need to mail me, use the address in the Reply-To
header with a message in *plain* *text* *without* *attachments*.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация