Passing data between pages in PHP/HTML
Posted: Mon Feb 17, 2003 12:19 pm
I am new to PHP development and I have run into a problem with passing data between pages.
on one page I have the code :-
print "<td>";
print "<form method=\"post\" action=\"delete.php?deleteid=100\">";
print "<input type=\"submit\" value=\"DELETE\">";
print "</form></td>";
in delete.php I have the following code:-
print $deleteid;
I just wanted to print the data to see if I am passing it correctly. I get the following error:-
Notice: Undefined variable: deleteid in C:\Inetpub\wwwcintrainc\delete.php on line 14
I though I had this correct but no matter what I try I cannot get the data to appear in the delete.php page.
WHAT AM I DOING WRONG???????
on one page I have the code :-
print "<td>";
print "<form method=\"post\" action=\"delete.php?deleteid=100\">";
print "<input type=\"submit\" value=\"DELETE\">";
print "</form></td>";
in delete.php I have the following code:-
print $deleteid;
I just wanted to print the data to see if I am passing it correctly. I get the following error:-
Notice: Undefined variable: deleteid in C:\Inetpub\wwwcintrainc\delete.php on line 14
I though I had this correct but no matter what I try I cannot get the data to appear in the delete.php page.
WHAT AM I DOING WRONG???????