Jump to content

joshspaulding

Members
  • Posts

    26
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://www.ethicalim.com/

Profile Information

  • Gender
    Male
  • Location
    Indianapolis Area
  • Interests
    Internet Marketing, Coding, Self Sufficiency, Organic Gardening, Farming
  • Age
    32

joshspaulding's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for the replies. Maybe "newbie" is the wrong word. I've already started learning basic PHP. I know HTML, I understand how everything works together (html, php, mysql etc.) Right now I'm looking for more specific guidance on the dynamic pages that contain the rags, but do not contain any php... I've been "around" code for about 8 years. I can't provide the code because this particular web app shared with a partner and he wouldn't want any code in public. He's a coder ... a very busy one ... and I'm just trying to learn things here and there on the side. So basically we have several pages in a /templates/ directory like the root (index.html) login.html learn-more.html etc. etc. Each of them use tags like [menu] (for the top nav menu) [title] in the heading etc. I can modify index.html from within the templates folder and when I upload the changes I can see the changes live at the root of the site, but when I modify learn-more.html (for example) it doesn't change the dynamic page ?action=learnmore ... is this simply an issue of finding the correct directory on the server? yeah, I'm not trying to get into that yet. Althogh I've been toying with WordPress here and there for about 8 years.
  2. I'm a pretty raw newbie with PHP, but I've been around html and code for about 8 years, so a little more knowledgeable than the average newbie. Just for a little background. Right now I'm looking into dynamic php pages and I believe I have a high level understanding of how it works in regards to "splicing" up a page into a header, content and footer and then displaying the page. Seems pretty simple. But I have a site that does this a little differently. It uses [menu] [title] etc. tags within the html pages and the html pages do not include any php at all... they are in a /templates/ directory though. Can someone give me a quick explanation of how that works? You don't have to get incredibility detailed unless you want to... really just looking for someone to point me in the right direction. Thanks!!
  3. hmm ok. Is there another html option that is respected by all browsers? Or, a PHP option? The option you mentioned seemed to just echo a statement on the results page.?
  4. This displays the echo on the results page. Do you know how I could make a "required" pop up window display on submit if one of the questions isn't answered?
  5. Jessica - I actually agree with doing your own research. Doctors also recommend vaccines and crazy amounts of antibiotics when they aren't needed, which often times does more harm than good. But the fact is, we are in a PHP forum Not a health discussion forum. The script I referenced above, as I said, is for our own use and really it's not even for our own use... it's just something I threw together for a little practice. This is why it's usually not a good idea to assume things Lets stick to PHP, since we're in a PHP forum. Then we won't have to waste our time with pointless arguments.
  6. No offense, but I think I'll get my health advice from doctors and my php advice from here Have a good one.
  7. P.S. Although this is 100% off-topic and probably shouldn't even be discussed here and since you seem to be so concerned with what I'm doing: The metrics come from our Pediatrician (what is your medical degree by the way?) who advised us that our son (not yours, or anyone else's) should be getting about 2x's to 2.5x's his body weight in pounds for the first 6 months of his life. Thank you for being so concerned though and I wish you the best of luck with your medical career.
  8. lol This is not a tool that I'm releasing to the public and I'm not looking for medical advice, only PHP advice
  9. I got it. Wrapped round() around the operators and then added ,2 because after I added them it rounded to a whole number, whereas I need it to be a fraction, just not that long of a fraction. Thanks again everyone!
  10. Thanks guys!! Sorry for the newbness lol but how would I implement that in this code? $minoz = $_POST['weight']; $outcomeMin = $minoz * 2; $outcomeMax = $minoz * 2.5; $outcomeHourlymin = $outcomeMin / 24; $outcomeHourlymax = $outcomeMax / 24; echo "Your baby needs from $outcomeMin oz. to $outcomeMax oz. of breastmilk per day or $outcomeHourlymin oz. to $outcomeHourlymax oz. per hour."
  11. Another basic one for you. I just created a little script that asks the user for the current weight of their baby and when submitted it tells them how much breastmilk their baby needs per hour and per day. But the per hour numbers look like this (for example) 0.916666666667 How can I make it look like this: 0.9 ? Thanks!!
  12. Thanks for the reply. ok, so the benefit of get is in it's ability to bypass hidden fields. Is that THE benefit or only one of many examples?
  13. I have a super newbie question for you guys today. I'm almost done with a PHP tutorial and for the most part I understand very basic PHP. In some cases the confusion isn't in how something works or how it's accomplished that is challenging to me, but why and/or when it is used. Like get and post with forms. I understand how they both work for the most part, but I don't understand why you would ever use get instead of post. They accomplish the same thing, correct? From my understanding, the only difference is that get appends the variables to the URL, whereas post hides the variables. But both options accomplish the same thing. Or is my understanding wrong? If I'm right, then why would you ever need to use get?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.