emediastudios Posted September 23, 2007 Share Posted September 23, 2007 Hi everyone! I'll try to explain this in simple words. I have a site im working on that lists properties with various photos and details that are drawn from an sql database.(no problems) This show records page shows all properties and a few details with the option to see more about any particular property. This link then takes you to a full details page that uses form varibles to populate the page, (no problem) The problem is my client wants a add to favorite / shortlist link that lets him go back to this page and the selected property. I did some code but does not work. when you go back to that same page directly it doesnt carry the form varibles and has no content. fav.js // Bookmark this page // copyright 12th February 2005, 21st June 2006 // Stephen Chapman, http://javascript.about.com // Updated for Opera 9 // You have permission to copy and use this javascript provided that // the copyright notice is included with the script var chr = 'CTRL-D'; var agt=navigator.userAgent.toLowerCase(); if(agt.substr(agt.indexOf('opera')+6,1) < 9) chr = 'CTRL-T'; if (window.external) document.write('<a href="javascript:window.external.AddFavorite(self.location,document.title)"><img src="images/favourites.png" alt="add to favorites" border="0" /><\/a>'); else document.write('Press '+chr+' to bookmark this page.'); and this is my link in my page <script type="text/javascript" src="favlink.js"> </script> Link to comment https://forums.phpfreaks.com/topic/70334-form-varible/ Share on other sites More sharing options...
fenway Posted September 24, 2007 Share Posted September 24, 2007 This really isn't a mysql question... if there is POST data, you'll need to re-post it or pull it from somewhere else. Link to comment https://forums.phpfreaks.com/topic/70334-form-varible/#findComment-354120 Share on other sites More sharing options...
emediastudios Posted September 25, 2007 Author Share Posted September 25, 2007 What would be the easiest way to re post it or pull it? Thanks Link to comment https://forums.phpfreaks.com/topic/70334-form-varible/#findComment-354840 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.