Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 10-25-2007, 06:53 AM   #1 (permalink)
tiger's Avatar
 
Newb Techie

Join Date: Oct 2007

Posts: 2

tiger is on a distinguished road

Arrow Php Code Help

This is the website issue I am now having problem with when doing it in php.....The webpage is @
http://www.vicomputerguy.com/steel/dsheet2.htm the php code is below......the problem I'm having is that I dont know how to keep a running total while I'm entering infomation,and also to prevent entry of Alpha-numeric characters in each field.


right:.5pt solid black'>Light (60
watts)</td>
<td class=xl41 align=right>60</td>
<td class=xl41 align=right>60</td>
<td class=xl42><input type="Text" name= $light size="7" align=right value=0></td>
<td class=xl43 align=right><?php $lightw = $light * 60?>0</td>
<td class=xl42><input type="Text" name="lightq" size="7" align=right value=0>&nbsp;</td>
<td class=xl44 align=right>0</td>
<td class=xl26>&nbsp;</td>
</tr>
<tr height=12>
<td height=12></td>
<td class=xl25>&nbsp;</td>
<td class=xl45>2</td>
<td colspan=3 class=xl96 style='border-

Thank you!
tiger is offline  
Old 10-25-2007, 07:26 AM   #2 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,722

CrazeD will become famous soon enoughCrazeD will become famous soon enough

Default Re: Php Code Help

I think you'll find Javascript of more help here. PHP requires a page refresh before it can process new data, whereas Javascript can do it on-the-fly.
__________________

Intel Q9400 | Gigabyte EP45-UD3P | G.Skill 2x2GB DDR2 1000 | XFX HD5870

Need website help? PM me!
CrazeD is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Someone take a look at my Java code PnkFloyd27 Programming Discussions 4 06-21-2007 07:11 PM
PHP code needed Syphanx Programming Discussions 7 05-15-2007 03:03 PM
NEED help with a Javascript code...(mouseover and stuff) Quintox Web Graphics, Design, Digital Images 7 05-02-2007 05:41 PM
PHP 2-player game? thejeremy Programming Discussions 4 04-09-2007 05:01 PM
Remote file access w/ IP + PHP? thejeremy Programming Discussions 2 04-04-2007 04:24 PM