Welcome to WebmasterWorld Guest from 23.23.46.20

Forum Moderators: coopster & jatar k

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.

--
Ryan
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month