You are here: Re: Retrieve Checked values in php « PHP Programming Language « IT news, forums, messages
Re: Retrieve Checked values in php

Posted by Karl Groves on 03/23/06 23:30

niftyhawk@gmail.com wrote in news:1143148573.335848.147620
@i40g2000cwc.googlegroups.com:

> Hi All,
>
> I have a php page say "abc.php" generating the following HTML. I am
> posting the form action to another php page say "TestCheckbox.php".
>
> How do I retrieve in "TestCheckbox.php" which checkboxes are checked in
> "abc.php"?
>
> abc.php
> ========
>
> <form action="TestCheckbox.php" method="POST" name="TestCheck">
> <INPUT Type="CHECKBOX" Name="RecordNumber" Value="100">
> <INPUT Type="CHECKBOX" Name="RecordNumber" Value="200">
> <INPUT Type="CHECKBOX" Name="RecordNumber" Value="300">
> <INPUT Type="CHECKBOX" Name="RecordNumber" Value="400">
> <INPUT Type="CHECKBOX" Name="RecordNumber" Value="500">
> <input type=submit name="submit">
> </form>
>

Use:
Name="RecordNumber[]"
This will insert the values into an array.


--
Karl Groves
http://karlcore.com
http://chevelle.karlcore.com

Accessibility Discussion List: http://smallerurl.com/?id=6p764du

 

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

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