Jump to content
Stef's Coding Community

cfalcon

Member
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About cfalcon

  • Rank
    New member
  1. I tried it and it didnt seem to work for me. I just copy and pasted. was there something else?
  2. <p>So I'm still learning, but I was attempting to create a page with the width and height of the page restricted to 1026 x 768 pixels. Ok, I got the page to center up and had a fixed pixel layout. I was able to expand and contract the browser and it stayed horizontally centered no problem (using the info I learned on fixed pixel layouts.) But what I am wishing to accomplish is the same affect vertically. </p> <p>So lets say you have a screen resolution of 1900 x 1200 pixels but my page is only 1026 x 768 pixels; instead of that page sticking to the top of the browser as it does by default, I wish for it to be centered in the browser. I tried setting the Margins to auto and Positioning to relative for Top and Bottom but it doesn't want to take. I know I'm missing something, any suggestions? Here is the CSS that I am satisfied with. ------------------------------------------------- @charset "utf-8"; /* CSS Document */ * {padding:0px; margin:0px;} body { text-align: center; background-color: #FFFFFF; background-image: url(stand.jpg); background-position: center; background-repeat: no-repeat; margin-top: 30px; } #container { text-align: left; position: relative; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; height: 768px; width: 1024px;} ------------------------------------------------------ Thanks!
  3. THANK YOU!! Yes, i think the "button" should have been "submit." I tried it as button and it didn't work. I almost feel a bit foolish cause I know better. Thank you very much for the help.
  4. Hi all, I am on Part 2 of the Processing Forms Video in the Beginners PHP series. At around the 4 minute mark, Stefan introduces the 'super global' and the three differnt types specifically for processing forms. After he deletes the $_GET and $_REQUEST, he proceeds to save the $_POST['name_first']; and opened his browser to see a blank page. He then proceeds to add the print command ( print $_POST['name_first']; )and the information "Stefan" appears. I created a form, albeit not the exact same code, but the same layout within a file entited form.php - the same as it is titled within the video. Here is the code: -------- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">'>http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style type="text/css"> fieldset { background-color: #E1E1E1; border: 1px solid #000000; } .style1 {font-family: Arial, Helvetica, sans-serif} </style> </head> <body> <fieldset id="fieldset"> <h1 class="style1"> Processing Forms with PHP - Part 1</h1> <br /> <form method="post" action="process_form.php"> First Name: <br /> <input type="text" name="firstname"/> <br /> <br /> Email: <br /> <input type="text" name="email" /> <br /><br /> Favorite color: <input type="radio" name="color" value="red"/> red <input type="radio" name="color" value="yellow"/> yellow <input type="radio" name="color" value="blue"/> blue <br /><br /> Favorite Website: <select name="favoritewebsite"> <option value="killerphp.com">killerphp.com</option> <option value="yahoo.com">yahoo.com</option> <option value="google.com">google.com</option> </select> <br /><br /> Comments: <br /> <textarea name="comment" cols=100px; rows=3px;> </textarea> <br/> <br/> <input name="Submit" type="button" value="Submit Request >>" /> </form> </fieldset> </body> </html> ----------- I then created the process_form.php file. Here is the code: ------------ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php print $_POST['firstname']; ?> </body> </html> ------------ However my browser gives me this response - Notice: Undefined index: firstname in C:\wamp\www\beginnersphp\process_form.php on line 10 ------------- - LINE 10 is the( print $_POST['firstname']; ) - Even without the print command, I am getting the same response from the browser. I am using WAMP as the the localhost server and internet explorer 8. What am I not getting right? Line 10 looks correct to me, right? I would appreciate any help given. Thanks! P.S. I tryed posting this in the beginners PHP video forum but it wouldn't allow me for some reason.
  5. Whew, that was close. And look it only took them less than 144 chars to state it. No No No, they want to convince me they need some face time being grilled by some faux anchor on some lame news channel. Twitts just don't cut it. When has twitter become a reliable source anyways? Even if the twit is truly how Google feels, then they should be verbally fighting in public for net neutrality as they did three years ago. Instead of saying, "nuh uhh" when being accused, they need to buy a $20 plaque to put on thier wall or under thier doorbell saying, "the is a NET-NEUTRAL facility." Sorry, folks this just bothers me. People always find a way to mess up a good thing, yaknow?
  6. Hello everyone, please read this post. It involves the future of the internet and the business of web design as it affects our clients. I've never used a pulpit before but this could affect us. Below is the original link to the Huffington Post story that includes links within the story for getting involved and below that the story itself. Please read and react. Thanks. http://www.huffingtonpost.com/josh-silver/google-verizon-deal-the-e_b_671617.html GOOGLE & VERIZON DEAL: THE END OF THE INTERNET AS WE KNOW IT Reported by: Josh Silver, President, Free Press August 5, 2010 For years, Internet advocates have warned of the doomsday scenario that will play out on Monday: Google and Verizon will announce a deal that the New York Times reports "could allow Verizon to speed some online content to Internet users more quickly if the content's creators are willing to pay for the privilege." The deal marks the beginning of the end of the Internet as you know it. Since its beginnings, the Net was a level playing field that allowed all content to move at the same speed, whether it's ABC News or your uncle's video blog. That's all about to change, and the result couldn't be more bleak for the future of the Internet, for television, radio and independent voices. How did this happen? We have a Federal Communications Commission that has been denied authority by the courts to police the activities of Internet service providers like Verizon and Comcast. All because of a bad decision by the Bush-era FCC. We have a pro-industry FCC Chairman who is terrified of making a decision, conducting back room dealmaking, and willing to sit on his hands rather than reassert his agency's authority. We have a president who promised to "take a back seat to no one on Net Neutrality" yet remains silent. We have a congress that is nearly completely captured by industry. Yes, more than half of the US congress will do pretty much whatever the phone and cable companies ask them to. Add the clout of Google, and you have near-complete control of Capitol Hill. A non-neutral Internet means that companies like AT&T, Comcast, Verizon and Google can turn the Net into cable TV and pick winners and losers online. A problem just for Internet geeks? You wish. All video, radio, phone and other services will soon be delivered through an Internet connection. Ending Net Neutrality would end the revolutionary potential that any website can act as a television or radio network. It would spell the end of our opportunity to wrest access and distribution of media content away from the handful of massive media corporations that currently control the television and radio dial. So the Google-Verizon deal can be summed up as this: "FCC, you have no authority over us and you're not going to do anything about it. Congress, we own you, and we'll get whatever legislation we want. And American people, you can't stop us. This Google-Verizon deal, this industry-captured FCC, and the way this is playing out is akin to the largest banks and the largest hedge funds writing the regulatory policy on derivative trading without any oversight or input from the public, and having it rubber stamped by the SEC. It's like BP and Haliburton ironing out the rules for offshore oil drilling with no public input, and having MMS sign off. Fortunately, while they are outnumbered, there are several powerful Net Neutrality champions on Capitol Hill, like Nancy Pelosi, Harry Reid, Henry Waxman, Jay Rockefeller, Ed Markey, Jay Inslee and many others. But they will not be able to turn this tide unless they have massive, visible support from every American who uses the Internet --- whether it's for news, email, shopping, Facebook, Twitter --- whatever. So stop what you're doing and tell them you're not letting the Internet go the way of Big Oil and Big Banks. The future of the Internet, and your access to information depends on it. Author's note: Notice how a company can change their tune in the name of profitmaking. From Google in 2006: "Today the Internet is an information highway where anybody - no matter how large or small, how traditional or unconventional - has equal access. But the phone and cable monopolies, who control almost all Internet access, want the power to choose who gets access to high-speed lanes and whose content gets seen first and fastest. They want to build a two-tiered system and block the on-ramps for those who can't pay."
×
×
  • Create New...