Mailto Prob
Posted: Sat Aug 30, 2003 2:35 pm
Hello
Im currently having a bit of an issue with the mailto function. On my site I have an online catalogue which lists 25 items per page an I want to have a link at the end of each row enabling the user to email details of the item to someone.
This works fine, however a problem arises as the description for items can be up 300 chars long so the parsed HTML returned will be will have the description twice. This obviously increases the size of each page greatly.
What I wish to have is a php function which is called when the user clicks the link ( being passed the item no ) which then queries the db to get the description and then runs the mailto function. I dont want to use a self made mailling screen.
Any ideas
Leo
Im currently having a bit of an issue with the mailto function. On my site I have an online catalogue which lists 25 items per page an I want to have a link at the end of each row enabling the user to email details of the item to someone.
Code: Select all
echo "<td><a href=mailto:subject=$Subject&body=$Description>Email this item</a>";What I wish to have is a php function which is called when the user clicks the link ( being passed the item no ) which then queries the db to get the description and then runs the mailto function. I dont want to use a self made mailling screen.
Any ideas
Leo