$_POST via href?
Moderator: General Moderators
$_POST via href?
Is it possible to not use a form button with $_POST but instead just a text link?
Not possible in any easy wasy that I know of, unless using $_GET is an option;
page.php:
Code: Select all
<a href="page.php?input=value+of+input">page.php</a>Code: Select all
<?php
echo $_GET['input']; // Outputs value of the URL-variable called 'input' (value+of+input in this case)
?>- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA