Is there a way to set $_POST['var'] without using the field associated with the form (no type = 'hidden) and use only PHP. Something like
$_POST['name'] = "Denniss";
Is there any way to do this?
EDIT: Someone asked me to clarify something. So, for example, I have a page with a form on it. The form looks something like this.
<form method='post' action='next.php'> <input type='text' name='text' value='' /> <input type='submit' name='submit' value='Submit'/> </form>
After clicking "Submit" I want to redirect to next.php. Is there a way to set the variable $ _POST ['text'] to a different value? How to make this permanent, so when I click on another submit button (for example), $ _POST ['text'] will be what I set on next.php without using a hidden field.
Let me know if this is not yet clear and thanks for your help.
html post php
denniss Aug 05 '10 at 18:44 2010-08-05 18:44
source share