Forum Moderators: coopster
I am new to php and i have encountered a problem whose solution might be very obvious to you :[smilestopper])
I have the following line in one of the pages I made:
echo("<A HREF=$PHP_SELF?deleterecord=$recordid>" ."Delete this record</A>"."</li>"[smilestopper]);
($recordid is the unique id of a record i have in a mysql table)
When I load the page and choose to delete from one of the links the page reloads but the record is not deleted as it should be from the code I have at the beginning of the page. The whole problem, i think, is that the value is not passed when the page is reloaded, which i have seen by adding at the beginning the command
echo($deleterecord);
which prints nothing as it should if the value had passed.
I have tried not using $PHP_SELF and instead the link to another page i made but the value is still not passed.
can anybody offer some advice?