Jump to content
Larry Ullman's Book Forums

enigmatic

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

1 Neutral

About enigmatic

  • Rank
    Newbie
  1. Hello everyone. I understand most of the code for the fuel calculator in chapter 3 Exercise 9. It is designed to calculate fuel costs and time taken for journey. This is based upon the Distance, the Cost per gallon and the fuel efficiency which are entered before the form is submitted. , It is only one page and most of the code is straightforward. However I haven't yet worked out why the $_POST[name] is not equivalent to 'gallon_price' after the form is submitted, since this is the default value as defined in the function create_radio and no value for the $name is declared anywhere else.
×
×
  • Create New...