<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Regards Stationery</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1250">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Arial" background="">
<DIV><FONT face=Tahoma></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><SPAN class=656322309-05052006>Hello</SPAN></DIV>
<DIV><SPAN class=656322309-05052006></SPAN> </DIV>
<DIV><SPAN class=656322309-05052006>I'm a newcomer to the site so please
forgive me if I post messages incorrectly (and please tell me how to do it
properly!)</SPAN></DIV>
<DIV><SPAN class=656322309-05052006></SPAN> </DIV>
<DIV><SPAN class=656322309-05052006>Am I missing something obvious, or can you
simply use the abs() function to obtain the absolute value of the number? This
could be combined with the function is_numeric() to do the validation on user
input that you need.</SPAN></DIV>
<DIV><SPAN class=656322309-05052006></SPAN> </DIV>
<DIV><SPAN class=656322309-05052006>I hope this helps</SPAN></DIV>
<DIV><SPAN class=656322309-05052006></SPAN><SPAN
class=656322309-05052006></SPAN><SPAN
class=656322309-05052006></SPAN> </DIV>
<DIV><SPAN class=656322309-05052006></SPAN>Regards</DIV>
<DIV>Paul</DIV>
<DIV>Black Hill Computer Software</DIV>
<DIV>01981 510 180</DIV>
<DIV>www.blackhillcomputersoftware.co.uk</DIV><BR>
<DIV><SPAN class=730304119-05052006>Hi Paul,</SPAN></DIV>
<DIV><SPAN class=730304119-05052006></SPAN> </DIV>
<DIV><SPAN class=730304119-05052006>abs() was fine, mostly it was just me
having a blank moment and completely forgetting about the command after a
seriously long day programming.</SPAN></DIV>
<DIV><SPAN class=730304119-05052006>it came out in part like;</SPAN></DIV>
<DIV><SPAN class=730304119-05052006></SPAN> </DIV>
<DIV><SPAN class=730304119-05052006>if(!is_numeric($height)){$height = $oldh;}
$height = abs(intval($height)); if(($height < 70) || ($height >
768)){$height = $oldh;}</SPAN></DIV>
<DIV><SPAN class=730304119-05052006></SPAN> </DIV>
<DIV><SPAN class=730304119-05052006>ultimately.</SPAN></DIV>
<DIV><SPAN class=730304119-05052006></SPAN> </DIV>
<DIV><SPAN class=730304119-05052006>Nothing I can see wrong with your posting,
more the merrier!</SPAN></DIV>
<P>Regards,<BR><BR>Phil Beynon<BR>Sales director<BR><BR>** <A
href="http://www.diygear.com/" target=_blank>http://www.diygear.com</A> THE
Online DIY Toolstore For DIY & Business<BR>** Infolink Electronic Systems
Ltd. <A href="http://www.infolinkelectronics.co.uk/"
target=_blank>http://www.infolinkelectronics.co.uk</A><BR>** Professional Web
Design & Cobalt Hosting Solutions<BR>** Contact:
Sales@infolinkelectronics.co.uk<BR>** Tel / Fax 0121 458 4894 (office) 0121
441 3558 (home) 07801 548464 (mobile)<BR> <FONT
face=Tahoma><BR></FONT></P></BLOCKQUOTE></BODY></HTML>