Re: Help : Still Not Working! --- Passing Integer Values over CGI using LITE

From: Richard Rothwell (chergr@bigpond.com)
Date: Thu Dec 02 1999 - 16:18:54 EST


Rajat Tiwary wrote:

> Thanx a Ton for trying to help me out Friends....
>
> but u see guys .. the type casting u r mentioning ...
>
> $num = (int)$num;
>
> does'nt works !!!!!!!!
>
> :)
>
> please try it out parsing ur html files via
> /cgi-bin/w3-msql/
>
> and then when u type-cast after parsing the char value
> then echo or printf the typecasted value .... and see
> the result .. on my web page it shows NULL
>
> Now What should i do ......

I works for me so maybe your version of w3-msql is broken. I have had
problems
in the past where code on a Linux box stopped working on a Sun box. Turned
out the
version of yacc used to build Lite was buggy and the sysadmin had to upgrade
their yacc a
and recompile msql.

Also i assume you are echoing the value of $num before and after conversion
as a proper check!!!

>
>
> Plus what i meant by case structure was that i have to
> make a choice that depending upon the value submitted
> by the user ... it should jump to that page ..
>
> now if there r only 2 or 3 choices then fine we can
> use if/else construct but .. what if i have to choose
> between 20 cases .....
>
> for example i am making a web database allowing
> powerfull search with conjuction of 20 tables as
> radiobuttons or checkboxes .. now imagine how many
> possible permutation combination it becomes ....
>
> so if/else fails ..
>
> if anybody has any other way of solving this problem
> .. please tell me .. i have a deadline to meet and am
> counting on this mail list to help me out ...
>
> am usibng msql 2.0.11 on Redhat 6.1 with apache web
> server ver 1.3.9 ...
>
> and my web client is netscape 4.7 on win95
>
> Thanx agin for helping me out !!!!!!
> Rajat
>

Well if your choice parameter is an integer use a lite array as a lookup
table.
If your choice parameter is not an array but a string or some thing else
use a database table as a lookup table.

>
> __________________________________________________
> 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