/    Sign up×
Community /Pin to ProfileBookmark

cant add link to error message

Hi
Ive created a login oage which shows an erro message when an incorrect password is entered but when I add a link to try again it does not work. I just know the error will be somthing stupid. Heres my code:

[code=php]if (isset($_GET[‘p’]) && $_GET[‘p’] == “login”) {
if ($_POST[‘name’] != $username) {
echo “<p>Sorry, incorrect username please <a href=”allshoes.html”>click here </a> to try again</p>”;
exit;[/code]

It brings up the following error message:

Parse error: parse error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /web/rkhan19/ftpaccess/pub/login.php on line 20

line 20 is the line which says sorry incorrect username………Your suggestions would be greatly apreciated

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@MrCoderFeb 06.2008 — echo "<p>Sorry, incorrect username please <a href=[B][/B]"allshoes.html[B][/B]">click here </a> to try again</p>";
Copy linkTweet thisAlerts:
@james19authorFeb 06.2008 — It works, I knew it would be something silly. Thanks mr coder
Copy linkTweet thisAlerts:
@MrCoderFeb 06.2008 — Glad I could help.
×

Success!

Help @james19 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.17,
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,
)...