I have some problems about my project:
The user can add or remove symbols from their list, and can see
the list result immediately on the same page once they did add or
remove. So my Form Action has to be $PHP_SELF. But I want to
link to another page "trading.php" and pass the value
of $symbol to it once the user click the "trade" image button.
- How to link to another page?
- How to pass the value of $symbol?
Thanks!
[/B]
-------------------monitor.php-------------------
echo("<form action=\"".$_SERVER['$PHP_SELF']."\" method=\"post\">");
echo("<table>");
while ($rec = mysql_fetch_array($result)){
....
$symbol=$rec["symbol"];
echo("<tr><td>".$symbol."</td>");
echo("<td><input type=\"image\" src=\"arrow1.gif\" name=\"trade\" value=\"".$rec["symbol"]."\"></form></td><tr>");
}
echo("</table>");
echo("<BR>Symbol:
<input type=\"text\" name=\"symbol\">
<input type=\"submit\" name=\"addstock\" value=\"Add Stock\">
<input type=\"submit\" name=\"removestock\" value=\"Remove Stock\">
");
echo("</form>");