how to oading data to a form "on page load"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Rui
    Private First Class

    • Dec 2009
    • 7

    how to oading data to a form "on page load"

    Hello,

    I'm new here and waiting for the activation of my domain ( VodaHost says about 24h ). First of all sorry about my english, but this forum doesn't "work" in portuguese...

    This is the core of my project:

    1 - Load a page with a form.
    2 - When the page is loaded I need to fill AUTOMATICLY some "edit boxes" from a "abc.CSV" file. ( this is important because this text file is going to asend from a ***.
    3 - Then the user fill a certain number of check boxes.
    4 - Finaly on the "submit" button I need to generate a PDF ( with the "abc" name of the CSV file ) for later download by the user.

    Can some one give an idea how can I do this ?
    Is it possible to do with BlueVoda ?

    Thank you very much on advance,

    Rui Gomes
  • Rui
    Private First Class

    • Dec 2009
    • 7

    #2
    Re: how to Loading data to a form "on page load"

    Sorry but correcting some errors.

    Correct Title:

    "how to Load data to a form "on page load"



    The "***" means Personal Data Assistant (P.D.A.) the forum cut the name.

    Thanks,

    Rui Gomes

    Comment

    • navaldesign
      General & Forum Moderator

      • Oct 2005
      • 12080

      #3
      Re: how to oading data to a form "on page load"

      You need some script to acheive (part) of the tasks you are after:

      2. You need a script that will "read" the file. Alternatively, if the vaues are static, you can hardcode them.
      3. This is the easy part, if your form is PHP: put, in each editbox, as initial value, this code:

      <? echo $value; ?> where $value is the correct value as read from the CSV file.

      4. For later use as PDF file, storing the data submitted in a database is necessary. However, creating the PDF is difficult enough. I suggest better a HTML template which will display the info submitted.
      Navaldesign
      Logger Lite: Low Cost, Customizable, multifeatured Login script
      Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
      DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
      Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

      Comment

      • Rui
        Private First Class

        • Dec 2009
        • 7

        #4
        Re: how to oading data to a form &quot;on page load&quot;

        Thanks Navaldesign for the fast answer.

        As I understand:

        1 - I can do the Form and the all page with BlueVoda.
        2 - I Need a script to automaticly read the "abc.CSV" file.

        Sample CSV file:

        "Navaldesign,32,12324,General,Forum,100"

        Question:

        Do you thik it is better to read these file to a database and the load the form ?

        Regarding this part of you post:

        "...3. This is the easy part, if your form is PHP: put, in each editbox, as initial value, this code:

        <? echo $value; ?> where $value is the correct value as read from the CSV file.
        ... "

        Can you be more specific please ? ( new in this things... )

        Regarding the PDF issue I belive is better to do things step by step.
        I dont need PDF mandatory. Basicly I nned to print a A4 page afer the client download the page.

        Thanks Again.

        Rui Gomes

        Comment

        • navaldesign
          General & Forum Moderator

          • Oct 2005
          • 12080

          #5
          Re: how to oading data to a form &quot;on page load&quot;

          1.Yes
          2. Yes
          2.A Certainly a DB is better than a CSV

          3. When you read a file row or a DB row, variables are stored as (example) $name (for the name) $address (for the address) and so on. So, if you want to have this value of the name prepopulate an editbox, simply set the editbox initial value to be <? echo $name;?>
          Navaldesign
          Logger Lite: Low Cost, Customizable, multifeatured Login script
          Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
          DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
          Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

          Comment

          • Rui
            Private First Class

            • Dec 2009
            • 7

            #6
            Re: how to oading data to a form &quot;on page load&quot;

            OK, Navaldesign.

            Semi-understand.
            I'm going to start the design based onm your "yes's" and the I ask help in the forum again.

            Thak you very much,

            Rui Gomes.

            Have a Nice 2010 !!!

            Comment

            Working...
            X