Jump to content

l0ve2hat3

Members
  • Posts

    312
  • Joined

  • Last visited

    Never

Everything posted by l0ve2hat3

  1. REPLACE THIS: <tr ><td colspan="11" td align="middle"><input type="submit" name="submit" value="Submit" </td></tr> </table> '; } echo '</table>'; // Check if the form has been submitted. if (isset($_POST['submitted'])) { WITH THIS: <tr ><td colspan="11" td align="middle"><input type="submit" name="submit" value="Submit"></td></tr> </form> </table> '; } echo '</table>'; // Check if the form has been submitted. if ($_REQUEST['submit']) {
  2. or you can do <a href='somepage.php?code=specialcode'>somelink</a> and on somepage.php: <? if($_REQUEST['code']!="specialcode"){ echo "CANNOT ACCESS PAGE!"; exit(); } ?> but i like MadTechie's better
  3. Well what permissions do I need for the php files to be able to write in that directory. could I get rid of the execute permission?
  4. could i login as root from the shell_exec function?
  5. ok do this: (THIS IS TESTED AND WORKS) <form method='post'> Student:<input type='text' name='username'> <br> <input type='submit' value='submit'> </form> <br> <?php echo $_REQUEST['username']; ?>
  6. im sorry i run this: <? $output = shell_exec("chmod 777 /home/newharp/public_html/ -R"); echo $output; ?> and i also tried: <? $output = exec("chmod 777 /home/newharp/public_html/ -R"); echo $output; ?> both returned empty variables
  7. I believe your looking for this: <body> <form action="<? echo $_SERVER['PHP_SELF']; ?>" method="get"> Student: <input type="text" name="name"> <input type="submit" name="submit"> </form> <input type='text' value='<? echo $_GET['name']; ?>'> </body>
  8. this should work if mysql field isn't NULL $sql= "SELECT * FROM table WHERE field='' "; if it is do this: $sql= "SELECT * FROM table WHERE field='NULL' ";
  9. try this $sql="INSERT INTO `comments` (username, commenttext, commentdate) VALUES ( '$username','$commenttext', 'NOW()' )";
  10. I need to run "chmod 777 home/user/public_html -R" is there a way I can do this via exec or shell_exec functions? I've tried : <? shell_exec("chmod 777 /home/newharp/public_html/ -R"); ?> and had no luck
×
×
  • 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.