Skip to content Skip to sidebar Skip to footer

Html Form Action Url Id To Equal Php Variable Fetched From A Table

Hi all im having a problem i simply want to submit a form and for that form to go to a page with the page id that is fetched from a table in my database, ive currently done this wi

Solution 1:

Create a hidden input and pass the topic id as its value

<inputtype="hidden"name="topic_id"value="<?phpecho$topic_id?>" >

When you submit the form you can access the topic id from the global variable $_POST

$topid_id = $_POST['topic_id'];

hope this help.

Post a Comment for "Html Form Action Url Id To Equal Php Variable Fetched From A Table"