Jump to content

starvator

Members
  • Posts

    66
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

starvator's Achievements

Member

Member (2/5)

0

Reputation

  1. u just used a giant table... it worked
  2. I did that, my style looks like this /* Page styles */ body,h1,h2,h3,p,td,quote,small,form,input,ul,li,ol,label{ margin:0px; padding:0px; } body{ margin-top:20px; font-family:Arial, Helvetica, sans-serif; color:51555c; height:100%; font-size:12px; } /* Navigation menu styles */ ul{ height:25px; font-family:Arial, Helvetica, sans-serif; font-size:12px; } ul li{ border:1px solid #444444; display:inline-block; float:left; height:25px; list-style-type:none; overflow:hidden; } ul li a, ul li a:hover, ul li a:visited{ text-decoration:none; } .normalMenu, .normalMenu:visited, .hoverMenu, .hoverMenu:visited, .selectedMenu,.selectedMenu:visited { outline:none; padding:5px 10px; display:block; } .hoverMenu,.hoverMenu:visited, .selectedMenu,.selectedMenu:visited { margin-top:-25px; background:url(img/grey_bg.gif) repeat-x #eeeeee; color:#444444; } .selectedMenu,.selectedMenu:visited { margin:0; } .normalMenu, .normalMenu:visited{ color:white; background:url(img/dark_bg.gif) repeat-x #444444; } #wrapper { width:800px; // set this to the current width of your site margin:0 auto; } and i put <div id="wrapper"> right under the body tag and </div> before closing th body tag... it dosnt work...
  3. I want to center everything on my site, without making the text centered on the page. I want the content to stay the same, but as if i took a picture of the site and put it in the middle of my screen. Is there a way to do this? If it helps, my site is http://youtubegiveaways.herobo.com
  4. OMG THANK YOU YOU ARE BEASTTTTTTTTTTTTTTTT +1 for you! Thanks again!
  5. how will i link to it then? how will i tell the script that the location of the txtfile.txt is in /home/a3232513 and not public_html ?
  6. ^^^ you apparently already have a table of user information in a database, why are you even messing around with a file? If you are just verifying acceptance of some condition, you would just add a 'verification' or a 'status' column to your user table. It's because i have a login and verification system put in place but this is for a giveaway. I will be having giveaways and the user needs to find the secret codes, put them in and they get entered in the giveaway. I do not have enough tables to be able to do this.
  7. I can't because i am limited to so few databases and tables because im using a free host.
  8. PERFECT! wow it works!! now, if it is not too complicated, is there a way to check and see if a username is already in the file and if it is it will not be written again? Thanks!!!! (like if $session->username = one entire line, then echo you have already submitted your username.?
  9. Yes, it is writing, i forgot to put that in here... sry... <?php // Include Session Object (Which includes Other Files and Initializes all objects) include('include/session.php'); // Store results If Correct: if($_POST['code1'] != "chicken"){ exit('Code 1 Mismatch<br />'); } if($_POST['code2'] != "dog"){ exit('Code 2 Mismatch<br />'); } if(!isset($_POST['agree'])){ exit('You did not agree to the Terms & Conditions'); // If you get this even if you click, change != "yes" to != "checked" } $filename = "textfile.txt"; $f = fopen($filename, 'a+'); # Check: http://php.net/fopen fwrite($f, "\n",$session->username); fclose($f); # Close file. echo('Success!'); ?>
  10. I have a form with the following code: <form name="verification" action="verification1.php" method="post"> Code 1: <input type="text" name="code1" /><br> Code 2: <input type="text" name="code2" /><br> <input type="checkbox" name="agree" value="yes" /> I agree to the terms<br> <input type="submit" value="Submit" /> And a verification1.php with this code: <?php // Include Session Object (Which includes Other Files and Initializes all objects) include('include/session.php'); // Get the user information from Database $userinfo = $database->getUserInfo($session->username); // Store results If Correct: if($_POST['code1'] != "chicken"){ exit('Code 1 Mismatch<br />'); } if($_POST['code2'] != "dog"){ exit('Code 2 Mismatch<br />'); } if(!isset($_POST['agree'])){ exit('You did not agree to the Terms & Conditions'); // If you get this even if you click, change != "yes" to != "checked" } $filename = "textfile.txt"; $f = fopen($filename, 'a+'); # Check: http://php.net/fopen fclose($f); # Close file. echo('Success!'); ?> I do not get any errors, it sais success but nothing is writen to the file. What is wrong? Thanks! I tried changing $userinfo = $database->getUserInfo($session->username); to $userinfo = $session->username but this did not work
  11. ok i made it unsecure and stuff so it should work it sais success but it does not write anything to the text file... WHat is wrong?
  12. thats a typo i fixed it but i still get these errors: PHP Error Message Warning: fopen(textfile.txt) [function.fopen]: failed to open stream: Permission denied in /home/a3232513/public_html/verification1.php on line 22 Free Web Hosting PHP Error Message Warning: fclose(): supplied argument is not a valid stream resource in /home/a3232513/public_html/verification1.php on line 24 Free Web Hosting Success! I know i need to change the file permission but how can i do that and make it not writable or readable by everyone on the planet? I want to make it secure...
  13. I think i fixed it ( $f = fopen($filename, 'a+'); # Check: http://php.net/fopen ) but now i get the errors: PHP Error Message Warning: fopen(textfile.txt) [function.fopen]: failed to open stream: Permission denied in /home/a3232513/public_html/verification1.php on line 22 Free Web Hosting PHP Error Message Warning: fclose(): supplied argument is not a valid stream resource in /home/a3232513/public_html/verification1.php on line 24 Free Web Hosting Success! Permission denied means i need to chmod the file permissions but i want to keep this file secure so other people cant read it or view it... please help
  14. Ok, so i changed a few things ( I got someone to help me ) form: <form name="verification" action="verification1.php" method="post"> Code 1: <input type="text" name="code1" /><br> Code 2: <input type="text" name="code2" /><br> <input type="checkbox" name="agree" value="yes" /> I agree to the terms<br> <input type="submit" value="Submit" /> verification1: <?php // Include Session Object (Which includes Other Files and Initializes all objects) include('include/session.php'); // Get the user information from Database $userinfo = $database->getUserInfo($session->username); // Store results If Correct: if($_POST['code1'] != "chicken"){ exit('Code 1 Mismatch<br />'); } if($_POST['code2'] != "dog"){ exit('Code 2 Mismatch<br />'); } if(!isset($_POST['agree'])){ exit('You did not agree to the Terms & Conditions'); // If you get this even if you click, change != "yes" to != "checked" } $filename = "textfile.txt"; $f = fopen($file, 'a+'); # Check: http://php.net/fopen fwrite($f, "\n",$email); # Add email to file (On a new line) fclose($f); # Close file. echo('Success!'); ?> I now get these errors : PHP Error Message Warning: fopen() [function.fopen]: Filename cannot be empty in /home/a3232513/public_html/verification1.php on line 22 Free Web Hosting PHP Error Message Warning: fclose(): supplied argument is not a valid stream resource in /home/a3232513/public_html/verification1.php on line 26 Free Web Hosting Success! Do you understand what these ones mean?
×
×
  • 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.