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

<input type="hidden" name="topic_id" value="<?php  echo $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"