cmc,
wherever the button's place is on the html code, just wrap this around it:
<% if some_number > 0 then %>
<input type="submit" name="btnSubmit" value="Click Me!">
<% end if %>
actually you don't need to check for show-button to be true.
i have done this many times.
johnypolite,
is there anyway you can share that cheat sheet? because i am trying to validate my user input too. if you care to look, i have a thread on javascript section on this site dealing with sql injection.
thanks.
try this simple one:
i think tsuji or one of the other guru's gave me this one
data = "THIS IS DATA, AS YOU CAN SEE THE WORDS" & " before conversion"
wscript.echo data
With New RegExp
.Global = True
.IgnoreCase = True
.Pattern = "\b(\w)(\w*?)\b"
WScript.echo .Replace(data...
this company has a cgi that has a mailto cgi. check with them:
http://www.citynet.net/supportforms.cfm
you can contact them on the phone to see if they can help you.
i use their form submit/mailto cgi.
my isp who hosts a website for me, has a cgi program that submits an entire form with field names on the form as email. you may want to check with the web site to see if they do.
when you use split(date_string, "/")
it gives you different parts of the date: mm, dd, yyyy
no need to "count" until you reach "/"
and to make mm and dd 2 digits, the best way is to concatenate "0" and the one digit, and take the 2 right most bites:
mm = 5
dd = 3
new_mm = right("0" & mm, 2) '...
actually you don't need the ending "" or "'" since you don't wrap those around numbers.
"SELECT * FROM contestants WHERE key = " & winKey
the above should be sufficient
sorry about being vague:
in access the date should be wrapped in #
e.g. #05/20/2008#
in oracle, it's not make_date it's TO_DATE(your_date_string)
e.g. to write to the database use:
TO_DATE('05/20/2008 14:53:10', 'MM/DD/YYYY HH24:MI:SS')
and to read from the database use:
TO_CHAR(date_string...
what's your database? access? oracle? or ?
i tested the code above and it worked. how are you testing it? try writing sdate for test purposes. the two-digit thing works for displaying and sorting. if you write to the database, you have to use # for access tables and make_date(sdate) for oracle.
The sort would work if it had leading zeros like this:
05/02/2008 10:22:01 AM
05/16/2008 04:08:21 PM
"""""""
actually your data is not in "sortable" order. if you really want to sort, it should look like this:
YYYY/MM/DD HH24:mm:ss
you can split the whole string separated by spaces.
part(0)...
i found the problem. since internet explorer is a little bit retarded and can't figure things out, this line:
var model = me.value;
should be changed to this:
var model = frm1.modl.options[frm1.modl.selectedIndex].text;
any suggestions on why it works in firefox and not in internet...
thanks,
it still doesn't work with the radix specified. here's my code. another problem is that the value of the field is undefined. i think that's the problem.
<html>
<head>
<title>Models</title>
</head>
<script>
function changeme(me)
{
var amount;
var model;
var amtx;
amount =...
i tried it. that's not it. i don't think you have to specify the radix. the default is 10. the strange thing is that in firefox it works, but not in internet explorer.
any other suggestions?
thanks.
hi,
i have this javascript function that works ok in firefox, but in i.e. it returns NaN. is there anyway to fix this?
thanks.
function changeit(me)
{
var amount;
var model;
var amtx;
model = me.value;
if (model == "x20")
{
amtx = "100.00";
}
amount =...
bigred,
you deserve a star (maybe more than one). the link that you provided was the best answer i have seen so far. it seems like the whole experts' sites on the internet have never attempted something like this. because they don't know how it's done. i found out how to pass the data:
where...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.