Welcome to WebmasterWorld Guest from 54.224.50.28

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

5+ Year Member

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
posts:103
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
posts:339
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.

--
Ryan
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members