Ask a Question related to Macromedia Flash Flashcom, Design and Development.
-
[djdomain] #1
check string length server-side
Hi guys,
how do i check the string length server-side?
I am using the date object to gather the current date.
[q]
var d = new Date();
var mm = d.getMonth()+1;
var yy = d.getFullYear();
var dd = d.getDate();
[/q]
month is returned as "2" which is correct
but i need to be able to check for a single char so that i can add a leading
zero before it is submitted to the database. This is also required for day.
thanks
Paul
[djdomain] Guest
-
Need to know the length of Server side Informationobject
Hi, I am doing some programming to get the bandwidth of all the Streams on the Server Side. I am using Server Side Api's. I am using... -
string length
how do you find the length of a string in php?? there seems to be every command under the sun in the manual to operate on strings but not one for... -
Controls with a client side onLoad function or seting a cursor server side
Is there any way to create a web control that calls a client side onLoad function? Its diffucilt since you are not able to access the form or... -
a string length problem
I am using Director 8 on Chinese version Windows system,a double-byte system. and I have a problem about the length of chinese character string ,... -
How to get length of string? length() problems
Simplified a bit, I'm parsing HTML documents to get sentences e.g. my $html = get($URL); # remove all HTML TAGs...blah blah blah @sentences =... -
Unregistered #2
Re: check string length server-side
I'm no PHP programmer but I think using simple logic it will be a simple fix.
1) check to make sure the number is below 10 e.g. <10
2) if this is true append a 0 at the end
I don't know what code is required but that's the logic behind it. If you've had some experience with PHP you might be able to do it.Unregistered Guest



Reply With Quote

