473,386 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Echo an iframe with a html src that has a php variable

I have a problem on this code

<iframe src="<?php echo $gateway_url; ?>" frameborder="0" scrolling="no"></iframe>

I want to call up the $gateway_url but I am having this error

Parse error: syntax error, unexpected '<'

Can someone help me
Mar 28 '14 #1
2 10357
I hope this will show you where i want to achieve

$gateway_url = $url."?ORDERID=".$orderid."&SESSIONID=".$sessionid ;

<iframe src="<?php echo $gateway_url; ?>" frameborder="0" scrolling="no"></iframe>
Mar 28 '14 #2
koharu
10
Maybe try;

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. $gateway_url = $url."?ORDERID=".$orderid."&SESSIONID=".$sessionid;
  3.  
  4. echo '<iframe src="{$gateway_url}" frameborder="0" scrolling="no"></iframe>';
  5. ?>
Without seeing the rest of your code, debugging is not really possible.
May 5 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Gnarlodious | last post by:
I want to send a variable to a styleswitching script that will be a function of where the script is in the folder structure. The script will then assemble the stylesheet URL around the variable....
7
by: Dawsons | last post by:
So i sit here thinking, and wondering... say for example i have a variable called $definition_london Say for exaple that has not set value... Is it possible to echoe thew ACTUAL variable...
3
by: Dave Kelly | last post by:
From a html page menu I need to pass 2 variables. <a href="signup.php?var1=list-PINSS.php&var2=blurb-PINSS.php"><h3>Padre Island National Sea Shore</h3></a><br> These go to a php web page...
4
by: Judith1945 | last post by:
I apologize if this is too often asked. I've just spent way too much time looking for an answer to no avail. I'm doing some major documentation that is split into various files. I want to create...
1
by: andersond | last post by:
I have a web application that relies on CGI pages to manipulate data captured and displayed in a series of html pages. On one of those pages I display comparative quotes and use javascript to...
5
by: savyatha | last post by:
this is savyatha trying to learn & do a project using HTML, PHP with DATABASE CONNECTIVITY. iam unable to get the desired output due to the problems iam facing. they are: if i write action then...
5
by: pbd22 | last post by:
Hi. I am trying to poll a long-running process via a hidden IFrame. I am noticing that the online errata gives advice for handling a server response: window.parent.handleServerResponse(); ...
5
victorduwon
by: victorduwon | last post by:
Hi guys, I wanted to know if anyone knew if it was possible to use iframe to view only a particular section of a site in another page. I ask because I want to view only the body of a...
1
by: metomeya | last post by:
I was wondering what the code would be to have 3 different submit buttons that would change the website iframe (or a css box) web page being displayed. thanks
3
by: kierandes | last post by:
Hey Guys, I am trying to make a iframe that changes depending on variables I call from a database. The database is working, variables are filling up, but I am having trouble with the echoing a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.