Jump to content

[SOLVED] multiselect form to array, post is displaying in url? strange


trampolinejoe

Recommended Posts

Hello,

I have a form that has some check boxes for example:

 

<form action="paymentMark.php" name="form">	
<input name='checkbutton[]' type='checkbox' value='1'> 
<input name='checkbutton[]' type='checkbox' value='2'> 
<input name='checkbutton[]' type='checkbox' value='3'>
</form>

 

Then on the next page paymentMark.php

	$checkbutton = array();
	$checkbutton = $_POST['checkbutton[]'];	
	print_r($checkbutton);

 

Nothing is showing in the array, and even more strangely, it is trying to post in the URL.

 

Here is a example:

paymentMark.php?checkbutton[]=1&Submit=Submit+Query

 

Why is this showing in the URL it normally dosnt  when you just post?

 

Any ideas.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.