Google Answers Logo
View Question
 
Q: multiple form html with javascript ( No Answer,   4 Comments )
Question  
Subject: multiple form html with javascript
Category: Computers > Programming
Asked by: nyabinghi-ga
List Price: $50.00
Posted: 20 Jun 2006 08:53 PDT
Expires: 03 Jul 2006 10:00 PDT
Question ID: 739658
sample of page here: http://www.stainlesscycle.com/order4.html - the
submit part is disabled, i pay per click....

1:  when form is submitted, many BLANK or UNCHANGED fields are
returned in email. this is messy, and i would like just the fields item#total,
item#quantity, item#price, and item# to return IF user enters
item#quantity.   also the grandtotal, shipping, and subtotal fields
should submit.

2:  this is only a partial form, i would like multiple forms, and one
submit, then a seperate page for submitting email/name/etc.  - i would
like all this to tie together to one email that includes items, total,
and userinfo (name/email/etc.) - i would like errortrapping for
unfilled fields: name, email, phone, address, city, state etc.
basically it's an email shopping cart.  i'd also like to tie it into
paypal somehow....

3: this all needs to be easy to implement client side, and scalable..

Clarification of Question by nyabinghi-ga on 21 Jun 2006 12:32 PDT
i have been told i could fix the blank field submission with something like this:
<head>
	<script type = "text/javascript" language = "javascript">
function disableAll() {
	document.getElementById("nothing").disabled = true;
}
	</script>

</head>
<body>
<form>
	<input id = "nothing" />
	<input type = "submit" onClick = "disableAll()" />
</form>
</body>

but i don't know how to implement - maybe this helps someone along.....
Answer  
There is no answer at this time.

Comments  
Subject: Re: multiple form html with javascript
From: zmiygorinich-ga on 21 Jun 2006 02:13 PDT
 
Look at http://phpforms.net
You can create multiple page forms with unlimited fields.

I this this web software can help you with your problem
Subject: Re: multiple form html with javascript
From: mrshrinkray-ga on 23 Jun 2006 04:46 PDT
 
I see you're using Adobe Golive 5. Does this not have a form validator
itself? What server side software is sending the email? Perl? PHP?
etc.

The validation is simply to do in Javascript - which I can provide if
you know how to edit the HTML. Multiple form submission is also easy
to do in Javascript. Not sure what you mean about multiple pages, or
why you wouldn't just use one form for all the information.
Subject: Re: multiple form html with javascript
From: nyabinghi-ga on 23 Jun 2006 11:20 PDT
 
formmail.com is providing the script for email.
i can edit html, if you could supply the script, that would be great.
multiple forms, or at least a save state between forms (i,.e. shopping
cart)  the sample page i posted is only one of about 10 that all have
many fields.. i would like the user to be able to pick and choose many
parts on multiple pages, and then have one checkout which just submits
whatever they chose, with email,name, phone etc...
Subject: Re: multiple form html with javascript
From: tomalak-ga on 03 Jul 2006 06:11 PDT
 
Hi nyabinghi-ga,

You're really talking about an e-commerce solution with the support of
a server-side scripted backend. To my knowledge there is no way (and
certainly no better way) to 'save state' of inputted information than
to have the entire application as a PHP or Perl script, collecting
data sequentially and then compiling it at the end.

To 'tie it into Paypal' you'd need to look at their documentation
about merchanting. Once you've set up your account I don't think it's
actually all that complicated. You just set up a shop with the details
and then your PHP script would, after recording the information
provided for you to process yourself, send the user to a Paypal page
for payment. You are then notified when payment is made.

This is way beyond the scale of a handful of HTML forms and a formmail
script. You should also be aware that freely open scripts such as
sendmail and formmail are INCREDIBLY insecure and often used to relay
spam. Once you have your dedicated PHP/Perl application, it can be
coded to send an email with the specific details you need, after
validation, in a fairly unabusable way.

Hope this puts things into a bit of perspective for you. :)

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy