SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Feb 2012
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do i improve this simple maths php script ?

    Hi, just started learning some php and i made this
    http://sgmarketwatch.com/test1.php

    1.) How do i make the webpage faster or calculate the value quickly ? i use the POST method maybe i should use something else ?

    2.) How do i get rid of the error msg that appears when you first load it?

    3.) How do i evolve it into the screenshot that is being attached ? i dont know what method to use, i figure something like a for loop but i am not sure what to include in its parameter. Particularly interested in the display of table rows


    Just started learning php by borrowing library books and watching video tutorial
    Thanks for the guidance

    mathsspread calculator.PNG

  2. #2
    SitePoint Member
    Join Date
    Feb 2012
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry, forget to include this

    How do i retain the value of what is being keyed in ?

    so that the user do not have to keep typing it again and again

    Thanks

  3. #3
    play of mind Ernie1's Avatar
    Join Date
    Sep 2005
    Posts
    1,252
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Save the values in session array.
    my mobile portal
    ghiris.ro

  4. #4
    SitePoint Evangelist smftre's Avatar
    Join Date
    Dec 2008
    Location
    London
    Posts
    436
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Get rid of the error by setting a default value on the line specified.
    I don't understand question part 3.
    Statvoo.com The Website Traffic Monitor
    The best way to monitor traffic to your sites for free!


    Web Development London UK We make web 3.0 applications


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •