Ben

Hi!

I need a little PHP script that does the following:

I think you might need to use the eregi() function, but dont know how to code it properly.

I need a script that will validate a number. So you are only allowed numbers - no letters. You are allowed a full stop for a decimal point, buut must have a number each side, and also allowed a hyphen at the start for negative numbers.

Any help is appreciated thanks

Ben

I need a little PHP script that does the following:

I think you might need to use the eregi() function, but dont know how to code it properly.

I need a script that will validate a number. So you are only allowed numbers - no letters. You are allowed a full stop for a decimal point, buut must have a number each side, and also allowed a hyphen at the start for negative numbers.

Any help is appreciated thanks

Ben