Results 1 to 17 of 17

Thread: Multi Language + php
      
   

  1. #1
    eliteclub is offline Private First Class
    Join Date
    Dec 2005
    Posts
    8

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

  2. #2
    VodaHost's Avatar
    VodaHost is offline General & Forum Administrator
    Join Date
    Mar 2005
    Location
    Wilmington, Delaware USA
    Posts
    11,428

    Default 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
    07031847328 / United Kingdom

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

    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)



  3. #3
    eliteclub is offline Private First Class
    Join Date
    Dec 2005
    Posts
    8

    Default Re: Multi Language + php

    Hi!

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

  4. #4
    Brad's Avatar
    Brad is offline Forum Administrator
    Join Date
    Jun 2005
    Location
    Wilmington, Delaware
    Posts
    525

    Default Re: Multi Language + php

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

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

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

    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)



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

    Default Re: Multi Language + php

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


  6. #6
    eliteclub is offline Private First Class
    Join Date
    Dec 2005
    Posts
    8

    Default Re: Multi Language + php

    Hello, navaldesign!

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

    This site is in Russian....

    thank you!

  7. #7
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default 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

  8. #8
    eliteclub is offline Private First Class
    Join Date
    Dec 2005
    Posts
    8

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

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

    Default Re: Multi Language + php

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


  10. #10
    eliteclub is offline Private First Class
    Join Date
    Dec 2005
    Posts
    8

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

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

    Default Re: Multi Language + php

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


  12. #12
    eliteclub is offline Private First Class
    Join Date
    Dec 2005
    Posts
    8

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

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

    Default Re: Multi Language + php

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


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

    Default Re: Multi Language + php

    Quote 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
    http://www.vodahost.com/vodatalk/forms/2887-auto-response-mail-registry-form.html

    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!


  15. #15
    eliteclub is offline Private First Class
    Join Date
    Dec 2005
    Posts
    8

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

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

    Default Re: Multi Language + php

    Quote Originally Posted by eliteclub
    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!
    Hi eliteclub,

    here is the code you need (I also added date and browser information)

    // Find Server date and Time
    $date = date("l jS F Y, g:i A");

    // Find Browser and IPaddress
    $browser =$_SERVER['HTTP_USER_AGENT'];

    $ip = $_SERVER['REMOTE_ADDR'];



    You must add this code just at the second line of the script.

    Then to insert the information in the body of your email, add the following lines at the end of the mail body creation part (you will see it immediately because it has the same format):

    . "---------------------------------------\n"
    . "Date and Server time of submission: $date\n"
    . "Browser : $browser\n"
    . "IP address : $ip\n";

    Hope everything works out fine

    Have a nice Xmas
    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!


  17. #17
    eliteclub is offline Private First Class
    Join Date
    Dec 2005
    Posts
    8

    Default Re: Multi Language + php

    Hello, Navaldesign!

    Thank you again for help! Everything works great!

    Happy Holidays!

    Best regards,
    Vadim Eidlin

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