I can pass the form variables, that happens automatically when I click the submit button. But how do I add on/in other variables to the query string? I want to pass an ID number in the query string, so that I can delete some text (from database) that gets printed out. Here's (some of) my code.
<?php
$PS=$_SERVER['PHP_SELF'];
// Display the text of each joke in a paragraph
while($row=mysql_fetch_array($result))
?><P>
<FORM ACTION="<?php echo $PS;.'?jokeID='.echo $row['ID']; ?>" METHOD=GET>
<INPUT TYPE=SUBMIT NAME="deletejoke" VALUE="DELETE">
</FORM>
<?php
echo($row["JokeText"]);
}
?>
What I get in the address bar is this,
http://localhost/jokes.php?deletejoke=DELETE
How can I get this,
http://localhost/jokes.php?jokeID=19&deletejoke=DELETE
assuming $row["ID"] = 19, say.