We all know this one:
function GeneratePicButton($url)
{printf("<INPUT TYPE=image SRC=$url NAME=submit></INPUT>");}
and this:
function GoBackButton($txt)
{printf("<FORM METHOD=POST>"); printf("<INPUT TYPE=button VALUE=$txt ONCLICK=self.history.back();> </INPUT></FORM>");}
but i can't combine them, and i can't find any code on the www.
This won't work:
function PicGoBackButton($url)
{printf("<FORM METHOD=POST>");
printf("<INPUT TYPE=image SRC=$url NAME=submit ONCLICK=self.history.back();></INPUT></FORM>");}
nor will this:
function PicGoBackButton($url)
{printf("<FORM METHOD=POST>");
printf("<INPUT TYPE=image SRC=$url NAME=submit></INPUT>");
printf("<INPUT TYPE=hidden ONCLICK=self.history.back();></INPUT></FORM>");}
This does refresh the page (without formvar$), sometimes returning to older versions of the webpage?! Suspect here is ONCLICK=self.history.back();
Anyway, i just want a GoBackButton with a picture, can someone help me with a solution?
Thanks for your time.
Pieter