www.webdeveloper.com
Results 1 to 5 of 5

Thread: How to pass URL to another page

  1. #1
    Join Date
    Apr 2012
    Location
    Egypt
    Posts
    21

    How to pass URL to another page

    I have a page contain an article this article is translated to another languages
    I want the user to be able to send the article to his friend by any language he want
    PHP Code:
    <a href="#" onclick="window.open('send.php','_blank','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=500, height=400'); return false;" style="color:#526b10;"><?=$row['lang_name']?></a>

  2. #2
    Join Date
    Jan 2009
    Posts
    3,346
    _GET variables perhaps?

  3. #3
    Join Date
    Sep 2008
    Posts
    120
    You can use the google trabslator API. https://developers.google.com/translate/

    Select langugage from your site, use the API to translate it and afterwards you send the page to friend'e email.

  4. #4
    Join Date
    Apr 2012
    Location
    Egypt
    Posts
    21
    I already have the translate saved in my database and I make an option that the user can choose one of these languages to send it to his friend even he show the site with another language

  5. #5
    Join Date
    Sep 2008
    Posts
    120
    Great. How do you display site in these different languages? I suggest by GET paramater (www.yoursite.com/?lang=LANG), then you simply send this linkm with the specific GET parameter.

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
  •  
HTML5 Development Center



Recent Articles