Connecting Tech Pros Worldwide Help | Site Map

Using 3 buttons in single page

Newbie
 
Join Date: Jan 2008
Posts: 5
#1: Jan 29 '08
hi i am new in php , and i am using 3 press button in single page one submit button and 2 normal buttons, submit button for saving a text and other 2 i wann use for scrambling a text and other one for find and replace a word, how to use these 2 button please help me.

i my case when i press any 2 button they work same.
rpnew's Avatar
Familiar Sight
 
Join Date: Aug 2007
Posts: 180
#2: Jan 29 '08

re: Using 3 buttons in single page


Quote:

Originally Posted by ashish1779

hi i am new in php , and i am using 3 press button in single page one submit button and 2 normal buttons, submit button for saving a text and other 2 i wann use for scrambling a text and other one for find and replace a word, how to use these 2 button please help me.

i my case when i press any 2 button they work same.

Hi,
You need to use the onclick event of other two buttons...
You can call the function you want on onclick event...

Regards,
RP
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#3: Jan 29 '08

re: Using 3 buttons in single page


Quote:

Originally Posted by rpnew

Hi,
You need to use the onclick event of other two buttons...
You can call the function you want on onclick event...

Regards,
RP

Which is JavaScript, not PHP. Ask over there :)

Try and be a tad more descriptive too..

maybe read some tutorials for onclick then attempt it yourself and post the code you used on the forum.
Reply