I'm running a PHP script and continue to receive errors like:
Notice: Undefined variable: my_variable_name in C:\wamp\www\mypath\index.php on line 10
Notice: Undefined index: my_index C:\wamp\www\mypath\index.php on line 11
Line 10 …
If I define an array in PHP such as (I don't define its size):
$cart = array();
Do I simply add elements to it using the following?
$cart[] = 13;
$cart[] = "foo";
$cart[] = obj;
Don't arrays in PHP have an add method, for …
It seems pretty simple but I can't find a good way to do it.
Say in the first page I create a variable
$myVariable = "Some text";
And the form's action for that page is "Page2.php". So in Page2.php, …