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">

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

function validation()

alert("Please enter Title")
return false;

No comments posted yet

Your Answer:

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

Cannot Display Array from Select Statement + Login question
I'm new to PHP but so far so goog. I was assigend a project and I'm very close to completion.

apart from cron
I need to run a php file every one hour. Is there any other solution apart from cron job?

Displaying an image using echo command
I had done a query on my database, one of the fields being an image reference to a directory where a

Sorting JTable on more than just the values listed in the columns
I have a collection of objects that store (among other things) two integer values. I only want to di

Chat Box in PHP
I was thinking in doing a Chat Box in PHP. For that I would use a form with two fields, Nick and Mes

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