Its driving me mad.
Posted: Wed Apr 13, 2011 5:02 am
Its driving me mad.
Ok guys this is driving me crazy.
I have done a little php and I like it but I have this problem.
I know how to pass data by url and receive it from the url with GET and POST.
But now I have a url specifically.
http://dendritics.com/scales/metal-calc ... D&Markup=0
If you load this page to browser it will give the current price of silver in $AUD/ ounce However I don’t want to load the page in the browser. I just want to get the price to work with in my own page.
In just html an Iframe will load the URL like so
<iframe src="http://dendritics.com/scales/metal-calc ... D&Markup=0" width="70%" height="270">
<p>Your browser does not support iframes.</p>
</iframe>
However if I use php to try to get a value like so
<?php
$_GET = "http://dendritics.com/scales/metal-calc ... D&Markup=0";
echo $_GET;
$v1 = $_GET['WeightU'];
$v2 = $_GET['Units'];
$v3 = $_GET['Metal'];
$v4 = $_GET['PurityC'];
$v5 = $_GET['CurrencyN'];
$v6 = $_GET['PrOzt'];
echo "Variable One Value: $v1 <br>
Variable Two Value: $v2 <br>
Variable Two Value: $v3 <br>
Variable Two Value: $v4 <br>
Variable Two Value: $v5 <br>
Variable Two Value: $v6 ";
?>
It runs ok but will not give me the values it comes back with a list like this .
Variable Two Value: h
Variable Two Value: h
Variable Two Value: h
Variable Two Value: h
Variable Two Value: h
Where in Gods name is it getting all the hs from ?????
I don’t want the page loaded in an I fram or a browser I just want the price value to work with .
How can I do this .
Please help O wize ones.
Ok guys this is driving me crazy.
I have done a little php and I like it but I have this problem.
I know how to pass data by url and receive it from the url with GET and POST.
But now I have a url specifically.
http://dendritics.com/scales/metal-calc ... D&Markup=0
If you load this page to browser it will give the current price of silver in $AUD/ ounce However I don’t want to load the page in the browser. I just want to get the price to work with in my own page.
In just html an Iframe will load the URL like so
<iframe src="http://dendritics.com/scales/metal-calc ... D&Markup=0" width="70%" height="270">
<p>Your browser does not support iframes.</p>
</iframe>
However if I use php to try to get a value like so
<?php
$_GET = "http://dendritics.com/scales/metal-calc ... D&Markup=0";
echo $_GET;
$v1 = $_GET['WeightU'];
$v2 = $_GET['Units'];
$v3 = $_GET['Metal'];
$v4 = $_GET['PurityC'];
$v5 = $_GET['CurrencyN'];
$v6 = $_GET['PrOzt'];
echo "Variable One Value: $v1 <br>
Variable Two Value: $v2 <br>
Variable Two Value: $v3 <br>
Variable Two Value: $v4 <br>
Variable Two Value: $v5 <br>
Variable Two Value: $v6 ";
?>
It runs ok but will not give me the values it comes back with a list like this .
Variable Two Value: h
Variable Two Value: h
Variable Two Value: h
Variable Two Value: h
Variable Two Value: h
Where in Gods name is it getting all the hs from ?????
I don’t want the page loaded in an I fram or a browser I just want the price value to work with .
How can I do this .
Please help O wize ones.