Freelancers Forum Messages on Thursday May 31st 2007
Re: FN-FORUM: Currency Validation in Javascript
date posted 31st May 2007 19:51
>Am I right these snippets are looking for either
>"abc" or "abc.de" (where "abc" is one or more digits)?
Yer thats right. How would you do it with just plain javascript?
I was thinking about loopin...
Re: FN-FORUM: Currency Validation in Javascript
date posted 31st May 2007 19:34
On Thu, 2007-05-31 at 18:32 +0000, Dom Latter wrote:
> On Thursday 31 May 2007 6:09 pm, Graham Stark wrote:
>
> > Try:
> >
> > ^-?\d+(\.\d{2})?$
>
> Somehow I suspect a simple bit of Javascript woul...
Re: FN-FORUM: Currency Validation in Javascript
date posted 31st May 2007 19:22
On Thursday 31 May 2007 6:09 pm, Graham Stark wrote:
> Try:
>
> ^-?\d+(\.\d{2})?$
Somehow I suspect a simple bit of Javascript would be not just far more=20
maintainable, but actually more efficient...
RE: FN-FORUM: Currency Validation in Javascript
date posted 31st May 2007 18:43
> -----Original Message-----
> From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of James
> Herrington
> Sent: 31 May 2007 18:13
> To: FN-FORUM / [EMAIL REMOVED]
> Subject: Re: FN-FORUM: Currency Valida...
Re: FN-FORUM: Currency Validation in Javascript
date posted 31st May 2007 18:02
Thanks Phil,
I don't know why i had that in there, today is the first time i've used
regular expressions at all so i was bound to make some mistakes.
I got the following to work now
/^-?\d+(\.\d{2...
Re: FN-FORUM: Currency Validation in Javascript
date posted 31st May 2007 17:59
On Thu, 2007-05-31 at 16:50 +0000, James Herrington wrote:
> > /^-?\\d+(\\.\\d{0,2})?$/
Try:
^-?\d+(\.\d{2})?$
(so the whole .xx block is optional).
Graham
> >
> > Perhaps? Makes the decimal an...
Re: FN-FORUM: Currency Validation in Javascript
date posted 31st May 2007 17:41
> /^-?\\d+(\\.\\d{0,2})?$/
>
> Perhaps? Makes the decimal and the digits after it optional as a block.
Sorry, that doesnt work, the last working expression i have is this
/^\d+\.\d{2}$/
Thanks f...
RE: FN-FORUM: Currency Validation in Javascript
date posted 31st May 2007 17:39
> -----Original Message-----
> From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of James
> Herrington
> Sent: 31 May 2007 16:57
> To: FN-FORUM / [EMAIL REMOVED]
> Subject: FN-FORUM: Currency Validation...
RE: FN-FORUM: Currency Validation in Javascript
date posted 31st May 2007 17:06
James Herrington wrote:
> Hi,
>
> I'm trying to use a regular expression to validate currency in
> javascript.
> So far i've got
>
> var isPrice = /^-?\\d+\\.\\d{0,2}?$/;
>
> but when i check a nu...
Re: FN-FORUM: Currency Validation in Javascript
date posted 31st May 2007 17:06
> /^-?\\d+(\\.|)\\d{0,2}?$/;
>
> I think...
>
> My regex is a bit rusty.
nope, that doesnt appear to have worked, thanks for trying though.
James...
Re: FN-FORUM: Currency Validation in Javascript
date posted 31st May 2007 16:51
/^-?\\d+(\\.|)\\d{0,2}?$/;
I think...
My regex is a bit rusty.
Graham
James Herrington wrote:
> Hi,
>
> I'm trying to use a regular expression to validate currency in javascript.
> So far i've g...
FN-FORUM: Currency Validation in Javascript
date posted 31st May 2007 16:47
Hi,
I'm trying to use a regular expression to validate currency in javascript.
So far i've got
var isPrice = /^-?\\d+\\.\\d{0,2}?$/;
but when i check a number using this if there isn't a decimal p...
Re: FN-FORUM: Dreamweaver - Problems with form and email address
date posted 31st May 2007 12:23
> I don't believe there's anything about PHP formmail programs that makes
> them intrinsically more secure than ones written in any other language.
> I'm pretty sure it's all to do with _how_ the prog...
Re: FN-FORUM: Dreamweaver - Problems with form and email address
date posted 31st May 2007 12:13
chris hill wrote:
>
> Marc,
>
> I see from your code you are using formmail.pl, I would strongly
> advise against this. formmail.pl has been proven to have many many
> vulnerabilities (google for i...
RE: FN-FORUM: Dreamweaver - Problems with form and email address
date posted 31st May 2007 12:02
Great way to either get lots of spam or possibly open your formmail script
to spammers (I do hope there is some kind of security on that formmail.pl).
Ideally you should ALWAYS hard code the recipien...
Re: FN-FORUM: Dreamweaver - Problems with form and email address
date posted 31st May 2007 11:59
Marc,
I see from your code you are using formmail.pl, I would strongly
advise against this. formmail.pl has been proven to have many many
vulnerabilities (google for it) mostly allowing people to se...
RE: FN-FORUM: Dreamweaver - Problems with form and email address
date posted 31st May 2007 11:57
Hi Marc,
> I created a website I created last year,
> 'www.peelcreative.co.uk', I have been obtaining work
> generally through word of mouth since then but am about to
> send out some publicity wi...
Re: FN-FORUM: Dreamweaver - Problems with form and email address
date posted 31st May 2007 11:52
I just noticed from your site that the form is going to
[EMAIL REMOVED]
If this email address doesn't exist then you won't receive it and they'll
all bounce.
You need to change it to [EMAIL REMOVED]...
Re: FN-FORUM: Dreamweaver - Problems with form and email address
date posted 31st May 2007 11:48
Hi Marc, does the form have this piece of code in the HTML?...
FN-FORUM: Dreamweaver - Problems with form and email address
date posted 31st May 2007 11:38
Hi,
I created a website I created last year, 'www.peelcreative.co.uk', I have
been obtaining work generally through word of mouth since then but am about
to send out some publicity with the website...