[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

rename submit and reset

Posted on 2000-01-14
2
Medium Priority
?
190 Views
Last Modified: 2010-03-05
i use this code

   print $q->submit;
   print $q->reset;                

but say i want to call the submit button "send to next" and the reset button "clear entries"
how do i do it?
thanks
0
Comment
Question by:paulwhelan
2 Comments
 

Accepted Solution

by:
ajaylulia earned 100 total points
ID: 2352713
Hi,

there are Two parameter for the submit and reset
the syntax looks like this

$q->submit(-name=>'button_name', -value=>'value');
$q->reset(-name=>'button_name', -value=>'value');

this will work fine

0
 

Author Comment

by:paulwhelan
ID: 2353363
i have this also....

if (!$submit) {
print hidden(-name=> 'file', -value => $file);
print submit(-name => 'submit'), end_form;      


etc............

and when i change it to
print submit(-name => 'submit'),
it wont work!
any idea why?
thanks
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans
Suggested Courses

612 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question