I have a HTML with a form with a table (generated from a mysql database) which contains a checkbox called 'rowid' in each table row and a value of the appropriate rowid from the database.
I am passing the html form data to a php page and want to know how to retrieve the various rowids passed please.
Retreiving HTML items with PHP
Moderator: General Moderators
Re: Retreiving HTML items with PHP
Code: Select all
<form method='POST' action='yourPHPpage.php'> <!--- Alternatively method='GET' -->Code: Select all
$rowid = $_POST['rowid'];
// or alternately $_GET['rowid']Re: Retreiving HTML items with PHP
Many thanks for your reply. How can i then print out all the rowids passed please?Weiry wrote:andCode: Select all
<form method='POST' action='yourPHPpage.php'> <!--- Alternatively method='GET' -->
Code: Select all
$rowid = $_POST['rowid']; // or alternately $_GET['rowid']
-
Marinusjvv
- Forum Commoner
- Posts: 29
- Joined: Wed Dec 02, 2009 5:59 am
Re: Retreiving HTML items with PHP
echo $rowid;
Or am i missing something?
Or am i missing something?