Results 1 to 6 of 6

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

  1. #1
    Rui
    Rui is offline Private First Class
    Join Date
    Dec 2009
    Posts
    7

    Cool 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

  2. #2
    Rui
    Rui is offline Private First Class
    Join Date
    Dec 2009
    Posts
    7

    Default 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

  3. #3
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


  4. #4
    Rui
    Rui is offline Private First Class
    Join Date
    Dec 2009
    Posts
    7

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

    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

  5. #5
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

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

    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!


  6. #6
    Rui
    Rui is offline Private First Class
    Join Date
    Dec 2009
    Posts
    7

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

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49