Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing perl to create buttons

Status
Not open for further replies.

bmxking

Programmer
Aug 12, 2003
2
US
I have a online form written in html and when you submit it i want it to post the results and then ask the user if its correct, and then have a yes(submit) button or no(back) button.
Should i go with a java script that shows the info or should i write it in the cgi script. right now i can get it to post and everthing, and its on my cgi page. Figuring out the two buttons is my problem. Any help would be helpfully. you can look at the form. you can submit cause the site is not up yet. thank you
 
It's really a matter of preference. My personal preference would be to write it in perl or PHP, only because I'm a programmer by trade and I like a good challenge. But it really doesn't make any difference and javascript will do the job as well as anything alse. As long as you're comfortable with it and it works for you and your visitors, then do what works for you.

There's always a better way. The fun is trying to find it!
 
Ok i want to do it in cgi. But i dont know how to create buttons that have values that then i could use in a if statment. i only know submit and reset. if you know the commands i can figure out how to use them.
 
Look up CGI.pm on search.cpan.org

Also
CGI::FormBuilder
CGI::Session

search.cpan.org is your friend

HTH
==Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top