SoftwareTipsandTricks Forum

Go Back   SoftwareTipsandTricks Forum > General Computing > Internet
User Name
Password


HTML question

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes

  #1  
Old 02-13-2007, 01:07 PM
sickpricedotcom Offline
Registered User
 
Join Date: Jan 2007
Posts: 15
Post HTML question

<!-- random.js by detour@metalshell.com -->

<!-- Generate 100 random numbers, round and print them. -->

<!-- http://www.metalshell.com/ -->

<html>
<head>
<title>JavaScript Random Number Generator.</title>


</head>
<body>

<script type="text/javascript">

function genNumbers(textbox) {
var i, rannum;

for(i = 0; i < 1; i++) {

rannum = Math.random()*100000;

rannum = Math.round(rannum);

if(textbox.options[i] == null) {
textbox.options[i] = new Option( rannum, rannum, 0, 0 );
} else {
textbox.options[i].value = rannum;
textbox.options[i].text = rannum;
}
}
}
</script><p>

<form name="text" form action="mailto:ilan@xrossmotors.com?subject=RMA#" method="post" enctype="text/plain">
<table><tr><td>
First Name: <INPUT NAME="First Name" TYPE="text" SIZE=15 MAXLENGTH=10><BR>
Last Name: <INPUT NAME="Last Name" TYPE="text" SIZE=15 MAXLENGTH=10><BR>
Address:<BR>
<TEXTAREA NAME="Address" COLS=45></TEXTAREA><BR>
City: <INPUT NAME="City" TYPE="text" SIZE=15 MAXLENGTH=10><BR>
State: <INPUT NAME="State" TYPE="text" SIZE=25 MAXLENGTH=10><BR>
Zip Code: <INPUT NAME="Zip Code" TYPE="text" SIZE=25 MAXLENGTH=10><BR>
Reason for Reaturn:<BR>
<TEXTAREA NAME="Reason for Return" COLS=45></TEXTAREA><BR>

<Select name="text" size="20" style="width:130px" style="height:30px">
</select><br><br>
<input type="button" value="Issue RMA #"
onclick="genNumbers(this.form.text)";>
<input type="genNumbers(this.form.text)";>
</td></tr>
<tr><td align=center>
<INPUT TYPE="submit" value="submit" style="color: #ffffff; background-color: #000000">
</td></tr></table>
</form>

</body>
</html>


Form e-mails me all the info EXCEPT the generated RMA #.. someone know what's going on?
Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy "branding" of HTML pages Finn Software Problems and Useful Utilities 2 09-13-2006 06:11 AM
Blogger software question manda Internet 1 08-15-2005 05:12 AM
MS Html Help and Html Email Luminol Windows XP 2 06-15-2005 09:44 AM
html problem David Chiles Windows XP 4 07-24-2003 10:02 PM
Is NO-ONE know how to send mailin using html tag in outlook??? priti Internet 2 01-23-2003 05:38 PM



All times are GMT -5. The time now is 10:17 PM.


Designed by eXtremepixels. Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.