Jump to content

DeadEvil

Members
  • Posts

    116
  • Joined

  • Last visited

    Never

About DeadEvil

  • Birthday 06/06/2006

Profile Information

  • Gender
    Male

DeadEvil's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. foreach ($_GET as $data) { mssql_bind($query, "@ChildOrAdult", $data['ChildAdult'], SQLBIT); and so on... }
  2. Last try.. RewriteEngine On RewriteRule ^dir/([A-Za-z0-9-]+)/?$ dir/page.php?ec=$1 [L]
  3. error in my previews code RewriteEngine On RewriteRule ^dir/([A-C1-3])/?$ dir/page.php?ec=$1 [L]
  4. I use RewriteEngine.. RewriteEngine On RewriteRule ^dir/page.php([A-C1-3])/?$ dir/page.php?ec=$1 [L]
  5. I'm not sure but try this.. add this code to your .htaccess file Redirect 301 /dir/page.php(\?[a-z]\=[A-Z0-9]) /dir/page.php/
  6. try this code <?php error_reporting(E_ALL); if(!mysql_connect("localhost", "root", "private")): echo mysql_error(); exit; else: mysql_select_db("civilian") or die (mysql_error()); # Check all post data print_r($_POST); exit; # debugging purpose: remove after checking if (isset($_POST['RegistrationSubmission'])): $TermsOfService = $_POST['TermsOfService']; $Username = mysql_real_escape_string($_POST['Username']); $Password = mysql_real_escape_string($_POST['Password']); $Password2 = mysql_real_escape_string($_POST['Password2']); $Email = mysql_real_escape_string($_POST['EmailRegistration']); $Country = mysql_real_escape_string($_POST['CountryChoice']); $ip = $_SERVER["REMOTE_ADDR"]; $Gender = $_POST['Gender']; $jump2 = 1; if($_POST['TermsOfService'] == 'off'): echo "You must agree to the terms of service before registering!"; $jump2 = 0; elseif($Password != $Password2): echo "Passwords did not match"; $jump2 = 0; elseif($jump2 == 1): $chkUSERNAME = mysql_query("SELECT * FROM `userregistration` WHERE `Username` = '".$_POST['Username']."'"); if(mysql_num_rows($chkUSERNAME) != 0): die('Username already registered, please choose a different username!'); endif; $chkEmail = mysql_query("SELECT * FROM `userregistration` WHERE `Email` = '".$_POST['EmailRegistration']."'"); if(mysql_num_rows($chkEmail) != 0): die('Email already registered, please choose a different username!'); endif; if ($Password == $Password2): $query = "INSERT INTO `userregistration` (Username,Password,Email,Country,IP,Gender) Values ('$Username', '$Password', '$Email', '$Country', '$ip', '$Gender')"; mysql_query($query) or die(mysql_error()); endif; endif; endif; endif; ?>
  7. if (isset($_GET['dept'])) { //Page first accessed $dept = $_GET['Department_Title']; } if (isset($_POST['dept'])) { //form has been submit $dept = $_POST['Department_Title']; }
  8. $query_rs_name = "SELECT * FROM staffdirectory WHERE Department_Title = '$dept' "; or $query_rs_name = "SELECT * FROM staffdirectory WHERE Department_Title = '".$dept."' ";
  9. $query_rs_name = "SELECT * FROM staffdirectory WHERE Department_Title = $dept";
  10. you can use file_get_contents function file_get_contents(http://hiscore.runescape.com/index_lite.ws?player=". $_GET['name']);
  11. try this ... <?php $case = $_POST['case']; $subject = $_POST['subject']; if ($case == true) header('Location: http://assessment_url?report=12345&username='.$username.'&password='.$password . $case . '678'); if ($subject == true) header('Location: http://assessment_url?report=12345&username='.$username.'&password='.$password . $subject . '678'); ?>
  12. <? if(isset($_POST['SubmitProceed'] == 'submit2') && empty($_POST['sectDropdown']) && empty($_POST['weight']) && empty($_POST['question']) && empty($_POST['quesType']))){ do this.... break; } if(isset($_POST['submit']) && !empty($_POST['sectDropdown']) && !empty($_POST['weight']) && !empty($_POST['question']) && !empty($_POST['quesType'])){ do this.... break; } ?> <input type="submit" name="submit" value="submit"/> <input type="submit" name="SubmitProceed" value="submit2"/>
  13. $i =""; for($i=0; $i<60; $i++){ //Update MySQL database sleep(1); break; }
  14. try document.write(" <TR> <TD width='100%'> ");
  15. Get by ID... <script type="text/javascript"> <!-- function addLink(id) { var sampleLink = "Some sample link."; document.getElementById(id).value = sampleLink; } //--> </script> <form id="form1" name="form1" method="post" action=""> <p><textarea name="textBox1" cols="45" rows="6" id="textBox1"></textarea></p> <p><input name="link1" type="button" id="link1" value="add link" onclick="addLink('textBox1')" /></p> <p><textarea name="textBox2" cols="45" rows="6" id="textBox2"></textarea></p> <p><input name="link2" type="button" id="link2" value="add link" onclick="addLink('textBox2')" /></p> </form>
×
×
  • 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.