![]() |
Sergey Kornilov admin 3/7/2006 |
Ian, function ListOnLoad($strSQL) { if (!isset($_SESSION["AuctionDetail_masterkey"])){ ?> <script> window.location='./Auction_list.php'; </script> <?php exit(); } } |
I
|
ipreedy author 3/7/2006 |
Hi Serg, |
T
|
thesofa 9/4/2006 |
Ian, Redirect option don't work for ListOnLoad event. You can do it using JavaScript. See my example below:
|
J
|
Jane 9/5/2006 |
Hi, echo "<div align=left><hr width=300 noshade size=1></div>";
echo "<a href = \"menu.php\">MENU</a> |
T
|
thesofa 9/5/2006 |
I am sorry to re-awaken this dormant thread, I have a similar problem. I too wish to avoid the list page and jump straight to the Add New Record page. SO I tried the code above, thank you, it worked well. However, I have yet to find a way out of the code, back to the main menu. I see Ian had some code to check for the existance of a record masterkey before the code was called. I need to be able to go straight to the add record page, add one or more records, then return to the main menu. What would you suggest, should I put another button on the page, or can I do it with an event?
|
J
|
Jane 9/6/2006 |
George, function AddOnLoad() { echo "<a href=\"menu.php\">menu</a>"; } |
T
|
thesofa 9/6/2006 |
George, if you want to add your code to AddOnLoad event you can use following code:
|