Variablenübergabe über Link

J

Jörg Heinrich

Hallo NG,

i want to transfer a variable with an link.

Example: test.html?action=edit&variable=text

Ok, thats no problem.

New example:

test.html?action=edit&variable=Romeo&Julia

"Variable" should now be "Romeo&Julia".

But "&" tells html that a new variable is comeing...

How can i transfer string "&" via Link?

Thanks a lot!

Joerg
 
P

Philip Ronan

Hallo NG,

i want to transfer a variable with an link.

Example: test.html?action=edit&variable=text

Ok, thats no problem.

New example:

test.html?action=edit&variable=Romeo&Julia

"Variable" should now be "Romeo&Julia".

But "&" tells html that a new variable is comeing...

How can i transfer string "&" via Link?

Thanks a lot!

Joerg

Change it to Romeo%26Julia
 
S

Sam Hughes

Hallo NG,

i want to transfer a variable with an link.

Example: test.html?action=edit&variable=text

Ok, thats no problem.

New example:

test.html?action=edit&variable=Romeo&Julia

"Variable" should now be "Romeo&Julia".

But "&" tells html that a new variable is comeing...

How can i transfer string "&" via Link?

Use & in place of the single ampersand.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,006
Latest member
LauraSkx64

Latest Threads

Top