I've got a PHP script that will display an image with a title and caption using the following url... http://www.blah.com/image.php?image=...%20blah%20blah
The form has 4 input values, for example a, b, c and d.
What I want is, when my Generate URL button is pressed, the values in a, b and c are copied into d along with the other stuff ("www.blah.com" "?image=" "&title=" "&caption=")
I've tried using:
But that doesn't workPHP Code:
document.forms.GenURL.value="http://www.blah.com/image.php?image=" + URL + "&title=" + Title + "&Caption=" + Caption;
and am I correct in thinking escape() should be used on all the values to make them work as a URL?
I'm kinda new at this
Thx in advance