Jump to content

moriahcgibbs

Members
  • Content count

    15
  • Joined

  • Last visited

  • Days Won

    2

moriahcgibbs last won the day on October 24 2012

moriahcgibbs had the most liked content!

Community Reputation

6 Neutral

About moriahcgibbs

  • Rank
    Newbie
  • Birthday 02/24/1995

Profile Information

  • Gender
    Male

Previous Fields

  • Languages
    html, css, php
  1. How do i run a local PHP server on a Mac?

    Ive just uninstalled MAMP and am going to use the php server already installed on OSX by uncommenting lines in the httpd.conf file. However, when i run a script in a browser it still comes out as plain text. Im saving the files under MacintoshHD/Library/webserver/documents but they still wont run properly. I think Im probly making some really obvious mistake i just dont know what.
  2. How do i run a local PHP server on a Mac?

    Now my server will not start at all. I think there is another issue with the download I just dont know what it is. I tried to uninstall and re install MAMP after it stopped working, but now the My SQL server will not start at all. only the Apache server will start. I cant figure out whats wrong with it.
  3. How do i run a local PHP server on a Mac?

    1) I followed the instructions on the MAMP website exactly2) I saved all of my php documents in the htdocs folder3) to run the files all i did was copy their file location into a web browser, but Im pretty sure i was doing something wrong there, but I couldnt find out anything by just googling it. 4) I did start MAMP and confirm that Apache was running.
  4. How do i run a local PHP server on a Mac?

    I cant figure out what im doing wrong. Ive tried using a MAMP server but the only way my PHP documents would run is when i would open them through Netbeans, witch was really a pain. If i tried to open them in a browser without going through Netbeans they would always come out as plain text. I cant seem to uninstall MAMP for some reason and so I cant just use the PHP server already installed on macs. Its really frustrating. Im thinking pf just wiping my computer and starting over. I think something that I perviously downloaded is causing this but i cant figure out what. Am I just making some obvious mistake or could there be something else wrong? All I need is a private server for developing purposes.
  5. I a noob please help me :(

    I cannot figure out what is wrong with the form i made that is "supposed" to enter data into my database. It is just a simple form and I cant figure out what im doing wrong.Im still in the process of learning php and this is driving me crazy. can anyone figure out what im doing wrong? here is the HTML form: <html><body> <form method="post" action="output.php"> <table id="email_form"><tbody> <tr> <td><label for="f_name">First:</label></td><td><input type="text" name="f_name" id="f_name" /></td></tr><tr> <td><label for="l_name">Last:</label></td><td><input type="text" name="l_name" id="l_name" /></td></tr><tr> <td><label>Gender:</label></td><td> <input type="radio" name="gender" id="male" value="male" />Male<br /> <input type="radio" name="gender" id="female" value="famale" />Female</td></tr><tr> <td><label for="email">Email:</label></td><td><input type="email" name="email" id="email" /></td></tr><tr> <td><label for="city">City:</label></td><td><input type="text" name="city" id="city" /></td></tr><tr> <td><label for="zip_code">Zip Codde:</label></td><td><input type="text" name="zip_code" id="zip_code" /></td></tr><tr> <td colspan="2"><label for="question" class="f">"insert question here":</label></td></tr><tr><td colspan="2"><textarea id="question" name="question" rows="5" cols="25"></textarea></td></tr><tr><td colspan="2"><input type="submit" value="submit" name="submit" /></td></tr> </tbody></table> </form> </body></html> Here is the php code: <html><body> <?php $f_name = $_POST['f_name'];$l_name = $_POST['l_name']; $selected_radio = $_POST['gender'];$email = $_POST['email']; $city = $_POST['city']; $zip_code = $_POST['zip_code']; $question = $_POST['question']; function spamcheck($field) { $field=filter_var($field, FILTER_SANITIZE_EMAIL); if(filter_var($field, FILTER_VALIDATE_EMAIL)) { return TRUE; } else { return FALSE; } } $dbc = mysqli_connect('ServerName', 'UserName', 'Password', 'DatabaseName') or die('error connecting to nmysql server'); $query = 'INSERT INTO email (F_name, L_name, Gender, Email, City, Zip_code, Question)'. 'VALUES ("$f_name", "$l_name", "$selected_radio", "$email", "$city", "$zip_code", "$question")'; $result = mysql_query("$dbc", "$query") or die('Error with result'); echo '<span id="bold">Please check to see that the information submited is correct:</span>' . '<br />';echo '<span id="bold">Name:</span>' . " $f_name" . ' ' . " $l_name" .'<br />';if($selected_radio == "male") {echo '<span id="bold">Gender:</span>' . ' male' . '<br />';}else {echo '<span id="bold">Gender:</span>' . ' female' . '<br />';}echo '<span id="bold">Email:</span>' . " $email" .'<br />';echo '<span id="bold">City:</span>' . " $city" .'<br />';echo '<span id="bold">Zip Code:</span>' . " $zip_code" .'<br />';echo '<span id="bold">Answer To Question:</span>' . '<br />' . " $question" .'<br />'; mysql_close($dbc); ?> </body></html>
  6. Signatures

    Tthe PHP jokes just made my morning
  7. Copy Right Questions?

    thats good to know. thank you
  8. Copy Right Questions?

    I am currently trying to start a website for users to post artwork, videos, blog and such. However I am concerned about copyright laws. I know that in the past people have run into some pretty bad leagal issues because of copyright laws and i want to do everything i can to avoid a situation like that but still be able to have a successful website. If anyone can help me get some basic answers I would very much apriciate it: Am i responsible if one of my users posts and image without the owners consent? During user registration are there certain conditions that i could require to protect me legally if one of my users violates copyright laws? Is there any website that i can go to that puts this in perspective that i can understand without all the confusing legal terms?
  9. PHP Tutorial

    I am currently trying to learn php. i found the php tutorial to be helpful with simple concepts and getting the basics down, but in my opinion there should be more examples of practical applications of php in the tutorial. I think that would be very helpful.
  10. Form Question

    i made a simple survey form and i cant figure out how to make radio buttons work correctly in the form. All of the input is text, but there is one question on the form that asks for gender. I am a noob to php and i cant figure out how to make the radio buttons work.please help.
  11. Photoshop Question

    ok it worked. thank you
  12. Photoshop Question

    I want to remove the background from an existing image.
  13. Photoshop Question

    Dose anyone know how to remove a white background in photoshop and replace it with a transparent one?
  14. Background Image Issues. Help?

    ive tryed and it still isnt working. I cant figure it out. im ready to just start over and re-make it.
  15. Background Image Issues. Help?

    ok, so i designed this template for a website that i want to start but for some reason i cant get any background images to show up anywhere. I dont know whats wrong. I validated the css, and Html and it just isnt working. Ive tryed different browsers, and different ways of styling. Im obviosly missing something. Any help would be greatly appriciated. here is the code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head> <title>Home</title> <style type="text/css">body{background:#3D1400;}/******modual positioning******/#container{width:48em;height:41em;margin-right:auto;margin-left:auto;margin-top:auto;margin-bottom:0em;padding:1em;padding-top:0em;background:#00BFBF;}#headding{background:purple url('css_image\bg.png') repeat-x;width:48em;height:4em;padding:1em;margin-bottom:3.5em;margin-left:-1em;}img.bd{position:relative;width:50em;height:0.5em;left:-1em;top:-0.5em;}nav{margin-top:-1em;margin-left:0em;margin-bottom:3em;width:48em;height:1.5em;background:#ffffff;padding-left:0em;border-radius:0.2em;}/*side bar*/#side_left{width:10em;height:29em;float:left;background:#4CD2D2;}#contests, #featured_blog, #featured_discussion, #featured_poll{width:10em;margin:0.8em;color:#0D1A8C;font-weight:900;font-size:0.8em;background:#79DDDD;padding:0.5em;}hr.side{border:0.1em solid #0D1A8C;width:10em;}/*side bar end*/div#featured_photo{float:left;margin-left:1em;width:20em;height:20em;background:#000000;overflow:hidden;border-radius:1em;}div#top_rated_photos{float:right;width:16em;height:20em;background:#111111;}footer{position:relative;height:4em;width:58.6em;margin-right:auto;margin-left:auto;background:#000000;text-align:center;padding:2em;font-size:0.8em;}a.f{color:#ffffff;text-decoration:none;border-right:.1em solid #ffffff;padding-right:1em;margin-right:0.3em;padding-left:0.3em;margin-left:0.3em;}/**********Photo Gallery**********/a.tr_img img.top_r{height:3.9em;width:3.9em;float:left;border:0.1em solid #000000;}a.tr_img img.top_r:hover{margin:0em;border:.1em solid #ff0000;}/******text styles******/h1{font-size:2em;text-transform:capitalize;border-bottom:0.2em solid #8C8CE8;color:#8C8CE8;}span#fp{color:#999999;float:right;margin-right:1em;font-weight:bold;display:block;}/***************************************NAVIGATION BAR***************************//*top level styles*/ul.top_link li{float:left;background:#ffffff;position:relative;display:inline;border-right:0.1em solid #00BFBF;border-left:0.1em solid #00BFBF;}ul.top_link a{display:block;position:relative;font-size:1.3em;color:#000000;text-decoration:none;padding-left:1em;padding-right:1em;}/* style the top level hover incase images fail *//* dropdown ul styles */ul.top_link li.sub_link a{padding-right:0.5em;padding-left:0.5em;width:8em;}ul.top_link >li:hover{background:#000080;}ul.top_link >li>a:hover{color:#ffffff;}ul.top_link li:hover.sub_link, ul.top_link li.sub_link a:hover, ul.top_link li.sub_link a.mn_active{background:#000080;color:#ffffff;}/********* dropdown sytles *********/ul.top_link li ul{position:absolute;top:2em;left:0;z-index:1;visibility:hidden;}ul.top_link li > ul{top:auto;left:auto;}ul.top_link li:hover ul, ul.top_link, ul.top_link a:hover ul{visibility:visible;}ul.top_link ul li{border:none;height:auto;float:left;width:8em;top:0.15em;left:-2.6em;padding:0em;text-align:left;background:#ffffff;}ul.top_link ul li a{float:left;font-size:0.8em;text-decoration:none;display:block;height:2em;line-height:2em;text-align:left;}/************************** ~DROPDOWN STYLES~ *************************/.top_link li.sub_link ul{background:#ffffff;padding-left:0em;}.top_link li.sub_link ul li a{width:8em;}.top_link li.sub_link ul li a:hover{background:#000080;color:#6385A6;} </style></head><body> <div id="container"> <div id="headding"> <h1>Welcome to purple panda bear ♥</h1><img src="css\css_image\border.gif" class="bd" alt="border" /><img src="css\css_image\border.gif" class="bd" alt="border" /><img src="css\css_image\border.gif" class="bd" alt="border" /></div> <nav> <ul class="top_link"> <li class="top_link"> <a href="index">home</a><ul> <li class="sub_link"> <a href="">sub link</a></li> <li class="sub_link"> <a href="">sub link</a></li> <li class="sub_link"> <a href="">sub link</a></li></ul></li><li class="top_link"> <a href="index">blog</a><ul> <li class="sub_link"> <a href="">sub link</a></li> <li class="sub_link"> <a href="">sub link</a></li> <li class="sub_link"> <a href="">sub link</a></li></ul></li><li class="top_link"> <a href="index">forum</a><ul> <li class="sub_link"> <a href="">sub link</a></li> <li class="sub_link"> <a href="">sub link</a></li> <li class="sub_link"> <a href="">sub link</a></li></ul></li><li class="top_link"> <a href="index">forum</a><ul> <li class="sub_link"> <a href="">sub link</a></li> <li class="sub_link"> <a href="">sub link</a></li> <li class="sub_link"> <a href="">sub link</a></li></ul></li><li class="top_link"> <a href="index">gallery</a><ul> <li class="sub_link"> <a href="">sub link</a></li> <li class="sub_link"> <a href="">sub link</a></li> <li class="sub_link"> <a href="">sub link</a></li></ul></li><li class="top_link"> <a href="index">anime</a><ul> <li class="sub_link"> <a href="">sub link</a></li> <li class="sub_link"> <a href="">sub link</a></li> <li class="sub_link"> <a href="">sub link</a></li></ul></li><li class="top_link"> <a href="index">login</a><ul> <li class="sub_link"> <a href="">sub link</a></li> <li class="sub_link"> <a href="">sub link</a></li> <li class="sub_link"> <a href="">sub link</a></li></ul></li></ul></nav> <div id="side_left"> <div id="contests"> Featured Contests<hr class="side" /><a href="">Bunnys vs. Pandas</a><a href="">Dianoaurs vs. Elefants</a><a href="">Pickles vs. Ice Cream</a> </div> <div id="featured_blog"> Featured Blogs <hr class="side" /> <a href="">blog 1</a> by,user 1<br /> <a href="">blog 2</a> by,user 2<br /> <a href="">blog 3</a> by,user 3<br /> </div> <div id="featured_discussion"> Featured Forums<hr class="side" /><a href="">Anime discussion</a><a href="">Panda discussion</a><a href="">Epicness </a> </div> <div id="featured_poll"> Featured Poll <hr class="side" /> What is your favorate fuzy animal?<br /> <input type="radio" value="bunnys" />Bunnies<br /><input type="radio" value="pandas" />Pandas<br /><input type="radio" value="kittys" />Kittys</div></div> <div id="featured_photo"> <a href=""> <img id="featured" src="image/featured/arura.jpg" alt="featured phpto" title="epiic"/></a><span id="fp">featured photo</span></div> <div id="top_rated_photos"> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/rose.jpg" alt="top rated photo" title="rose"/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime1.jpg" alt="top rated photo" title=""/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime2.jpg" alt="top rated photo" title=""/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime3.jpg" alt="top rated photo" title=""/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime4.jpg" alt="top rated photo" title=""/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime5.jpg" alt="top rated photo" title=""/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime6.jpg" alt="top rated photo" title=""/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime7.jpg" alt="top rated photo" title=""/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime8.jpg" alt="top rated photo" title=""/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime9.jpg" alt="top rated photo" title=""/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime10.jpg" alt="top rated photo" title=""/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime12.jpg" alt="top rated photo" title=""/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime13.jpg" alt="top rated photo" title=""/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime14.jpg" alt="top rated photo" title=""/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime15.jpg" alt="top rated photo" title=""/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime16.jpg" alt="top rated photo" title=""/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime17.jpg" alt="top rated photo" title=""/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime18.jpg" alt="top rated photo" title=""/></a><a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime19.jpg" alt="top rated photo" title=""/></a> <a href="" class="tr_img"> <img class="top_r" src="image/top_rated/anime11.jpg" alt="top rated photo" title=""/></a></div></div> <footer> <a href="" class="f">footer link</a><a href="" class="f">footer link</a><a href="" class="f">footer link</a><a href="" class="f">footer link</a><a href="" class="f">footer link</a><a href="" class="f">footer link</a></footer> </body></html>
×