-
May 31st, 2006, 06:28 AM
#1
JavaScript on Form Action
I have a form that works when the form action is set to
Code:
form action="login/login.php"
That works find it displays the error if the details are missing/incorrect and displays the correct page if the correct details are used.
But as soon as I change it to this
Code:
form action="javascript:ajaxpage('login/login.php', 'mainarea');"
It don't work fully it only displays the first error message it hits.
Notes:
mainarea is a container that holds all the data, the site is AJAX but this seems to be a JavaScript error.
-
May 31st, 2006, 07:33 PM
#2
Re: JavaScript on Form Action
Copied to AJAX ... I'm not sure exactly how to resolve this.
*9-11-01* Never Forget; Never Forgive; Never Relent!
"If we ever forget that we're one nation under God, then we will be a nation gone under." - Ronald Reagan
-
May 31st, 2006, 09:40 PM
#3
Re: JavaScript on Form Action
If it is firing a JavaScript error, then the PHP page probably calls some JavaScript based on results. You should double check that. You can also post the PHP source to help with some clarification.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|