Handsome_devil
Handsome_devil

Reputation: 27

Inserting iframe inside html

i have this code in my index.php page:

$page->html .= "    ";

I want to put an iframe inside the " " to show correctly, but i have tried several ways and it dont work. Can you help me? I tried this:

$page->html .= "<Iframe src="/shoutcast20/index.php" width="670" height="389" frameborder="0"></Iframe> ";

Upvotes: 0

Views: 1120

Answers (1)

Suleiman Dibirov
Suleiman Dibirov

Reputation: 1023

1-st solution

$page->html .= '<Iframe src="/shoutcast20/index.php" width="670" height="389" frameborder="0"></Iframe> ';

2-nd solution:

$page->html .= "<Iframe src=\"/shoutcast20/index.php\" width=\"670\" height=\"389\" frameborder=\"0\"></Iframe> ";

^^ Try You need to put backslash before quotes or change double qoute to single qoute

Upvotes: 1

Related Questions