PHP onsubmit in the form not going to the fuction.


Posted on 16th Feb 2014 07:03 pm by admin

I have a form through ‘onsubmit’ calling a function validation(). But not going to the function at all. Why?

<form action="member.php" method="post" name="frmlogin" id="frmlogin" onsubmit="return validation();" enctype="multipart/form-data">
.
.
.
</form>

The function code :-
<script language="javascript">

function validation()
{

if(document.frmlogin.title.value=='')
{
alert("Please enter Title")
document.frmlogin.title.focus();
return false;
}
}
</script>

No comments posted yet

Your Answer:

Login to answer
263 Like 29 Dislike
Previous forums Next forums
Other forums

Just a white page
Okay so, my website, when I click SignUp on it it takes me to /join.php but its a complete white pag

$_GET problem
Hi all,

Have a bit of a problem with a little piece of code, I am not sure if this should be

md5 is it unique
I know this is most likely one of many simple questions that can be found semi easily. But I'm press

Passing PHP variables from one page to another
Hello-

I'm having trouble figuring out how to transport a variable from one php file to anoth

Local file browser with php
Halo..

So this is what i want to create. I have a folder that i share and it has many movies.

Strip Slashes Help
I've got a script that i've downloaded of the net to edit multiple fields from my sql database, and

validating url
im trying to validate url's sent to me by a form
the url's im collecting are for placing banners

Simple Question
I know this is a simple question, that if I knew what it was technically called i could probably loo

How to add functionality to a simple php calender?
Hello everyone,

I have just finished creating a simple php calander. Can someone point

mail() says sent but no email received
My code is quite simple:

Code: <?php
$to = "Ty44ler@yahoo.com";
$subje

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash