473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Submit a form, not working...

Best groupmember,

I am working on a login form that uses md5 as cryptation. I have got
everything to work exept the submit() function. I have verified that
all rows work except the last on:

function goForm(){
val = this.document.forms.formul.password.value;
md5 = hex_md5(val);
this.document.forms.formul.password.value = md5;
this.document.forms.formul.action = "login.php";
this.document.forms.formul.submit(); //Only this row is not working
}

-- Best Of Times

Peter Lauri
Jul 23 '05 #1
6 1753
Lee
Peter Lauri said:

Best groupmember,

I am working on a login form that uses md5 as cryptation. I have got
everything to work exept the submit() function. I have verified that
all rows work except the last on:

function goForm(){
val = this.document.forms.formul.password.value;
md5 = hex_md5(val);
this.document.forms.formul.password.value = md5;
this.document.forms.formul.action = "login.php";
this.document.forms.formul.submit(); //Only this row is not working
}


The most common cause of this problem is having a form element named "submit",
which clobbers the submit() method. If you have such an element, change its
name.

Jul 23 '05 #2
Lee wrote:
Peter Lauri said: [snip]
function goForm(){
val = this.document.forms.formul.password.value;
md5 = hex_md5(val);<----- ???

[snip]
The most common cause of this problem is having a form element named "submit",
which clobbers the submit() method. If you have such an element, change its
name.


And where does "val" come from?
Mick
Jul 23 '05 #3
Mick White <mw***********@rochester.rr.com> wrote in message news:<xi******************@twister.nyroc.rr.com>.. .
Lee wrote:
Peter Lauri said:

[snip]
function goForm(){
val = this.document.forms.formul.password.value;
md5 = hex_md5(val);<----- ???

[snip]

The most common cause of this problem is having a form element named "submit",
which clobbers the submit() method. If you have such an element, change its
name.


And where does "val" come from?
Mick


val comes from...

function goForm(){
val = this.document.forms.formul.password.value; //The form that is
submitting the password, ok?
md5 = hex_md5(val);<----- ???

/Peter
Jul 23 '05 #4
Peter Lauri wrote:

val comes from...

function goForm(){
val = this.document.forms.formul.password.value; //The form that is
submitting the password, ok?
md5 = hex_md5(val);<----- ???

Temporary brain freeze, sorry.
Mick
Jul 23 '05 #5
Mick White <mw***********@rochester.rr.com> wrote in message news:<NP*****************@twister.nyroc.rr.com>...
Peter Lauri wrote:

val comes from...

function goForm(){
val = this.document.forms.formul.password.value; //The form that is
submitting the password, ok?
md5 = hex_md5(val);<----- ???

Temporary brain freeze, sorry.
Mick


But you did not answer my question :)
Jul 23 '05 #6
Peter Lauri wrote:
Mick White <mw***********@rochester.rr.com> wrote in message news:<NP*****************@twister.nyroc.rr.com>...
Peter Lauri wrote:
function goForm(){
val = this.document.forms.formul.password.value; //The form that is
submitting the password, ok?
md5 = hex_md5(val);<----- ???

Temporary brain freeze, sorry.
Mick

But you did not answer my question :)


Did you read Lee's posting? And did it help?
Mick
Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bruce Duncan | last post by:
I can't seem to figure our why this doesn't work. I don't get any errors, it just doesn't submit. Can anyone shed some light. <?PHP $var1 = "http://localhost/php/index.php"; $varx = "bruce";...
17
by: Dave Smithz | last post by:
Hi there, A PHP application I built has a section which lists a number of members to a club whose names each appear with a check box beside them that can be ticked. These check boxes are part...
15
by: JR | last post by:
Hi. I hope someone out there who is more versed with JavaScript than I can help me with the following annoying problem. Here's the problem. I have a form with the following layout: Column A...
4
by: Dmitry Korolyov [MVP] | last post by:
When we use btnSubmit.Attributes = "javascript: this.disabled=true;" to make the button disabled and prevent users from clicking it again while form data still posting, there is no longer...
2
by: martyn_wynne | last post by:
Hi, I have found a odd one, my submit button is not submitting on a method="get" form after using any form of DataBind? Has anyone struck this problem before? here is snipits of the code as...
7
by: amerar | last post by:
Hi All, I am really green at Javascript. Someone gave me some code to play with and I'm trying to understand it: <INPUT TYPE=text NAME=subject SIZE=60 MAXLENGTH=60><BR><BR> <input...
1
by: kkuniya | last post by:
Situation : - A form (method : POST, action : itself, onsubmit : alert 'Submit' ) - Got 2 submit button ( 'Save' , 'View') - Got navigation 1|2|3|4 What I want to do : - Once clicked on the...
13
by: deko | last post by:
I have a basic feedback form with a submit button. After the "send" button is clicked, I want the user to be redirected to a different page that says "Your message has been sent." How do I do...
1
by: mrsquash | last post by:
Hello all, I'm quite stumped here. I have multiple forms that collect user data. Once the form has been completed, the user saves the data. On my save screen are links for the user to select...
10
by: The Natural Philosopher | last post by:
I am coding up a bit of javascript stuff, and have managed to stumble my way through most of what I want.. But this one has got me stumped. I call submit() and get a javascript error 'Submit...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.