How to auto refresh perioadically a image?

<?php session_start(); $url; $sym; $url1="http://chart.finance.yahoo.com/z?s="; $url3="&t=1d&q=c&l=on&z=l&p=e10,e50,e200,m100&a=m26-12-9,r14,fs&lang=en-US&region=US"; //here i m getting some text from a text box vai html form and i am equating that text to $sym that is $sym="some text from html form" $SSQL1="SELECT symbol,y_symbol,name FROM nsescripts where symbol=$sym"; //from this query i m getting the value of y_symbol with respect to given $sym $url=$url1."".$sym."".$url3; //the $url seems to be "http://chart.finance.yahoo.com/z?s=[u][b]aban.ns[/b][/u]&t=1d&q=c&l=on&z=l&p=e10,e50,e200,m100&a=m26-12-9,r14,fs&lang=en-US&region=US" $_SESSION['views']=$url; }

?>
//this is working properly and the image is displaying .but the problem is when try to auto refresh the image
the image is not displaying .that is the underlined word which is stored in variable $sym is not comming between the two variable thats $sym lost its value after a auto refresh. i tried meta refresh by putting iframe for image displaying and javscript refresh for image and iframe but it is not working .please help me .my objective is to keep the $sym variable value till the next input and image should refresh automatically periodically.thanks in advance

Have u tried javascript?

Sponsor our Newsletter | Privacy Policy | Terms of Service