Jump to content

ricmetal

Members
  • Posts

    351
  • Joined

  • Last visited

Posts posted by ricmetal

  1. hey,thanks but im using prepared statements...dont know if theres anything in that code that will help but i know real escape is not necessary anymore, so, maybe the rest wount be useful either ?

    im having a look at dom xss attacks and ive found some info, so hopefull i can nail the problem with ease

     

  2. for some reason it stopped redirecting my pages yesterday, when it did so for weeks.

    i searched the net and it says something like if you write any code (or text, im not sure) before the header redirect, it wont work.

  3. or

    refresh meta tag (google it)

     

    the header doesnt always work...........and the onload is javascript

     

    these are your options, pick 1

     

    i pick number 3

    but sir, yoo haven't read your options yet

    i dont care, im the president, i supposed to lead..not read..

  4. hey, why doesnt this work?

     

    /* QUERY */
    $mysqli = new mysqli('host', 'user', 'password', 'database'); 
    
    if (mysqli_connect_errno()) {
        echo "error";
        exit();
    } 
    
    $stmt = $mysqli->prepare("INSERT INTO table VALUES (?, ?, ?, ?)");
    $stmt->bind_param('isss', NULL, $var1, $var2, $var3); 
    
    	$var1Raw = substr($_POST['var1'], 0, 50);
    	$var2Raw = substr($_POST['var2'], 0, 300);
    	$var3Raw = substr($_POST['var3'], 0, 50);
    
      		$var1 = mysql_real_escape_string(trim(strip_tags($var1RAW)));
    	$var2 = mysql_real_escape_string(trim(strip_tags($var2RAW)));
    	$var3 = mysql_real_escape_string(trim(strip_tags($var3RAW)));
    
    	$stmt->execute();
    	$stmt->close();
    	$mysqli->close();
    

     

    i know i dont need the mysql_real_escape thingie but it should work with whatever functions i use, and im being stuborn

  5. im trying to get a div's content to show in the modal

    oddly enough, this sound like the basic workings of a modal..

    but the script is made so that  the divs content has to show in the parent website, to appear in the modal

     

    tried visibility:hidden for the div, is result in hidden in the modal too. then i gave up

    lied. i thought about changing the divs visibility when i open the modal but then the div in the parent would show also.

     

    another thing is to remove the fade effects.

     

    http://jquery.com/demo/thickbox/

    using the inline content

×
×
  • 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.