Page 1 of 1

Script ET

Posted: Fri 08 Jan 2016 10:14 am
by MeteoBisignano
Hi I'm trying to load data from cumulus but I can not
Would you give me some help?
This is the string that loads the data "<td style =" text-align: left; padding-left: 10px ">
<input class = "button" value = "<? php echo $ t?>" id = "avgT" style = "width: 75px"> "

I tried to include the file cumuluswebtag.php also changing the value in $ temp but I do not returns.
How do you load the data from Cumulus
Here's an example page with data entered manually: http://stazionemeteobisignano.it/NOAA.php

Re: Script ET

Posted: Fri 08 Jan 2016 12:13 pm
by water01
This is the string that loads the data "<td style =" text-align: left; padding-left: 10px ">
<input class = "button" value = "<? php echo $ t?>" id = "avgT" style = "width: 75px"> "
Difficult to understand exactly what you are trying to achieve but the PHP echo command is incorrect.

If it is Average Temperature you are trying to get from cumuluswebtags.php (I assume you have

Code: Select all

<?php require "cumuluswebtags.php";?> 
in your HTML head area) then the code should be

Code: Select all

"<td style =" text-align: left; padding-left: 10px ">
<input class = "button" value = "<? php echo $avgtemp?>" id = "avgT" style = "width: 75px"> 
unless you have a variable called $ t which is against PHP syntax rules!!

Re: Script ET

Posted: Fri 08 Jan 2016 3:52 pm
by daj
This is the string that loads the data "<td style =" text-align: left; padding-left: 10px ">
<input class = "button" value = "<? php echo $ t?>" id = "avgT" style = "width: 75px"> "
There's a few things wrong here....

firstly it is <?php with NO spaces
secondly, echo $t; NO Spaces


I'm assuming you have already created a variable $t with a value?! if you are using the standard php webtags file there is no $t variable.

Any reason why you are creating a button to show the value?