Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

php server side script

php passing variables

3:51 am on Jul 26, 2012 (gmt 0)

New User

joined:July 25, 2012
posts: 1
votes: 0

<frame src="fac.php?id=<?php echo $_GET['id'] & echo $_GET['spl']/></frame>
is it right?
4:27 am on July 26, 2012 (gmt 0)

Junior Member

10+ Year Member

joined:June 6, 2006
votes: 2

Not sure what you're really after here but to join 2 vars together you need to do this (and note the end php correction I made)

<frame src="fac.php?id=<?php echo $_GET['id'].$_GET['spl']; ?>"></frame>

Instead of this

<frame src="fac.php?id=<?php echo $_GET['id']& echo$_GET['spl']/></frame>

In other words, say you have 2 vars.
$var1 = 'the';
$var2 = 'words';
Echo $var1.$var2; // prints as 'the words'

Hope that makes sense.
2:07 pm on July 26, 2012 (gmt 0)

Full Member

5+ Year Member

joined:Mar 22, 2011
votes: 0

cffrost2 wrote:
$var1 = 'the';
$var2 = 'words';
Echo $var1.$var2; // prints as 'the words'

I'm being nitpicky, but that would actually print "thewords"—no space in between.