Multi Language + php

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

    • Dec 2005
    • 8

    Multi Language + php

    Hello!

    My name is Vadim Eidlin. I'm manager of Best-Elite-Club.com . I have a couple of questions.

    First. How can I enable a multi language support for cPanel? I want to make the cPanel in Russian.

    Second. I have some problems with my php form. This is a regular registration form, when I'm trying to full it and send nothing happend. May be there is a problem with php.ini file?

    Best regards,

    Vadim Eidlin.
  • VodaHost
    General & Forum Administrator

    • Mar 2005
    • 12356

    #2
    Re: Multi Language + php

    zdravstvuite vadim,

    The cPanel & BlueVoda come in English only. The php.ini file is fine. Are you
    usng BlueVoda to build your form?

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    02036089024 / United Kingdom
    291916438 / Australia

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


    Comment

    • eliteclub
      Private First Class

      • Dec 2005
      • 8

      #3
      Re: Multi Language + php

      Hi!

      I'm not using BlueVoda, just a simple php script. What must I do?

      Comment

      • Brad
        Forum Administrator

        • Jun 2005
        • 525

        #4
        Re: Multi Language + php

        check your script...the servers are working fine.

        VodaHost

        Your Website People!
        1-302-283-3777 North America / International
        02036089024 / United Kingdom
        291916438 / Australia

        ------------------------

        Top 3 Best Sellers

        Web Hosting - Unlimited disk space & bandwidth.

        Reseller Hosting - Start your own web hosting business.

        Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


        Comment

        • navaldesign
          General & Forum Moderator

          • Oct 2005
          • 12080

          #5
          Re: Multi Language + php

          Originally posted by eliteclub
          Hi!

          I'm not using BlueVoda, just a simple php script. What must I do?
          Hi,

          upload the link to your form page. I'll have a look at it if you want
          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

          • eliteclub
            Private First Class

            • Dec 2005
            • 8

            #6
            Re: Multi Language + php

            Hello, navaldesign!

            The link: http://www.best-elite-club.com/mail1.php

            This site is in Russian....

            thank you!

            Comment

            • Watdaflip
              Major General

              • Sep 2005
              • 2116

              #7
              Re: Multi Language + php

              It would be a php version issue, I hada few problems with some scripts I made when I switched it from my previous server which used 5.x, over to vodahost which uses 4.x

              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

              • eliteclub
                Private First Class

                • Dec 2005
                • 8

                #8
                Re: Multi Language + php

                hi!

                Where can I find php.ini file on my web server?

                Still, I have the same oroblem with php script.

                Comment

                • navaldesign
                  General & Forum Moderator

                  • Oct 2005
                  • 12080

                  #9
                  Re: Multi Language + php

                  Originally posted by eliteclub
                  Hello, navaldesign!

                  The link: http://www.best-elite-club.com/mail1.php

                  This site is in Russian....

                  thank you!


                  Sorry, the link http://www.best-elite-club.com/mail1.php

                  only gets me to a link page. Could you upload the code so I can have a look?
                  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

                  • eliteclub
                    Private First Class

                    • Dec 2005
                    • 8

                    #10
                    Re: Multi Language + php

                    Hello, navaldesign!

                    The script is here: http://www.best-elite-club.com/mail1.txt, go to View HTML code.

                    By the way, I have another site with naval theme: www.bestscalemodels.com - Ship Model Club. What do you think?

                    Thanx.

                    Comment

                    • navaldesign
                      General & Forum Moderator

                      • Oct 2005
                      • 12080

                      #11
                      Re: Multi Language + php

                      Originally posted by eliteclub
                      Hello, navaldesign!

                      The script is here: http://www.best-elite-club.com/mail1.txt, go to View HTML code.

                      By the way, I have another site with naval theme: www.bestscalemodels.com - Ship Model Club. What do you think?

                      Thanx.
                      Just a rush look since I don't have time. I'll get a better look this evening.
                      Change the mail to: email adress with an email address hosted on your site

                      that is it should be an account type: myemail@best-elite-club.com. My forms didn't work neither without smtp autentication till i emailed the results to my Vodahost email. Try it and we shall see
                      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

                      • eliteclub
                        Private First Class

                        • Dec 2005
                        • 8

                        #12
                        Re: Multi Language + php

                        Thanx, navaldesign!

                        I've changed the email and now I get the form by email. BUT! The fields with needed info is empty :( There is no any info transfered from registration form... What should I do?

                        Best regards.

                        Comment

                        • navaldesign
                          General & Forum Moderator

                          • Oct 2005
                          • 12080

                          #13
                          Re: Multi Language + php

                          Originally posted by eliteclub
                          Thanx, navaldesign!

                          I've changed the email and now I get the form by email. BUT! The fields with needed info is empty :( There is no any info transfered from registration form... What should I do?

                          Best regards.
                          Please send me the Bluvoda page in bv format so I can take a look at the form page and see what I can do, though russian makes my life difficult. it is most probable there is something wrong with the ecryption type in relation to your form processing script, or the manes of the variables. By the way, the link you gave me for the form page, doesn't get me to your form page. Attach the file to me email and send it to me.
                          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

                          • navaldesign
                            General & Forum Moderator

                            • Oct 2005
                            • 12080

                            #14
                            Re: Multi Language + php

                            Originally posted by eliteclub
                            Thanx, navaldesign!

                            I've changed the email and now I get the form by email. BUT! The fields with needed info is empty :( There is no any info transfered from registration form... What should I do?

                            Best regards.
                            ok. Vadim,

                            this is what I came out with:

                            1. Copy the following code, and save it as your php page (http://www.best-elite-club.com/mail1.php). If you want to make a beautiful thankyou page, you can build a page in Bluevoda, insert the script i'm providing you, go to page properties and set the extension to php instead of html, and save/publish it on your server as mail1.php . In that case it will be extremely easy to redirect to whichever page you want to, either automatically or by inserting a link, by simply adding a small piece of code. Another option, that i prefer, is to ad a redirecting piece of code at the end of the script, so as not to mix the script part with the visual part. This piece of code redirects you to the thankyou page. Of course, in that case, the ending part of the script has to be changed. If you need help for that, contact me.

                            Here's the code:


                            <?php



                            @
                            $name1 = addslashes($_POST['name1']);

                            @
                            $dyear = addslashes($_POST['dyear']);

                            @
                            $passport = addslashes($_POST['passport']);

                            @
                            $adresa = addslashes($_POST['adresa']);

                            @
                            $city = addslashes($_POST['city']);

                            @
                            $region = addslashes($_POST['region']);

                            @
                            $postindex = addslashes($_POST['postindex']);

                            @
                            $country = addslashes($_POST['country']);

                            @
                            $telefon = addslashes($_POST['telefon']);

                            @
                            $email = addslashes($_POST['email']);

                            @
                            $name2 = addslashes($_POST['name2']);

                            @
                            $passport2 = addslashes($_POST['passport2']);

                            @
                            $sponsnamber = addslashes($_POST['sponsnamber']);

                            @
                            $sponsname = addslashes($_POST['sponsname']);

                            @
                            $sponsadress = addslashes($_POST['sponsadress']);

                            @
                            $sponscity = addslashes($_POST['sponscity']);

                            @
                            $sponsregion = addslashes($_POST['sponsregion']);

                            @
                            $sponsindex = addslashes($_POST['sponsindex']);

                            @
                            $sponscountry = addslashes($_POST['sponscountry']);

                            @
                            $sponstelefon = addslashes($_POST['sponstelefon']);



                            if (strlen(
                            $name1) <0)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid name1</font></p>");

                            }

                            if (strlen(
                            $name1) >50)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid name1</font></p>");

                            }

                            if (strlen(
                            $name1) == 0 )

                            {

                            die(
                            "<p align=\"center\"><font face=\"Vrinda\" size=\"4\"color=\"#FF0000\">name1 is empty </font></p>");

                            }

                            if (strlen(
                            $dyear) <0)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid dyear</font></p>");

                            }

                            if (strlen(
                            $dyear) >50)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid dyear</font></p>");

                            }

                            if (strlen(
                            $dyear) == 0 )

                            {

                            die(
                            "<p align=\"center\"><font face=\"Vrinda\" size=\"4\"color=\"#FF0000\">dyear is empty </font></p>");

                            }

                            if (strlen(
                            $passport) <0)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid passport</font></p>");

                            }

                            if (strlen(
                            $passport) >50)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid passport</font></p>");

                            }

                            if (strlen(
                            $passport) == 0 )

                            {

                            die(
                            "<p align=\"center\"><font face=\"Vrinda\" size=\"4\"color=\"#FF0000\">passport is empty </font></p>");

                            }

                            if (strlen(
                            $adresa) <0)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid adresa</font></p>");

                            }

                            if (strlen(
                            $adresa) >50)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid adresa</font></p>");

                            }

                            if (strlen(
                            $adresa) == 0 )

                            {

                            die(
                            "<p align=\"center\"><font face=\"Vrinda\" size=\"4\"color=\"#FF0000\">adresa is empty </font></p>");

                            }

                            if (strlen(
                            $city) <0)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid city</font></p>");

                            }

                            if (strlen(
                            $city) >50)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid city</font></p>");

                            }

                            if (strlen(
                            $city) == 0 )

                            {

                            die(
                            "<p align=\"center\"><font face=\"Vrinda\" size=\"4\"color=\"#FF0000\">city is empty </font></p>");

                            }

                            if (strlen(
                            $region) <0)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid region</font></p>");

                            }

                            if (strlen(
                            $region) >50)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid region</font></p>");

                            }

                            if (strlen(
                            $region) == 0 )

                            {

                            die(
                            "<p align=\"center\"><font face=\"Vrinda\" size=\"4\"color=\"#FF0000\">region is empty </font></p>");

                            }

                            if (strlen(
                            $postindex) <0)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid postindex</font></p>");

                            }

                            if (strlen(
                            $postindex) >50)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid postindex</font></p>");

                            }

                            if (strlen(
                            $postindex) == 0 )

                            {

                            die(
                            "<p align=\"center\"><font face=\"Vrinda\" size=\"4\"color=\"#FF0000\">postindex is empty </font></p>");

                            }

                            if (strlen(
                            $country) <0)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid country</font></p>");

                            }

                            if (strlen(
                            $country) >50)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid country</font></p>");

                            }

                            if (strlen(
                            $country) == 0 )

                            {

                            die(
                            "<p align=\"center\"><font face=\"Vrinda\" size=\"4\"color=\"#FF0000\">country is empty </font></p>");

                            }

                            if (strlen(
                            $telefon) <0)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid telefon</font></p>");

                            }

                            if (strlen(
                            $telefon) >50)

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid telefon</font></p>");

                            }

                            if (strlen(
                            $telefon) == 0 )

                            {

                            die(
                            "<p align=\"center\"><font face=\"Vrinda\" size=\"4\"color=\"#FF0000\">telefon is empty </font></p>");

                            }

                            if (! ereg(
                            '[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $email))

                            {

                            die(
                            "<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid email</font></p>");

                            }

                            if (strlen(
                            $email) == 0 )

                            {

                            die(
                            "<p align=\"center\"><font face=\"Vrinda\" size=\"4\"color=\"#FF0000\">email is empty </font></p>");

                            }



                            $pfw_header = "From: $email\n"

                            . "Reply-To: $email\n";

                            $pfw_subject = "WebForm Submission";

                            $pfw_email_to = "youremail@yourdomain.com";

                            $pfw_message = "name1: $name1\n"

                            . "dyear: $dyear\n"

                            . "passport: $passport\n"

                            . "adresa: $adresa\n"

                            . "city: $city\n"

                            . "region: $region\n"

                            . "postindex: $postindex\n"

                            . "country: $country\n"

                            . "telefon: $telefon\n"

                            . "email: $email\n"

                            . "name2: $name2\n"

                            . "passport2: $passport2\n"

                            . "sponsnamber: $sponsnamber\n"

                            . "sponsname: $sponsname\n"

                            . "sponsadress: $sponsadress\n"

                            . "sponscity: $sponscity\n"

                            . "sponsregion: $sponsregion\n"

                            . "sponsindex: $sponsindex\n"

                            . "sponscountry: $sponscountry\n"

                            . "sponstelefon: $sponstelefon\n";

                            *****(
                            $pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;

                            // use the following line if you simply want a thankyou message

                            echo("<p align='center'><font face='Arial' size='3' color='#FF0000'>Thankyou for your submission !</font></p>");

                            // use the following line if you want to redirect to a thankyou page. Erase the "//" before the "header"

                            //header("Location: thankyou_page.html");

                            ?>



                            Don't forget to change the youremail@yourdomain.com with your real email on your Voda account.

                            The field lenght of 50 can be changed to whatever you want. Change the messages in Russian.

                            2. Change the form page code, in the following line:

                            from:

                            <form action="http://www.best-elite-club.com/mail1.php" method="get">


                            to:

                            <form action="http://www.best-elite-club.com/mail1.php" method="POST" enctype="multipart/form-data">

                            I have already tried the form and it works perfektly.

                            Of course you can build personalised error pages for every kind of error as i did in my form. In your case I preffered simple messages. Have a look at the link
                            Discussion and help related to designing and implementing forms in the BlueVoda Website Builder.


                            and you may also want to change the type of validation of the fields.

                            For obvious reasons I used English and I also used as field titles the field names themselves, but you can change in Russian the message titles.

                            If you need further help contact me
                            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

                            • eliteclub
                              Private First Class

                              • Dec 2005
                              • 8

                              #15
                              Re: Multi Language + php

                              Hello, Navaldesign!

                              THANK YOU! You are just great! Everything works perfect!

                              How can I get also an IP number of the person? What must I add in mail1.php ?

                              Thanx!

                              Comment

                              Working...
                              X