Is there a way to set a $_POST['var']
without using form related field (no type='hidden') and using only PHP.
Something like
$_POST['name'] = "Denniss";
Is there a way to do this?
EDIT: Someone asked me for some elaboration on this. So for example, I have 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>
Once the submit button is clicked, I will get redirected to next.php. Is there a way for me to set the $_POST['text'] variable to another value? How do I make this persistent so that when I click on another submit button (for example) the $_POST['text'] will be what I set on next.php without using a hidden field.
Let me know if this is still not clear and thank you for your help.