Page 1 of 1

POST not posting

Posted: Fri Oct 24, 2008 2:30 pm
by petethepirate
I have a POST that isnt posting any form data to the page that it calls. Can anyone see why? The onclick has also tried ths.form.submin()


echo '<form name="default" action="wepage.php'" method="post">'."\n";
echo '<input type ="checkbox" name="nMakedefault" value="vMakedefault" onclick="document.forms[\'default\'].submit()">'."\n";
echo '</FORM>'."\n";

Re: POST not posting

Posted: Fri Oct 24, 2008 2:55 pm
by califdon
I'm afraid I can't understand your post. If you want some help, please try again to explain what you want.

Re: POST not posting

Posted: Fri Oct 24, 2008 6:46 pm
by aceconcepts
How are you retrieving the POST data?

Re: POST not posting

Posted: Sat Oct 25, 2008 12:21 pm
by oscardog
The information is sent to 'wepage.php' (Sure its not meant to be webpage.php?)

You must then on that page use

Code: Select all

$_POST['input'];
to retrieve the data :)

Re: POST not posting

Posted: Sat Oct 25, 2008 12:55 pm
by califdon

Code: Select all

$_POST['[color=#FF0000]nMakedefault[/color]'];

Re: POST not posting

Posted: Sat Oct 25, 2008 1:47 pm
by JAB Creations
Put the following PHP code on the page the form's action's value in your original post points to.

Code: Select all

<?php
print_r($_POST);
?>