/    Sign up×
Community /Pin to ProfileBookmark

What is this?

<li><a href=”{baseurl}/index.php?action=page_display&amp;PageID=2″ title=””>Contact Us</a></li>

We are calling index.php. And sending it an action=page_display etc. But what is the “&amp”?

Thanks

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@GeorgeJohnsonNov 27.2004 — action=page_display&PageID=2

action is a variable, and in the target script you would reference $_GET['action'] and its value would equal "page_display"

THe & tells the script you are sending a 2nd variable after the first, which is "PageID" and you would get access to it at $_GET['PageID'] and its value would equal "2".

Whoever's script your are reading is using the PHP script language.
Copy linkTweet thisAlerts:
@dennis99authorNov 27.2004 — Thanks, but what does the word "amp" do?
Copy linkTweet thisAlerts:
@dennis99authorNov 27.2004 — The original code should have looked like:

index.php?action=page_display&amp;PageID=3

I don't know what happened to the word "Amp" when I posted the first time.
Copy linkTweet thisAlerts:
@dennis99authorNov 27.2004 — The forum is removing the word "amp" when I post. Wonder why?
Copy linkTweet thisAlerts:
@Paul_JrNov 27.2004 — &amp;amp; is an HTML entity, it represents the ampersand, &amp;.

The reason &amp;amp; showed up as &amp; is because HTML entities are parsed by this forum. So to show &amp;amp; you need to type &amp;amp;amp;.
×

Success!

Help @dennis99 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.28,
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,
)...