Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Not sure if possible?

by $h4X4_|=73}{ (Monk)
on Jul 08, 2016 at 09:05 UTC ( [id://1167448]=note: print w/replies, xml ) Need Help??


in reply to Not sure if possible?

I was going to mention CGI Redirect, but thats way more than what you need.
For this script just add a simple link back to the starting script.

<a href="Calculator.html" target="_self">Back to Calculator</a>
If you want it to look like a button there are a few CSS and other HTML tags that can be used to give the effect and its easy to add a CSS class to the link above.
Update: to add the link in the quotes you have in print you will need to escape the links quotes \"\".
print "<a href=\"Calculator.html\" target=\"_self\">Back to Calculator +</a>";
Or I would just wright it like this.
print <<"HTML"; Content-type:text/html <html> <head> <title> Answer Page</title> </head> <body> <p> <h2> The answer to your calculation is: $answ </h2><br /> <a href="Calculator.html" target="_self">Back to Calculator</a> </p> </body> </html> HTML

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1167448]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-03-29 06:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found