Hi,
Is there any way you can post a variable from a URL?
e.g, if you look at my code below, every row in my table contains a column with a link:
\t\t<td><a href='find_action.php?DATENUM=$col_value'>$col_value</a></td>\n
I want to pass the DATENUM variable to find_action.php. Is it possible to post this without using a form? Otherwise if I am to use a form, how would I achive this?
Thanks in advance.
------------------------------------
There's no place like 127.0.0.1
------------------------------------
Is there any way you can post a variable from a URL?
e.g, if you look at my code below, every row in my table contains a column with a link:
\t\t<td><a href='find_action.php?DATENUM=$col_value'>$col_value</a></td>\n
I want to pass the DATENUM variable to find_action.php. Is it possible to post this without using a form? Otherwise if I am to use a form, how would I achive this?
Thanks in advance.
Code:
$rownum = 1;
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
if (IsEven($rownum) == 1)
{
$colour = "#FFFF99";
} else {
$colour = "#FFFFFF";
}
echo "\t<tr bgcolor=$colour>\n";
echo "<td><span class='style3'><b>$rownum</b></span></td>";
foreach ($line as $col_name=>$col_value) {
if ($col_name == "DATENUM") {
echo "\t\t<td><a href='find_action.php?DATENUM=$col_value'>$col_value</a></td>\n";
}
else {
echo "\t\t<td><span class='style3'>$col_value</span></td>\n";
}
}
echo "\t</tr>\n";
$rownum++;
}
}
echo "</table>\n";
echo "</div>";
}
------------------------------------
There's no place like 127.0.0.1
------------------------------------