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

Get content from table into a list, without repeating.
Alright this is kinda an odd thing, so I need some help.

I have a table "quote" wit

Remove values in array2 from array1
I have two arrays.

Array 1 is where the array key holds various different numbers. For exampl

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

pointer 102 question
I read a book
1
2
3
4
5
6
7
8
9
10
11
12
int main() {

Losing 'page' data
I have this code that allows me to update my database. But after updating, I lose the $_GET['page']

PHP friend keyword equivalent
is there a PHP equivalent for the C++ friend keyword?

php redirecting
i wont open a new thread but i have a question about redirecting....
i wonder why my code doesnt

Format String help
I have a textbox where a person enters an application number. the application number is 10 characte

How do i do multi uploads?.
Hey i would like to do this : http://hosting.mrkrabz.net/

I've got the base down you can uplo

How to Handle more than one submit button in single form?
Hi
I have one PHP file which contains one Form. In this form there are two Submit type Buttons

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