dsgoodwin82's Profile User Rating: -----

Reputation: 2 Apprentice
Group:
Members
Active Posts:
47 (0.04 per day)
Joined:
08-October 11
Profile Views:
1,353
Last Active:
User is offline Mar 27 2013 11:33 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
AMD
Favorite Gaming Platform:
Playstation
Your Car:
Pontiac
Dream Kudos:
0

Latest Visitors

Icon   dsgoodwin82 has not set their status

Posts I've Made

  1. In Topic: Picture will not line up in the center under drop menus

    Posted 26 Mar 2013

    View PostKoyume, on 26 March 2013 - 01:43 PM, said:

    We need a working link or at least a screenshot to be able to see what the problem is as well.


    Well, it is not actually a hosted site yet, so I can't provide a working link because I am just running it on my machine right now. I have attached a screen shot. If of you want, I can send you a zip file with the page and all the images.Attached File  Capture2.PNG (637.52K)
    Number of downloads: 4
  2. In Topic: Results page not working...

    Posted 8 Feb 2013

    OK that problem is fixed. Thank you for the help. I am now faced with a new problem. It does not actually add the quarters and dimes up. No matter what is placed in the input, it only adds one quarter and one dime for a total of 35. I put in 50 quarters and 50 dimes and it still gave me 35 cents. It should just be $total = $quarters + $dimes, right? If someone could take a look that would be great. Thanks for the help.
    New Code:

    Input screen
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    <meta content="en-us" http-equiv="Content-Language" />
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>David Goodwin Cents Calcualtion</title>
    <link href="main.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    .auto-style1 {
    	border: 1px solid #000080;
    	background-color: #C0C0C0;
    }
    .auto-style2 {
    	text-align: left;
    }
    </style>
    </head>
    <body bgcolor="#C0C0C0">
    <h1>Welcome to David's Cents Calculation Page</h1>
    
    <p>&nbsp;</p>
    <form action="DavidGoodwin_CentsCalculationProcess.php" method="post" style="text-align: center">
    <table class="auto-style1" style="width: 55%">
    	<tr>
    		<td style="width: 282px">Pease enter number of dimes:</td>
    		<td class="auto-style2">
    		<form method="post">
    			<input name="Text1" type="text" value="<?php echo $dimes; ?>" /></form></td>
    	</tr>
    	<tr>
    		<td style="width: 282px">Please enter number of quarters:</td>
    		<td class="auto-style2">
    		<form method="post">
    			<input name="Text2" type="text" value="<?php echo $quarters; ?>" /></form></td>
    	</tr>
    	<tr>
    		<td style="width: 282px">
    		
    			<input name="Submit" style="width: 147px; height: 41px" type="submit" value="Calculate" /></td>
    		<td>&nbsp;</td>
    	</tr>
    </table>
    </form>
    
    </body>
    
    </html>
    
    


    Process Page:
    <?php
        // get the data from the form
        $quarters = $_POST['quarters'];
        $dimes = $_POST['dimes'];
        
        
        //calculate for the total number of cents
        $quarters = 25;
        $dimes = 10;
        $total = ($quarters + $dimes);
        
        
        //formatting
        $quarters_f = number_format($quarters, 0);
        $dimes_f = number_format($dimes, 0);
        $total_f = number_format($total, 0);
    ?>
    
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    <meta content="en-us" http-equiv="Content-Language"/>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>DavidGoodwin Cents Calculation</title>
    <style type="text/css">
    .auto-style1 {
    	text-align: center;
    }
    .auto-style2 {
    	border: 1px solid #000080;
    }
    </style>
    <link href="main.css" rel="stylesheet" type="text/css"/>
    </head>
    
    <body bgcolor="#C0C0C0">
    
    <h1 class="auto-style1">Total Cents</h1>
    <table class="auto-style2" style="width: 100%">
    	<tr>
    		<td style="width: 383px">Total cents in quarters:</td>
    		<td><?php echo $quarters; ?></td>
    	</tr>
    	<tr>
    		<td style="width: 383px">Total cents in dimes:</td>
    		<td><?php echo $dimes; ?></td>
    	</tr>
    	<tr>
    		<td style="width: 383px">Total all together:</td>
    		<td><?php echo $total; ?></td>
    	</tr>
    </table>
    <p class="auto-style1">&nbsp;</p>
    
    </body>
    
    </html>
    
    
    

My Information

Member Title:
New D.I.C Head
Age:
31 years old
Birthday:
November 16, 1982
Gender:
Location:
TN
Years Programming:
1
Programming Languages:
HTML
XHTML
Java

Contact Information

E-mail:
Click here to e-mail me
Yahoo:
Yahoo  dsgoodwin82
Facebook:
https://www.facebook.com/#!/

Friends

dsgoodwin82 hasn't added any friends yet.

Comments

dsgoodwin82 has no profile comments yet. Why not say hello?