bhazzard
-
Posts
12 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by bhazzard
-
-
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.
-
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?Do you need to post this 3 times? -
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></head><body><h1>Hi User</h1><h3>PHP program that receives a value from "whatsName"</h3> <?php /*gets the variables from the form on whatsName.html and outputs text*/ //retrieves the userName element from the form $userName = $_REQUEST[“userName”]; //outputs text and html echo "<h3>Hi there, $userName!</h3>"; ?></body></html>Thanks in advance for your help. I am a newbie and I am trying to learn.
-
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></head><body><h1>Hi User</h1><h3>PHP program that receives a value from "whatsName"</h3> <?php /*gets the variables from the form on whatsName.html and outputs text*/ //retrieves the userName element from the form $userName = $_REQUEST[“userName”]; //outputs text and html echo "<h3>Hi there, $userName!</h3>"; ?></body></html>Thanks in advance for your help. I am a newbie and I am trying to learn.
-
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></head><body><h1>Hi User</h1><h3>PHP program that receives a value from "whatsName"</h3> <?php /*gets the variables from the form on whatsName.html and outputs text*/ //retrieves the userName element from the form $userName = $_REQUEST[“userName”]; //outputs text and html echo "<h3>Hi there, $userName!</h3>"; ?></body></html>
-
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.There are a lot of things that need to occur with HTML and CSS. Until then, take up drinking. It'll be healthier. -
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.
-
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 it, perhaps more applications than there are for the proper treatment of the value.So why havent we caught on to this and created a new value that allows us to fix a background to the containing element? That way developers would have so much more power in their background image arsenal.I say this needs to happen quickly!!!!
-
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
-
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
-
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
Using the And operator
in PHP
Posted
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?
Thanks a lot.