First off, i am an EXTREME newbie to php. lots of VB background tho.
figured i make my first script easy. Ya right!![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)
When i try to run it, it gives me:
"Parse error: parse error, unexpected T_VARIABLE in /home/test/Hurriclean/qoutecode.php on line 10"
Heres a link to front end i have up:
Thanks again for yalls help.
Heres the code that i have:
<?php
/* get nums from form*/
$roomandhall=roomanhalltxt
$addroom=addroomtxt
$scotch=scotchtxt
$couch=couchtxt
$loveseat=loveseattxt
$chair=chairtxt
$drap=draptxt
$rugs=rugstxt
$stairs=stairstxt
/* figure prices for each*/
$tproomandhall=$roomandhall*10
$tpaddroom=$addromm*10
$tpscotch=$scotch*10
$tpcouch=$couch*10
$tploveseat=$loveseat*10
$tpchair=$chair*10
$tpdrap=$drap*10
$tprugs=$tprugs*10
$tpstairs=$stairs*10
/*get total price*/
$totalprice=$tproomandhall+$tpaddroom+$tpscotch+$tpcouch+$tploveseat+$chair+$tpdrap+$tprugs+$tpstairs
/*get tax of 8%*/
$tax=$totalprice*.08
/*get grand total, tax and all*/
$grandtotal=$tax+$totalprice
?>
figured i make my first script easy. Ya right!
![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)
When i try to run it, it gives me:
"Parse error: parse error, unexpected T_VARIABLE in /home/test/Hurriclean/qoutecode.php on line 10"
Heres a link to front end i have up:
Thanks again for yalls help.
Heres the code that i have:
<?php
/* get nums from form*/
$roomandhall=roomanhalltxt
$addroom=addroomtxt
$scotch=scotchtxt
$couch=couchtxt
$loveseat=loveseattxt
$chair=chairtxt
$drap=draptxt
$rugs=rugstxt
$stairs=stairstxt
/* figure prices for each*/
$tproomandhall=$roomandhall*10
$tpaddroom=$addromm*10
$tpscotch=$scotch*10
$tpcouch=$couch*10
$tploveseat=$loveseat*10
$tpchair=$chair*10
$tpdrap=$drap*10
$tprugs=$tprugs*10
$tpstairs=$stairs*10
/*get total price*/
$totalprice=$tproomandhall+$tpaddroom+$tpscotch+$tpcouch+$tploveseat+$chair+$tpdrap+$tprugs+$tpstairs
/*get tax of 8%*/
$tax=$totalprice*.08
/*get grand total, tax and all*/
$grandtotal=$tax+$totalprice
?>