|
Answer» I am trying to create a back button within a simple perl script.
PRINT "";
doesn't work. Please can some one help?Have you made any attempt to write the javascript function, "goBack()"?No, I have never used java script. My limit has been CGI & Perl by Mike McGrath. SorryOkay, well you are DEFINITELY trying to call a javascript (or VBScript) function there. I think you mean
Code: [Select]<input type="button" value="Back" onclick="history.back()" />but please read >this article< and have a think about whether you really want to do this. I've never seen the benefit, personally.Thank you. I have managed to make the back link work, but not the button.
print"Back[/url]";
I intend using this when picking up errors while validating entries on a 'Contact us' imput form. Thanks for your patience. I am a rank outsider and help is really appreciated. While not complete the contact form can be seen at www.gradedseconds.co.uk
Thank you againIf you can point me to a page with the non-functioning back button on it, I'll debug it for you.The non functioning back button is in a perl CGI script which is called from a form. I have tried a pair of \'s with the code and was only able to get the link to work (not the button)
The page with the form now works, checking if there is input on each required box.
The page with the Contact form MAY be found at
http://millie.pobox.co.uk/html/contactuso.html
I can email the script if you can tell me how.
(I must admit that for a BEGINNER, I am quite pleased with the result so far. But like all things there is always room for improvement!)You could perhaps post the perl script that should create the button. Of course this would not work:
Code: [Select]print "<input type="button" value="Back" onclick="javascript:history.back(1);" />";but this should:
Code: [Select]print "<input type='button' value='Back' onclick='javascript:history.back(1);' />";So near, but so far. Thank you for your help, it works now.
Regards Ian No problem!
|