sapo
Power Member
- Feb 25, 2008
- 510
- 286
im tyring to add my php varible to an url
for example.
php varible is
and my javscript is
i need to parse the php into the url like this
I just cant figure it out this is what I came up with but you guessed it doesnt work
any help will be greatly apperciated. reps and thanked
for example.
php varible is
Code:
<?php echo 'hello!'; ?>
and my javscript is
Code:
var = 'http://site.com/login/?
i need to parse the php into the url like this
Code:
var = 'http://site.com/login/?[php varible]'
I just cant figure it out this is what I came up with but you guessed it doesnt work
Code:
var = url = 'http://site.com/' + '.document.write("<?php echo 'hello!'; ?>")';'
any help will be greatly apperciated. reps and thanked
Last edited: