/    Sign up×
Community /Pin to ProfileBookmark

Sintax issue with javascript and php

Hi, i’m trying to combine javascript with php but i’m stuck now in a sintax problem.
Any help would be much appreciated. I know the issue is in the ” before the .$login_entered. and after .

The loadwindow is a popup script. So this code would launch the the fd.php get the login of the current user and open this in a external pop up window.

[code]
<a href=”javascript:loadwindow(‘FD.php?login=’.$login_entered.”,900,500)”> feedback </a>
[/code]

Thanks in advance

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@KorOct 04.2010 — maybe:
<i>
</i>&lt;a href="#" onclick="loadwindow('FD.php?login=&lt;?php echo $login_entered; ?&gt;',900,500);return false"&gt;
Copy linkTweet thisAlerts:
@fallencmdauthorOct 06.2010 — u're a genious mate. Cheers
×

Success!

Help @fallencmd 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.27,
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,
)...