Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Submitting a form
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Submitting a form

 Post Reply Post Reply
Author
simc View Drop Down
Newbie
Newbie
Avatar

Joined: 17 February 2003
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote simc Quote  Post ReplyReply Direct Link To This Post Topic: Submitting a form
    Posted: 17 February 2003 at 3:09pm

I am trying to get a form to submit.  I've done it in the past without using javaScript to verify the fields.  I need to verify the fields in this form and have the code working for that however once the verification is finished, the form won't submit. 

here is the relevant code:

<FORM name="OrderForm" ACTION="mailto:myemail@something.ca" METHOD="POST" ENCTYPE="text/plain">

<input type="submit" value="Submit" onClick="return checkrequired(this)">

I don't have any code in the checkrequired formual that submits the code, should I?

Is there some way I can get this working (in both Netscape and IE)?

thanks,

SimC

Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Post Options Post Options   Thanks (0) Thanks(0)   Quote KCWebMonkey Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2003 at 9:37pm

Originally posted by simc simc wrote:

I don't have any code in the checkrequired formual that submits the code, should I?

I may be wrong about this, but I'm pretty sure that your checkrequired function needs to have code in it to work....

Back to Top
simc View Drop Down
Newbie
Newbie
Avatar

Joined: 17 February 2003
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote simc Quote  Post ReplyReply Direct Link To This Post Posted: 18 February 2003 at 8:12am

Sorry, I didn't mean that there is no code in the checkrequired function, there is tons of code in it that verifies the field values.  I mean that there is nothing in the function that actually submits the form.  I don't know if I need to add something, and if I do, what?

 

thanks,

SimC

Back to Top
oneminuteguy View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 18 October 2002
Location: Denmark
Status: Offline
Points: 100
Post Options Post Options   Thanks (0) Thanks(0)   Quote oneminuteguy Quote  Post ReplyReply Direct Link To This Post Posted: 18 February 2003 at 11:25pm

First of all, I don't understand why you would want to use the mailto: tag to submit a form. Is this your only option? I mean, dosen't your isp offer cgi-bin access or an asp component?

This is the way my code looks when I use cg-bin. (I prefer asp jmail though)

<form name="contact form" onsubmit="return formCheck(this);" action="/cgi-bin/FormMail.pl" method="post" >
<input type="hidden" name="recipient" value=email@domain.com>

This is the way to do it if you want to be sure about cross browser compliance.

I use a simple bit of code which is easy to modify to validate forms. You can get it at http://www.dynamicdrive.com/dynamicindex16/requiredcheck.htm

Hope this helps

OMG

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.