Jump to content

fert

Members
  • Posts

    1,114
  • Joined

  • Last visited

    Never

Everything posted by fert

  1. if(!ereg("^[A-Za-z -]+$",$usercheckname) should be if(!ereg("^[A-Za-z -]+$",$usercheckname))
  2. $post=array("name"=>"value","foo"=>"bar"); $c=curl_init("http://somesite.com/form.php"); curl_setopt($c,CURLOPT_POST,true); curl_setopt($c,CURLOPT_POSTFIELDS,$post); $result=curl_exec($c);
  3. foreach($_POST as $key=>$value) { if(strstr("checkbox",$key)) { $checkboxes[]=$value; } } print_r($checkboxes); This code will give you an array of the checkboxes in the checkboxes array
  4. http://us2.php.net/manual/en/function.imagepng.php
  5. $appoitment_date=array("dateDay"=>$_POST['dateDay'],"dateMo"=>$_POST['dateMo'],"dateYr"=>$_POST['dateYr']); I suggest you read about Arrays
  6. for($i=0;$i<10;$i++) { $this["happy" + $i]= "I am so happy."; } echo $this['happy1']."<br>"; echo $this['happy5']."<br>";
  7. I'm pretty sure PHP 5 will only work with apache 2.0.0 or greater
  8. http://en.wikipedia.org/wiki/Postgre
  9. I would suggest you read about print_r
  10. this code is the same as if($page==$1) { echo " <u><b>$i</b></u> " } else { echo ' <a href="'.$_SERVER['PHP_SELF'].'?page='.$i; } http://www.php.net/manual/en/language.expressions.php
  11. odbc_fetch_array returns an array, so use the print_r function to display the results
  12. I'm pretty sure you can't put a link in the subject.
  13. Please read the page on strip_tags
  14. $linkid = @mysql_connect($db_host, $db_uname, $db_pass) or die(mysql_error()); mysql_select_db($db_name, $linkid) or die(mysql_error());
  15. magic_quotes doesn't block anything it just inserts slashes to prevent sql injection attacks. http://us3.php.net/manual/en/function.date.php
  16. foreach($itemList as $key=>$value) { foreach($value as $k=>$v) { /*do stuff here*/ } }
  17. It's telling me "in mysql" (as it should), but i'm still getting the same error
  18. $nums=explode("_",$numbers); print_r($nums);
  19. Doesn't sending the session id through the address bar pose a security risk? No, because the sessions are usually stored outside of the web root directory.
×
×
  • 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.