Click here to Skip to main content
15,883,945 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
This code has worked well
echo "You're directed to this page from $keys[2] search engine, within Keywords $keys[1] If you Like Pcboxsearch Found You search
";

I wanted to ask

Which as I write this php code on the same page

""

I have tried this code

document.write('<ifr' +="" 'ame'="" width="300" height="150" frameborder="0" '="" src="$url$keys[1]" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no">' + '');

but not working

keyword found = $url$keys[1]

src="$url$keys[1]" same src="http://www.pcboxsearch.com/search.php?q= (keyword found) "

src="$url$keys[1]" This code was the result of his writing should src="http://www.pcboxsearch.com/search.php?q=code project"

example output code
PHP
<?php
require_once('./pcboxsearch.class.php');
$keys =& new search_keywords();
$keys = $keys->get_keys();
$url ='http://www.pcboxsearch.com/search.php?q=';
if (count($keys))
{
    echo "You're directed to  this page from <b>$keys[2]</b> search engine, within Keywords <b> <a href='$url$keys[1]'> $keys[1]</a> </b> If   you Like Pcboxsearch Found You search<br>";
}

?>


//output write php


<iframe src="http://www.pcboxsearch.com/search.php?q=code project" border="0" framspacing="0" marginheight="0" marginwidth="0" vspace="0" hspace="0" frameborder="0" height="100%" scrolling="yes" width="100%"></iframe>



can you solution
Posted
Updated 18-Feb-10 23:22pm
v5

how read in php

<iframe src="http://www.pcboxsearch.com/search.php?q=code project" border="0" framspacing="0" marginheight="0" marginwidth="0" vspace="0" hspace="0" frameborder="0" height="100%" scrolling="yes" width="100%"></iframe>

I try to write this code but not working
document.write('<ifr' + 'ame' + width='300' height='150' frameborder="0"' + ' src='$url$keys[1]' marginwidth="0"' + ' marginheight="0"' + ' vspace="0"' + ' hspace="0"' + ' allowtransparency="true"' + ' scrolling="no">' + '</ifr' + 'ame>');

what a good solution
 
Share this answer
 
v2
Do you mean output an iframe?

echo '<iframe src="' . $url . urlendcode( $keys[1] ) . '" border="0" framspacing="0" marginheight="0" marginwidth="0" vspace="0" hspace="0" frameborder="0" height="100%" scrolling="yes" width="100%"></iframe>';
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900