POST not posting

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
petethepirate
Forum Newbie
Posts: 10
Joined: Sat Oct 04, 2008 5:33 pm

POST not posting

Post 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";
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: POST not posting

Post by califdon »

I'm afraid I can't understand your post. If you want some help, please try again to explain what you want.
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: POST not posting

Post by aceconcepts »

How are you retrieving the POST data?
oscardog
Forum Contributor
Posts: 245
Joined: Thu Oct 23, 2008 4:43 pm

Re: POST not posting

Post 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 :)
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: POST not posting

Post by califdon »

Code: Select all

$_POST['[color=#FF0000]nMakedefault[/color]'];
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: POST not posting

Post 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);
?>
Post Reply