Re: HELP : Passing Integer Values over CGI using LITE !

From: Ing. Juan Carlos Fernandez-B (juan@linux.form-net.com)
Date: Wed Dec 01 1999 - 21:06:42 EST


1. rtfm =-)
2. lets say you have the $count variable that is char but has a number
3. to covert it to int:
        $count= (int) $count;
4. the case thing, the only solution I can think of for now is to imlement
it with IFs
cheers
Juan Carlos

On Wed, 1 Dec 1999, Rajat Tiwary wrote:

> Hi Friends .. and Hello u there at Hughes if u read
> this !!!!!
>
> Now how in the world can i TYPE CAST char values to
> integer ...
> we all know that over CGI .. using GET and POST method
> only char values are sent .. now suppose am processing
> a form ( form.html ) and the value is numeric which is
> to be processed .. when the submit button is pressed
> .. it calls an html file which is nothing but a file
> with embedded lite script .. ( proccess.html )
>
> now with this numeric value which is passed over CGI
> to process.html .... i want to increment it 10 times
> and display ... but now this value is char in nature
> .. i do'nt have a typecasting function from char to
> int in LITE .... so how do i do it ?????????
>
>
> Moreover LITE lacks a feature which usually every
> language has ... a decision making loop like a case
> structure in C.
>
> How should one go about overcomming this problem!!!!
>
> am desperate ... PLEASE .. if someone can help please
> answer back ....
> my whole project stands on this .. ?????
>
> Thanx
> Rajat
> New Delhi, India
>
> __________________________________________________
> Do You Yahoo!?
> Thousands of Stores. Millions of Products. All in one place.
> Yahoo! Shopping: http://shopping.yahoo.com
> -------------------------------------------------------------------------
> To unsubscribe, go to http://www.Hughes.com.au/extras/email/
>

-------------------------------------------------------------------------
To unsubscribe, go to http://www.Hughes.com.au/extras/email/



This archive was generated by hypermail 2b30 : Mon Mar 04 2002 - 09:04:03 EST