To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > ClientSide Technologies

ClientSide Technologies Discuss HTML/CSS/Javascript, and any other client-side technologies, here.

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-26-2006, 09:26 PM   #1
jasonyoung
Senior Member
 
Join Date: Feb 2006
Location: San Diego, CA
Posts: 101
[RESOLVED] Is this allowed in a form header?

I have a form, which I need to execute 2 onclick events for the submit button. Is this allowed? Removing one or the other allows the form to submit. When both are present it will not do anything when I submit.

Here is the form tag which fails:

HTML Code:
<form name="agreeform" onsubmit="return formCheck(this)" onSubmit="return defaultagree(this)" action="<?php echo $_SERVER['PHP_SELF'] ?>?form=yes" method="POST" onKeyUp="highlight(event)" onClick="highlight(event)">
Thanks!
jasonyoung is offline   Reply With Quote
Old 02-26-2006, 09:57 PM   #2
laserlight
PHP Witch
 
laserlight's Avatar
 
Join Date: Apr 2003
Location: Singapore
Posts: 12,392
You could combine them:
PHP Code:
<form name="agreeform" onsubmit="return formCheck(this); return defaultagree(this)" action="<?php echo $_SERVER['PHP_SELF'] ?>?form=yes" method="POST" onKeyUp="highlight(event)" onClick="highlight(event)">
__________________
Use Bazaar for your version control system
Read the PHP Spellbook
Learn How To Ask Questions The Smart Way
laserlight is offline   Reply With Quote
Old 03-01-2006, 07:20 PM   #3
jasonyoung
Senior Member
 
Join Date: Feb 2006
Location: San Diego, CA
Posts: 101
Thank you! I saw the ; on an example somewhere else, but it didn't look like it belonged. I deleted it. OOPS.

All better now. Thank you.
jasonyoung is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 10:23 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.