Jump to content

Brickley

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Brickley's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello everyone, Try as I might, "range" is not producing the kind of result I was expecting - I'm looking for a range of numbers (in this case 0 - 99) separated by commas and maybe a space (it that's not asking too much. foreach (range(0, 99) as $zipCount) {// Buid array of 100 numbered elements echo $zipCount; } ...produces this result - one long number rather than 100 numbers with commas and spaces 0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 I've tried it on safari, ff and ie7 with the same results. Any thoughts? Thanks in advance
  2. Bingo! Quotes around the PHP code is not something I'd have thought of, but works. I'm not sure I want to know what "OP" stands for. Thanks again! ---------------------------------------------------------------------- Paradox of the day: I have no choice but to believe in free will.
  3. Hello all, I have an issue with what should be a simple thing - I insert a php "echo" statement to call up a variable (a short string of several words) for the value of in an html form and the value and the result is truncated at the end of the first word. So for example this line: <input type="text" size="15" name="City" value=<?php echo($City) ?> ><br> calls the variable "$City" that contains the string "Santa Monica" - when the form loads, it displays only the first word - in this case, "Santa" and no space. This page has about 15 forms like that and all the variables I am trying to load - text and numbers - that have a space produce the same result. It doesn't matter if the variable comes from code in the page or is read from a database. Any ideas? Thanks in advance
×
×
  • 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.