Jump to content

Form Varible


emediastudios

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.