$_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 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

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 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.