Two Submits

I have a form that current has a fair amount of data/input tags and a button
that submits it to another page for processing. I'm building another button
on this same page that will post to an entirely different page, but needs a
lot of the same data as the original button. I assume I can't have both
submit buttons within the same form, yet I need access to the same data.
I'm probably missing something pretty obvious, but I can't figure this out
for the life of me.

View Replies


ADVERTISEMENT

Page Submits Twice

Here is the sample code for my form, but problem is that it submitts
twice in some cases when i click sub mit button.

<script>
function validateform (){
//do a lot validation here, if validation failes, return false;

//finaly this line
return true;
}
</script>

<form name="abc" action="any other apge" onsubmit = "return
validateform();">

<input type="submit" name="save" id="save">
</form>

View Replies View Related

Form Submits To Itself

I am creating a "Send this webpage to a friend" page. Instead of using multiple pages to accomplish this, I'd like to use just one. The page is constructed like this:

<%
Verify that name, emailaddress and other fields have been entered.

If Entered, then send email.
%>

<Form>
inputboxes, etc.
</Form>

Question:
How can I prevent the ASP from running when the page loads initially when obviously the user hasn't had a chance to enter in any data?

View Replies View Related

Client-side Validation Works, But Form Still Submits...

I've got a form that is activated by an external .asp page. I've finally got the validation of the form working, the javascript alert pops-up and correctly identifies the mistakes, but when I click OK on the js pop-up, the form submits and I get a data mismatch error.

I can't seem to figure out how to get the form to wait for the right data... Code:

View Replies View Related

How To Insert Image To Access Database From Form When The User Submits The Form?

my form contains two text fields(name, address) and two file field control where user can insert image(photo1 and photo2), i want to insert this data in to ms access when the user submits the form?

this is my code for insert text fields to access data base.but i have no idea about the code for image fields. In my access data base i set photo1 and photo2 as herf (binary data). Code:

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved