When you're passing variables to PHP through the GET method either in a form or just adding stuff after a hyperlink, that's what the question mark is used for. If you want otherwise you have to use a form and use the POST method. If you're doing this for hyperlinks, then you'd have to use class definitions in CSS to make the buttons look like links, for example:Originally Posted by diffusionx
Code:CSS: .linkbutton { background: #fff; border: 1px solid #fff; color: #069; text-decoration: underline; }That would be a pain in the ass for each link so what I usually do is if my GET variable is empty or invalid, just redirect to the main page.PHP Code:
<?php
$poop = $_POST['butt'];
/* stuff to do with the variable here */
?>
<!-- EACH LINK LOOKS LIKE THIS: -->
<form action="goatse.php" method="post"><input type="hidden" name="butt" value="link1" /><input class="linkbutton" type="submit" name="submit" value="Link #1" /></form>
Bookmarks