Displaying MySql variables at a Bluevoda form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • pipesportugal
    Second Lieutenant

    • Jul 2007
    • 130

    Displaying MySql variables at a Bluevoda form

    Hello Colleagues from this forum,

    I already have the values of the mysql fields inside variables such as $name, $address and so on.

    I am placing <?php echo $name?> in the field "Initial value" on the Editbox properties, but it is not working.

    This php script was working very well with the value="<?php echo $name?>" but it had poor (normal) visual aspect and I wanted to make it a little bit more good looking.

    So, how do I place these values in the screen fields of the Bluevoda form ?

    Thanks for all the help,
    José Almeida
  • navaldesign
    General & Forum Moderator

    • Oct 2005
    • 12080

    #2
    Re: Displaying MySql variables at a Bluevoda form

    In the editbox place <? echo $name; ?> (You missed the ";")
    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

    • pipesportugal
      Second Lieutenant

      • Jul 2007
      • 130

      #3
      Re: Displaying MySql variables at a Bluevoda form

      Hello there navaldesign !

      Thanks for Your help !

      It also works fine without the ;

      What I really need to know now is how to display the contents of a mysql variable in a text area because it's showing in the field the complete phrase <?php echo $textareaname; ?> and it is not showing the real content.

      Is there any trick to do it ?

      Thanks for Your help,
      José Almeida

      Comment

      • Watdaflip
        Major General

        • Sep 2005
        • 2116

        #4
        Re: Displaying MySql variables at a Bluevoda form

        Is the page you are trying to use the php codeB on a .php page or .html. If its a .php then it perhaps BV is html encode it or something.

        Register/Login Script
        Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

        Comment

        • navaldesign
          General & Forum Moderator

          • Oct 2005
          • 12080

          #5
          Re: Displaying MySql variables at a Bluevoda form

          Originally posted by pipesportugal View Post
          Hello there navaldesign !

          Thanks for Your help !

          It also works fine without the ;

          What I really need to know now is how to display the contents of a mysql variable in a text area because it's showing in the field the complete phrase <?php echo $textareaname; ?> and it is not showing the real content.

          Is there any trick to do it ?

          Thanks for Your help,
          José Almeida
          In the same ay you are using for the edit box. If it doesn't work, there is something else wrong. I use it all the time, on almost all VH servers as well as at least 3 more hoster's servers, and it always worked.

          Make sure you have published the page as php.
          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

          • pipesportugal
            Second Lieutenant

            • Jul 2007
            • 130

            #6
            Re: Displaying MySql variables at a Bluevoda form

            Hello dear colleagues,

            I edited the .htm (tried also with .php) form "created" by BV with dreamweaver software in code view and I noticed the following:

            Instead of for example, <? echo $name;?> (which works perfect in the editbox) in this particular textarea there is the following coding:

            &lt;?php echo $remarks;?&gt

            instead of <?php echo $remarks; ?>

            so maybe this must be the reason why it doesn't work.

            Could this be a BV bug?

            Thanks really for the precious help,

            José.

            Comment

            • pipesportugal
              Second Lieutenant

              • Jul 2007
              • 130

              #7
              Re: Displaying MySql variables at a Bluevoda form

              Hi guys,

              I manually changed the &lt to <
              and the &gt to > and now IT WORKS very well.

              navaldesign, You're the expert.

              What was happening there ?

              Thanks again,
              José.

              Comment

              • navaldesign
                General & Forum Moderator

                • Oct 2005
                • 12080

                #8
                Re: Displaying MySql variables at a Bluevoda form

                Dreamweaver you said ? It has replaced < and > with their html equivalent.
                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

                • Watdaflip
                  Major General

                  • Sep 2005
                  • 2116

                  #9
                  Re: Displaying MySql variables at a Bluevoda form

                  Thats what I figured. It has html encoded the text. You should be able to prevent that by editing the contents of the textarea (or whatever it may be in the future) in the code view instead of design view

                  Register/Login Script
                  Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

                  Comment

                  • pipesportugal
                    Second Lieutenant

                    • Jul 2007
                    • 130

                    #10
                    Re: Displaying MySql variables at a Bluevoda form

                    Hi again,

                    My first idea was that this error (if we can call it an error ....) was coming from Bluevoda, so I decided to investigate a little bit, because no matter the fact that I have bought my webspace from Vodahost, I am publishing my pages, using PREVIEW/SAVE AS..... and so on, each page at a time.

                    I discovered the following:

                    In fact at BV if we right click on the page and choose HTML we can see that the html code at BV is correct with the <?php .......?>, but after You make preview/save as and You go and check the created page with NOTEPAD (not dreamweaver), there is the same "change" of the < by &lt and the > by &gt, so this drives me to the conclusion that it's (no question about it...) coming from BV.

                    Maybe one of You guys could... perhaps send a comment on this one to the BV developping team. I don't know,

                    Thanks for all,
                    José.

                    Comment

                    • navaldesign
                      General & Forum Moderator

                      • Oct 2005
                      • 12080

                      #11
                      Re: Displaying MySql variables at a Bluevoda form

                      No. Even with Preview, Save As, opening in Notepad, etc, BV does NOT change the < and > symbols. It is, somehow, a problem at your end.
                      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

                      • pipesportugal
                        Second Lieutenant

                        • Jul 2007
                        • 130

                        #12
                        Re: Displaying MySql variables at a Bluevoda form

                        navaldesign and watdaflip,

                        Thank You for Your time.

                        Regards,
                        José.

                        Comment

                        Working...
                        X