$_GET works OK, but $POST not working
Posted by: neanderthal (---.tampabay.res.rr.com)
Date: June 28, 2017 07:04PM

PHP version 7.0.0
php MyAdmin Version: 4.7.0

I have two issues:

1. When I submit a form using $_GET, the data base works fine, but creates multiple rows with the same information

2. When I use $_POST, I get the message "Notice: Undefined variable: username in C:\wamp\www\NeptuneLogin\connection3.php on line 36

The only changes I am doing to the program is substituting $_POST for $_GET.

Thank you,

Options: ReplyQuote
Re: $_GET works OK, but $POST not working
Posted by: RiggsFolly (Moderator)
Date: June 29, 2017 09:58AM


This sounds very much like a coding issue and nothing to do with WAMPServer itself.

We do not suppost the code you write in PHP, only the environment.

Please remember that PHP7 is very different to previous versions of PHP and therefore you should look at the Migration Notes

Also it is impossible to to debug code without being able to see it.

(Windows 10 Pro 64bit) (Wampserver 3.1.3 32bit & 64bit)
<Apache 2.4.29/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.39/5.5.28>
<MariaDB 10.2.14> <phpMyAdmin4.8.1> <MySQL Workbench 6.3.10>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote

Sorry, only registered users may post in this forum.