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)

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


4:27 am on Jul 26, 2012 (gmt 0)

5+ Year Member

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 Jul 26, 2012 (gmt 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.


Featured Threads

Hot Threads This Week

Hot Threads This Month