Jump to content

Stonedonspam

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Stonedonspam

  1. I want to email a form that the user fills out to two different accounts with submitting the form once. I can't seem to do that, and it seems like such a simple problem. Here is my code:

    <form method="post" name="orderform" action="http://cgi.freedback.com/mail.pl"><input type=hidden name=to value="firstemailaddress@gmail.com">  

    I don't know how to add a second email address in there. I've tried adding a comma or a semi colon between them, but that doesn't work. If there is a way to do this, please tell me. Thanks.

  2. I am trying to make a simple order form to put on my site, but I don't need anything too fancy. I need some help on making a drop down menu, or preferably, a form that will let you know how much of a product the person wants. You just type in the number and it says the total at the bottom.Basically, all I have been trying to was get ideas from forms and scripts already made, but I haven't found anything that will work. Here is the link to the form so far. I've been able to get it to work with checkboxes, but haven't had luck with those text boxes. If anyone can give me a little help with this, I would really appreciate it. Click here for the orderform... so farHere is the script for it also:

    <script language="JavaScript"><!-- hide contents from old browsersfunction tally()        {        Cost = 0;        if (document.orderform.Item1.checked) { Cost = Cost + 12;}        if (document.orderform.Item2.checked) { Cost = Cost + 24;} if (document.orderform.number.?) { Cost = Cost + 10;}         Cost = dollar(Cost);              document.orderform.Total.value = "$" + Cost;        }function dollar (amount){        amount = parseInt(amount * 100);        amount = parseFloat(amount/100);        if (((amount) == Math.floor(amount)) && ((amount - Math.floor (amount)) == 0))        {                amount = amount + ".00"                return amount;        }        if ( ((amount * 10) - Math.floor(amount * 10)) == 0)        {                amount = amount + "0";                return amount;        }        if ( ((amount * 100) - Math.floor(amount * 100)) == 0)        {                amount = amount;                return amount;        }        return amount;}//--></script><center><h1>Order Form</h1></center><p>Click the products that you want and press "Send Order".<form method="post" name="orderform" onkeydown="return validate()" action="http://cgi.freedback.com/mail.pl"><input type=hidden name=to value="Myemailaddress"><table border="0">    <tr><td colspan="4"></tr> <tr><td colspan="2"><input type="number" name="number" maxLength="1" size="1" id="number" onKeyPress="tally()"> Product 1</td><tr><td><input type="checkbox" name="Item1" value="1 Product1_chosen" onclick="tally()"> 1 ($12)</td><td><input type="checkbox" name="Item2" value="2 Product2_chosen" onclick="tally()"> 2 ($24)</td></tr><tr><td> Total <input type="text" name="Total" readOnly="yes" value="$0" size="7"></td></tr>THIS IS WHERE THE CONTACT INFORMATION GOES, BUT SINCE IT DOESN'T NEED TO IMPROVED AND TAKES UP A LOT OF ROOM, I LEFT IT OUT.      <tr><td colspan="4" height="3"><hr></td></tr>      <tr><td colspan="2" align="center"><input type="Submit" value="Send Order"></td><td colspan="2" align="center"><input type="RESET" value="Reset Order"></td></tr>  </table></form>
  3. I want make a form that only accepts numbers, but I don't want a message to pop up saying not to press it once I type it or try to submit it. I just want the form to remain empty when I try to type in anything other than a number. Could someone please help me on this?

×
×
  • Create New...