homepage Welcome to WebmasterWorld Guest from 54.227.67.210
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
php server side script
php passing variables
sampathraghavan




msg:4478944
 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?

 

cffrost2




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

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.

rlange




msg:4479093
 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved