Method POST not working (GET works?)
Posted by: bugmenot (---.Red-88-6-174.staticIP.rima-tde.net)
Date: September 28, 2007 11:06PM

Hello guys,

I have been searching the net to find someone with similar problems but what I think it is happening might not be what it really does (so I can't find it).

I am quite newbie in PHP and have a problem in my Wamp server. I have created a web page that uses PHP which connects to an SQL table through ADOdb (the code is from ezRPG). When trying to get variables from the database through the Post method like this:

<b>Kills/Deaths:</b> <?=$player->kills?>/<?=$player->deaths?>

I get this:

Kills/Deaths: kills?>/deaths?>

But if I do it like this:

$query = $db->execute("update `items` set `status`='unequipped' where `id`=?", array($_GET['id']));

I get it Ok. I really don't know whats happening.

Thank you all, if you need more details I can provide them.
A simple link to another post/web explaining a bit how to solve it will be enough.

Best regards.


Options: ReplyQuote
Re: Method POST not working (GET works?)
Posted by: yfastud (---.cable.mindspring.com)
Date: September 29, 2007 12:24AM

Quote

<?=$player->kills?>/<?=$player->deaths?>

You need to use full tag <?php ... ?> if you didn't enable short_open_tag in wamp/apache2/bin/php.ini. Remember to restart server after any change.


Have fun,

[www.jlbn.net] (Basic Guide for WAMP and Add-ons)

Options: ReplyQuote
Re: Method POST not working (GET works?)
Posted by: bugmenot (---.Red-88-6-174.staticIP.rima-tde.net)
Date: September 29, 2007 01:02AM

wow, it was a really noobie question tongue sticking out smiley

it works great now

Thank you yfastud!! smiling smiley

Options: ReplyQuote
Re: Method POST not working (GET works?)
Posted by: yfastud (---.cable.mindspring.com)
Date: September 29, 2007 02:00PM

You're welcome!!!

And if you still need to have some other setup, feel free to visit my site anytime

Have fun,

[www.jlbn.net] (Basic Guide for WAMP and Add-ons)

Options: ReplyQuote


Sorry, only registered users may post in this forum.