Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
PHP
$d='http://fenopy.se/?keyword=xx';
   
$data= file_get_html($d);


above code is working fine but please help me to correct the below code

PHP
$t=$_POST["t"];
 $d='http://fenopy.se/?keyword='.$t;
   
$data= file_get_html($d);
Posted
Comments
Ranjan.D 25-Oct-13 13:24pm    
Check whether your POST request is passing in a value for 't'
Thomas Daniels 25-Oct-13 13:24pm    
What's the content of $_POST["t"]?
You can use var_dump to find this out.
vishnulalr 25-Oct-13 13:29pm    
$_POST["t"] value is "xx"
from the form textfield how can i remove " from the string
Thomas Daniels 25-Oct-13 13:33pm    
Can you show your full code please?
vishnulalr 25-Oct-13 13:43pm    
$t=$_GET["t"];
if($t=="")
{}else{


$data= file_get_html("http://fenopy.se/?keyword=".$t);

this is teh fulll code but if i use


$data= file_get_html("http://fenopy.se/?keyword=xxx"); it will give the result

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