proctk Posted August 22, 2007 Share Posted August 22, 2007 hi when the below is clicked i want it to trigger some code at the top of the page. I code do it by passing a value through the url and using isset. I want to do it without passing a value through the url <a class="mailText" href="readmessage.php?m=<?php echo $sentMessages['message_id']; ?>"><?php echo $sentMessages['subject']; ?></a> Quote Link to comment https://forums.phpfreaks.com/topic/66263-link-trigger-code/ Share on other sites More sharing options...
tibberous Posted August 23, 2007 Share Posted August 23, 2007 Use mod rewrite. Quote Link to comment https://forums.phpfreaks.com/topic/66263-link-trigger-code/#findComment-331459 Share on other sites More sharing options...
proctk Posted August 23, 2007 Author Share Posted August 23, 2007 code you give an example Quote Link to comment https://forums.phpfreaks.com/topic/66263-link-trigger-code/#findComment-331469 Share on other sites More sharing options...
Fadion Posted August 23, 2007 Share Posted August 23, 2007 U can find a cheat sheet for mod_rewrite here. About what u need to do, url variables are a very good way and i cant see to find a reason why not use them. If you really have the need for such a thing then consider using ajax. Quote Link to comment https://forums.phpfreaks.com/topic/66263-link-trigger-code/#findComment-331513 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.