baseportal
Start

baseportal message board

Welcome to the baseportal message board...

Please read the FAQ.

 
 Selected message: To the list 
    Message from CK Loh on 2/16 2010, 16:38 +08:00

    Re: Input Variable


      xfce,

      Thank you for your prompt advice.

      Just one thing, using application/x-www-form-urlencoded as far as I know is not suitable for dealing with large quantity of data.

      My example, if not clear, is actually dealing with 10,000 of data range.


      Is adding variable using URL is suitable in this case?

      I am a newbie for html and PERL programming. Please bear with me, thanks.

    Your reply:

    Name: EMail: WWW:
    Subject:
    Text:
    Timezone:

    Post a new message


 All messages from this thread: To the list 
    Message from CK Loh on 2/16 2010, 11:00 +08:00

    Input Variable


      I need help on this.

      Please enter: <input type="text" name="Word:="><p>>

      <input type="submit" value="send">


      How to made the VALUE of variable $Word remains, without saving it to the database, after data fetching is done?


      For example,

      Input--> TEST

      Base on the input, on the first fetch of range 0:10000, I manage to get the result that I want taking value TEST as the filtering criteria comparing with the stored data information.


      However, on the second fetch, the $Word value no longer is TEST and become <SPACES>, thus on the second fetch of range 10001:20000, I can't get the desired result due to using <SPACES> instead of value TEST as filtering criteria with the stored data information.

      How to make the input variables remained static after performing the query, so that for the next query the same value can be used?

      Thank you very much.

     Post a reply

    Message from xfce on 2/16 2010, 07:36 +00:00

    Re: Input Variable


      It is possible to add the variable to the URL.

      When you fetch the new range add "Word=$Word".

       ...?htx=..../path/yourtemplate&Word=$Word
     Post a reply

    Message from CK Loh on 2/16 2010, 16:38 +08:00

    Re: Input Variable


      xfce,

      Thank you for your prompt advice.

      Just one thing, using application/x-www-form-urlencoded as far as I know is not suitable for dealing with large quantity of data.

      My example, if not clear, is actually dealing with 10,000 of data range.


      Is adding variable using URL is suitable in this case?

      I am a newbie for html and PERL programming. Please bear with me, thanks.

     Post a reply


    Message from xfce on 2/16 2010, 09:20 +00:00

    Re: Input Variable


       Input--> TEST --> $Word
       ...?htx=..../path/yourtemplate&Word=$Word

      The URL will only contain the value of $Word (TEST). Without any reference to your data range.
     Post a reply

    Message from CK Loh on 2/17 2010, 04:32 +00:00

    Re: Input Variable


      xfce,

      Problem solved. Thank you very much.
     Post a reply
     
 Messages from 300 to 450: To the input form 
<< Newest messages | < Newer messages | To the input form | Older messages > | Oldest messages >>


Back to the homepage

© baseportal.com. All rights reserved. Terms of use



baseportal.com