/    Sign up×
Community /Pin to ProfileBookmark

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

[code=php]
<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>
[/code]

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@criterion9Apr 26.2012 — _GET variables perhaps?
Copy linkTweet thisAlerts:
@pastet89May 01.2012 — 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.
Copy linkTweet thisAlerts:
@Mohammed_ZayanauthorMay 01.2012 — 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
Copy linkTweet thisAlerts:
@pastet89May 01.2012 — 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.
×

Success!

Help @Mohammed_Zayan spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...