when we click any form it will direct to the same page..(say form.php, hich i forgot to mention)
now,what i want is..when i click on any of the links(which would direct me to same page login.php) ,i want to display the value in the link on the new page i.e on form.php....as i mentioned in my previous postCode:<html> <head><title>Your Page Title</title></head> <body> <?php session_start(); $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = 'sister'; $dbname = 'login'; echo "hello"; // make a connection to mysql here $conn = mysql_connect ($dbhost, $dbuser, $dbpass); if(!$conn) { die('could not connect: ' . mysql_error()); } else echo "<BR>connected"; //select database to use $conn = mysql_select_db ($dbname); echo "<BR>connected to db" ; $result = mysql_query("SELECT taxtype.taxtypeid,taxname,taxdesc,group_concat(formno),group_concat(formno2),actid,taxtype.status as formnum FROM taxtype,taxform where taxtype.taxtypeid=taxform.taxtypeid group by taxtypeid")or die(mysql_error()); $num_rows = mysql_num_rows($result); echo "<BR>" . $num_rows; print "<table width=500 border=1>\n"; print "<tr>\n"; print "\t<td><font face=arial size=4/>S.No.</font></td>\n"; print "\t<td><font face=arial size=4/>Tax Name</font></td\n"; print "\t<td><font face=arial size=4/>Tax Description</font></td\n"; print "\t<td><font face=arial size=4/>Return-cum-challan(TIN/RC No. mandatory):</font></td\n"; print "\t<td><font face=arial size=4/>Challan No (TIN/RC No. not mandatory):</font></td\n"; print "\t<td><font face=arial size=4/>Act ID:</font></td\n"; print "\t<td><font face=arial size=4/>Status</font></td\n"; print "</tr>\n"; while($row = mysql_fetch_row($result)) { //echo "<BR>" . $row[0] . " " . $row[1] . " " . $row[2] ; print "<tr>\n"; print "\t<td><font face=arial size=2/>$row[0]</font></td>\n"; print "\t<td><font face=arial size=2/>$row[1]</font></td>\n"; print "\t<td><font face=arial size=2/>$row[2]</font></td>\n"; $forms=explode(",",$row[3]); $size= count($forms); echo "<BR>" . $size; print "\t<td>"; for ($i=0;$i<$size;$i++) { print "\t<font face=arial size=2/> <a href=\"http://localhost/form.php\" target=\"_blank\">$forms[$i]</a> </font>\n"; } print "</td>"; $forms1=explode(",",$row[4]); $size= count($forms1); echo "<BR>" . $size; print "\t<td>"; for ($i=0;$i<$size;$i++) { print "\t<font face=arial size=2/> <a href=\"http://localhost/.php\" target=\"_blank\">$forms1[$i]</a> </font>\n"; } print "</td>"; print "\t<td><font face=arial size=2/>$row[5]</font></td>\n"; print "\t<td><font face=arial size=2/>$row[6]</font></td>\n"; print "</tr>\n"; } print "</table>\n"; ?> ADD A NEW TAX <a href="http://localhost/newtax.php" target="_blank">NEW TAX</a> </body> </html>
i tried using session variable in the page where the above code is present ..
but how do i store the value of the link i have clicked ..?
and moreover i didnt understnd the wrapping concept which u have suggested.



Reply With Quote

Bookmarks