| 
	
 | 
 Posted by Jerry Stuckle on 07/22/05 00:35 
JamesB wrote: 
> "Marian Heddesheimer" <080705.8.nolink@spamgourmet.com> wrote in message 
> news:5rpud15e4178u9bmmfs124ctgv5nqprg5i@4ax.com... 
>  
>>On Thu, 21 Jul 2005 10:11:01 +0100, JamesB wrote: 
>> 
>> 
>>>update the db. How do I know what my POST fields are and how many in the 
>> 
>>print_r($_POST); 
>> 
>  
>  
> Thanks for that - I seem to be doing something not quite right though! As a 
> test, I put a simple html form in a page: 
>  
> <form name="form2" method="post" action="updateusers.php"> 
>   <input type="checkbox" name="checkbox" value="checkbox"> 
>   <input type="checkbox" name="checkbox2" value="checkbox"> 
>   <input type="submit" name="Submit" value="Submit"> 
> </form> 
>  
> on the updateusers.php page I put the command you gave, but all I get is: 
>  
> Array 
> ( 
>     [Submit] => Submit 
> )And not the name of the checkboxes.Same occurs with my php-built table of 
> checkboxes and text fields (but I figure to get it working on something 
> simple first...)James 
>  
>  
 
James, 
 
You'll only get the checkboxes back if they are actually checked. 
 
Try checking one (or both) of the checkboxes before clicking on Submit. 
 
 
--  
================== 
Remove the "x" from my email address 
Jerry Stuckle 
JDS Computer Training Corp. 
jstucklex@attglobal.net 
==================
 
  
Navigation:
[Reply to this message] 
 |