|
Posted by Rhonda on 09/17/05 02:57
"Rhonda" <nomailplease@yahoo.com> wrote in message
news:wE4We.2985$Q71.2358@fe02.lga...
>
> "Jonathan N. Little" <lws4art@centralva.net> wrote in message
> news:444We.1105$wR4.190400@monger.newsread.com...
> > Rhonda wrote:
> >
> > > Thank you.
> >
> > Rhonda: First don't write your reply *above* what you are replying to,
> > that is called *top-posting*, a no-no in the group.
> >
> > > That must be a difficult request then.
> >
> > Nothing difficult all.
> >
> > >>Well, that would be because it has nothing to do with HTML or
Javscript.
> > >>You need to use server-side stuff, like PHP, ASP, or Perl.
> >
> > Oli is telling you the truth, what you wish reading and writing to your
> > server cannot be done with either HTML or client-side JavaScript. You
> > have to use scripting the runs on your server...like PHP, ASP, Perl...
> >
> > --
> > Take care,
> >
> > Jonathan
> > -------------------
> > LITTLE WORKS STUDIO
> > http://www.LittleWorksStudio.com
>
> Ok
>
> I'm looking at various simple PHP counter scripts, that can double for my
> unique order number.
>
I solved my problem!
How's this look? It works perfect. try it.
-----------------------------------------------
<html> <!-- O R D E R N U M B E R G E N E R A T O R -->
<head>
<title>Order Number generator</title> </head>
<body onload="GenerateOrderNumber(); document.ordnum.ordernumber.value =
GenerateOrderNumber();
document.ordnum.startingdate.value = generateTodaysDate(); " background="">
<form name="ordnum">
<div align="center">
<tr>
<td width="155"><font face="Verdana" size="2">Order
Number:</font></td>
<input maxLength=15 size=15 name="ordernumber" ></font></td>
<td width="155"><font face="Verdana" size="2">Order Date:</font></td>
<input maxLength=15 size=15 name="startingdate"></font></td>
</tr>
</div>
</form>
</body>
</html>
<SCRIPT language="javascript">
function GenerateOrderNumber()
{ tmToday = new Date();
return tmToday.getTime(); }
function generateTodaysDate()
{ var d = new Date();
var startingdate = new String((d.getMonth() + 1) + "/" + d.getDate() +
"/" + d.getFullYear()); return
startingdate; }
</SCRIPT>
[Back to original message]
|