Re: writing html in php.............. newbie question

From: Date: Fri, 23 Aug 2002 17:39:16 +0000
Subject: Re: writing html in php.............. newbie question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113834@lists.php.net to get a copy of this message
First try: function drawplot() { ?> <HTML><HEAD><TITLE>DrawPlot Printing Results</TITLE></HEAD> <BODY> <APPLET CODE="Drawplot.class" CODEBASE="http://<?=$codebase?>/Volcano/wui/plotter/drawplot" WIDTH=680 HEIGHT=540> etc... <? } Then if you call this function, you don't open a new window or something like that (?) so you do'nt need <HTML> <BODY> etc strip that off. Op vrijdag 23 augustus 2002 20:16, schreef u: > Hi all: > > I am just trying to display an applet using php.... but for some reason it > doesn't load (applet loads, but keeps saying nullpointer in the java > console....) > > i know the code works as I have tried using cgi to return it as a html > page, and it displays the information.... > > here is the code. > > function drawplot() > { > print "<HTML><HEAD><TITLE>DrawPlot Printing > Results</TITLE></HEAD>\n"; > print "<BODY>\n"; > print "<APPLET CODE=\"Drawplot.class\" > > CODEBASE=\"http://$codebase/Volcano/wui/plotter/drawplot\"\n"; > print " WIDTH=680 HEIGHT=540 >\n"; > print " <PARAM NAME=\"file\" VALUE=\"many\">\n"; > print " <PARAM NAME=\"filelist\" > VALUE=\"isospace.txt,isoline.txt\">\n"; print " <PARAM > NAME=\"session\" > VALUE=\"BP1030124307\">\n"; > print " </APPLET>"; > print "</BODY>"; > print "</HTML>"; > } > > and i call drawplot somewhere else... > > can i not do this in php?? please help. > > Thanks in advance.

« previous php.general (#113834) next »