Online Shopping : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

0 of 3 people (0%) answered Yes
Recently 0 of 3 people (0%) answered Yes

Entry

Hyphen/Minus/Dash problem with JavaScript,HTML and PHP

Mar 28th, 2008 17:15
ha mo, Peter Hocking,


The problem was that
$receipt
.="<tr><td>$Llounge</td><td>$dcwatts-1</td><td>$dchours-1</td><td>$whwk1</td></tr>\n";
was parsing $dcwatts-1 and $dchours-1 as -1 and no amount of escaping
would fix it so to allow a JavaScript, the HTML and PHP to function
change the hyphen/minus/dash to an underscore  ( _ ).
$receipt
.="<tr><td>$Llounge</td><td>$dcwatts_1</td><td>$dchours_1</td><td>$whwk1</td></tr>\n";
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com