I have a php script which adds rows to a MySQL database, when I set variables in the script it works fine. As is the norm I want values to be entered via an html page. To test that I understood I could run my php script with arguments to simulate the $_POST values, similar to: http://www.website.com/php/insert_client3.php?nickname='Bob'&emailaddress='bob@yahoo'
The script beginning is:
<?php
print_r($_POST);
var_dump($_POST);
// check for required fields
$nickname = $_POST['nickname'];
$emailaddress = $_POST['emailaddress'];
print_r and var_dump are returning empty arrays, is my approach wrong or syntax? I'm trying to build up html entry of data by starting with the database and working back Any help appreciated... Thanks