Staredit Network

Staredit Network -> Miscellaneous -> Passing variables without user input
Report, edit, etc...Posted by Shmeeps on 2005-04-02 at 23:06:18
Well, dunno if anyone here can help me (Probably IP or Yoshi can) but is there a way to pass a variable to a new page using a form, but without have the user put anything. I'd assume you could make the link in the form be like "php.php?item=1" to specify it, but how would you get it down? Use $_GET? If it's a superglobal thing, then I have no idea, since I've never used 'em, I usually use sessions.
Report, edit, etc...Posted by IsolatedPurity on 2005-04-02 at 23:09:24
<input type="hidden" value="{$myvariable}" name="whatever">

or
<form ... ACTION="?p=topic&whatever={$myvariable}">


$_GET['whatever'] for urls...
$_POST['whatever'] for form input
Report, edit, etc...Posted by Shmeeps on 2005-04-02 at 23:13:26
Ah, ty very much.
Next Page (1)