J
|
Jane 3/12/2007 |
Hi, function ListOnLoad() { //select ID of logged user global $conn; $str = "select * from UsersTable where UserName='".$_SESSION["UserID"]."'"; $rs = db_query($str,$conn); $data = db_fetch_array($rs); //redirect to the Edit page ?><script> window.location='./users_edit.php?editid1=<?php echo $data["IDField"]?>'; </script><?php exit(); }
|
L
|
Lorenbond 10/10/2008 |
Using the classified template I was able to make this work with a couple of mods. |
L
|
Lorenbond 10/29/2008 |
Using the classified template I was able to make this work with a couple of mods. //select ID of logged user global $conn; $str = "select * from register where username='".$_SESSION["UserID"]."'"; $rs = db_query($str,$conn); $data = db_fetch_array($rs); // redirect to the Edit page ?><script> window.location='./MyProfile_edit.php?editid1=<?php echo $data["password"]?>&editid2=<?php echo $data["username"]?>'; </script><?php exit();
|
![]() |
Sergey Kornilov admin 10/30/2008 |
You need to go to HTML source of the page to see what code it generates. This way you can tell if redirect code is correct. |