Jump to content

bhazzard

Members
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutral

About bhazzard

  • Rank
    Newbie
  1. Alright I am learning to code php, and I just got to using the AND operator in If statements... this worked until I added the AND operator. What am I doing wrong? <?php if (date(G) >= 4) AND (date(G) <= 12) { echo "Good Morking"; }; if (date(G) > 12) AND (date(G) <= 15) { echo "Good Afternoon"; }; if (date(G) > 15) AND (date(G) <= 18) { echo "Good Evening"; }; if (date(G) > 18) AND (date(G) <= 24) { echo "Good Night"; }; if (date(G) >= 1) AND (date(G) < 4) { echo "Up Late?"; };?> Thanks a lot.
  2. bhazzard

    Basic Question

    Hey thanks... I am new to all of this and I am learning from a published book... strange thing is, that the syntax that they gave me was wrong. So I am going to have to find a new book that knows what it is talking about.
  3. bhazzard

    Basic Question

    Yea, my apologies... the board was running slow, and I didnt realize that it was posting... Then I couldnt figure out how to delete the others. Any ideas for how I can fix this?
  4. bhazzard

    Basic Question

    I want PHP to accept the form variable userName and print it... but it want. Globals are set to off, but I've done a work around that should work.HTML File:<html><head><title>What’s your name?</title></head><body><h1>What’s your name?</h1><h3>Writing a form for user input</h3><form method="post" action="hiUser.php">Please type your name:<input type="text" name="userName" value=""><br><input type="submit"></form></body></html>PHP File:<html><head><title>hiUser.php</title>
  5. bhazzard

    Basic Question

    I want PHP to accept the form variable userName and print it... but it want. Globals are set to off, but I've done a work around that should work.HTML File:<html><head><title>What’s your name?</title></head><body><h1>What’s your name?</h1><h3>Writing a form for user input</h3><form method="post" action="hiUser.php">Please type your name:<input type="text" name="userName" value=""><br><input type="submit"></form></body></html>PHP File:<html><head><title>hiUser.php</title>
  6. bhazzard

    Basic Question

    I want PHP to accept the form variable userName and print it... but it want. Globals are set to off, but I've done a work around that should work.HTML File:<html><head><title>What’s your name?</title></head><body><h1>What’s your name?</h1><h3>Writing a form for user input</h3><form method="post" action="hiUser.php">Please type your name:<input type="text" name="userName" value=""><br><input type="submit"></form></body></html>PHP File:<html><head><title>hiUser.php</title>
  7. Sadly, you are probably right. Until these changes happen though, we all have to rely on rediculous hacks and workarounds that make our code look rediculous.
  8. thank you lugos. Those points have been helpful.I am still having a problem however with the way it displays. I "fixed" it, but now it displays properly in firefox and IE unles font size is increased by the user.
  9. okay so I have a huge gripe with the specs for the "background-attachment:" values available to us in css. Scroll means that the background image will scroll within the containing element.Fixed is a little more controversial. in IE, Fixed means that the background image is fixed to the containing element; In Mozilla it means it is fixed to the viewport. According to the specs, IE is in the wrong, but according to useful applications, I think IE was on to something.Obviously there are applications for fixed the way it stands... but there are millions of applications for fixed the way IE treats
  10. http://mason.gmu.edu/~rpotter/ietsampleAlright so I coded this site (really basic and not done yet) but before I get too far into it I wanted to check its compatibility. So if you have time, please help me. Look at in in IE, this is the way it is supposed to look. Then look at it in Netscape/firefox... how can I fix it so that it looks the way it does in IE?Thanks,BrianP.S. if you need to see the css:http://mason.gmu.edu/~rpotter/ietsample/splash-style.csshttp://mason.gmu.edu/~rpotter/ietsample/general.csshttp://mason.gmu.edu/~rpotter/ietsample/menu.css
  11. By the way, if you need the css for this page... http://mason.gmu.edu/~rpotter/ietsample/splash-style.csshttp://mason.gmu.edu/~rpotter/ietsample/general.csshttp://mason.gmu.edu/~rpotter/ietsample/menu.css
  12. http://mason.gmu.edu/~rpotter/ietsampleAlright so I coded this site (really basic and not done yet) but before I get too far into it I wanted to check its compatibility. So if you have time, please help me. Look at in in IE, this is the way it is supposed to look. Then look at it in Netscape/firefox... how can I fix it so that it looks the way it does in IE?Thanks,Brian
×
×
  • Create New...