Variables not retaining values
| From: | Anne Shroeder | Date: | Sun, 07 Nov 2004 00:16:11 +0000 |
| Subject: | Variables not retaining values | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-24925@lists.php.net to get a copy of this message | ||
A very kind soul helped me a few months back with the problem of variables
not being passed through forms (due to a setting in php.ini that the web
hosting service will not change). Solution was to refer to the variable in
the receiving page as $_POST["variablename"]
That worked great! But now I have a problem with a slightly different
flavor. I want to call a page that passes a variable through (in this case
id) - I've tried everything to get the receiving page to recognize the
variable, but it always comes out blank. Example:
I want to delete an item:
<A HREF=keywords_delete_ask.php?id=$keywordid>DELETE</A>
And the item I've selected has ID=145. The URL tells me that I've gone to
keywords_delete_ask.php?id=145
Yet the value of id is most definitely not passed through. This is probably
a very simple fix, but I am at my wits end.
Anne