$_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

Hi

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 7 Pro 32bit) (Wampserver 3.0.6 32bit)
<Apache 2.4.23/2.2.31> <PHP 7.1.2/7.0.16/5.6.28/5.5.38/5.4.45/5.3.29> <MySQL 5.7.10/5.6.17/5.5.28>
<MariaDB 10.1.21> <phpMyAdmin4.7.5> <MySQL Workbench 6.3.6.511>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin -- WAMPServer alternate Repo
-?-?-?- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -?-?-?-

Options: ReplyQuote


Sorry, only registered users may post in this forum.