Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links



Php output as html page

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 04-08-2009
Member
 
Join Date: Feb 2009
Posts: 73
Php output as html page

I am trying to add some dynamic content to an existing HTML page, which will allow my visitors to select any image from a form and when they submit they would be taken to a page where they can copy and paste the code. The problem over here is i can't echo the html code. Does anyone know how to Echo html and i am trying to use the following code.

PHP Code:
if ($file == "one"){ 
echo 
"<embed src="$url_1" width="$width" height="$height" type="application/x-shockwave-flash"></embed>"
Reply With Quote
  #2  
Old 04-08-2009
Modifier's Avatar
Member
 
Join Date: Jan 2008
Posts: 1,502
PHP Programming html output

In that case you can use the below code for echo where both are same. . If you use single quotes, your html should have double quotes. The second one uses single quotes in the html, but has the added benefit of allowing newlines and such. You could combine the two and have both benefits, so it totally depends upon you which echo u want to use

PHP Code:
echo '<a href="http://forums.techarena.in">Link</a>';

echo 
"<a href='http://forums.techarena.in'>Link</a>\n"
Reply With Quote
  #3  
Old 04-08-2009
Member
 
Join Date: Feb 2009
Posts: 73
Php output as html page

I am very much confused with it can you provide me the full code in a proper way so that it would be very simple for me to understand the code because i am not able to understand it. I would be very thankful to you.
Reply With Quote
  #4  
Old 04-08-2009
Member
 
Join Date: Jan 2009
Posts: 126
Php output as html page

Try to use the following code and you would be able to have Php output as html page

<?php

$url_1 = $_POST['url'];
$fil_1 = $_POST['file'];
$width_1 = $_POST['width'];
$height_1= $_POST['height'];


if ($file == "one"){
echo "<embed src=\"$url_1\" width=\"$width_1\" height=\"$height
_1\" type=\"application/x-shockwave-flash\"></embed>";
}
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Php output as html page"
Thread Thread Starter Forum Replies Last Post
How to jump down in a Html page Ron1 Software Development 2 13-06-2009 07:14 PM
How to embed a WMV into an html page Ameyaa Software Development 2 19-05-2009 11:37 AM
VB6.0 link html page Taipai Software Development 3 26-01-2009 06:34 PM
page's HTML preload screwball Software Development 5 24-09-2008 06:56 PM
!!! vbScript Output to an HTML File !!!!! Ahmed H. Habashy Windows Server Help 2 28-11-2006 02:49 PM


All times are GMT +5.5. The time now is 11:58 AM.