Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. read the script (first post) via mysql_fetch_array!
  2. try <?php $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= "X-Priority: 3\n"; $headers .= "X-MSMail-Priority: Normal\n"; $headers .= "X-Mailer: php\n"; $headers .="From: info@mysite.com\n"; $headers .="Return-Path: karen@mysite.co.za\n"; $headers .="Return-Receipt-To: karen@mysite.co.za\n"; $headers .="Reply-To: karen@mysite.co.za\n"; ?> but i think the host provider can disable these.. also not all mail clients will send a Receipt, to check use outlook
  3. its kinda hard to say what is an attack..without knowing the filtering method and expected data.. the filter i use has different types.. IE numbers/numbers+letters/html of course i could add a routine to numbers/letters & numbers+letters to detect <"-'> etc and then report it but with HTML < translates to < so reporting wouldn't be worth it.. just something to think about
  4. this may help
  5. <?php $input = preg_replace("/[^a-z0-9.]/i", "", $input); ?>
  6. fwrite($fh, 'Extra Notes: <input class="text" name="notes" type="text" value="'); fwrite($fh, $_REQUEST['notes'].'"> <input type="submit" name="Submit" value="Submit"></form>'); will work but i would suggest <?php $note = htmlspecialchars($_REQUEST['notes']); fwrite($fh, 'Extra Notes: <input class="text" name="notes" type="text" value="'.$note.'">'); fwrite($fh, '<input type="submit" name="Submit" value="Submit"></form>'); ?>
  7. Try the section HTML or CSS
  8. PLease click the Solved Button (bottom left)
  9. i think you mean $_SERVER['SERVER_NAME']; EDIT: or $_SERVER['HTTP_HOST'];
  10. and what you getting at the moment ? is the email formatting as HTML or planText? plain text being <table width="200" > <tr> <td>Name:</td> <td>MadTechie</td> </tr> </table> etc
  11. you want to email as HTML.. you could look at phpmailer.. whats the email look like ? plain text ?
  12. heres a little example, of what i use <img id="myimage" src="mycat.gif" /> <script type="text/javascript"> var imgsrc=document.getElementById("myimage").getAttribute("src") document.getElementById("myimage").setAttribute("src", "mydog.gif") </script>
  13. i don't see the problem ?! what you trying ?
  14. knew that was comming.. without knowing you system.. we can't suggect anything.. its just a case of adding a field (type date), then tweaking the sql statement.. maybe if you posted some code..!
  15. Erm.. i can help ie explain 448191 post with an example.. but i now choose not to.. try lookling into setAttribute
  16. Just create a table.. (HTML) and use the etc as entrys ie <?php echo "<table width='200' >"; while ($row = mysql_fetch_assoc($result)) { echo " <tr>"; echo " <td>{$row['user']}</td>"; echo " <td>$row['imps']</td>"; echo " </tr>"; } echo "</table>"; ?>
  17. Well this is a PHP section not the javascript section!!
  18. the problem is here <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN"> <?php session_start(); ob_start(); ?> read the pinned topic for more info..(as you should of before posting) easy to resolve, but i have explained this so many times now.. yet people don't search the forum!
  19. OK in simple terms...What! you want to replace the 2nd you with something.. ok lets say i wanted to replace the 2nd you with me, <?php $yourStr = "Hi, How are you today, are you ok?, i hope you are"; $find = "you"; $replace = "Me"; $Occ = 2; $LPos = 0; for($n=0;$n<$Occ;$n++) { $LPos = strpos(strtolower($yourStr), strtolower($find), $LPos+1); } $MyStr = substr($yourStr, 0, $LPos); $MyStr .= $replace; $MyStr .= substr($yourStr, $LPos+strlen($find), strlen($yourStr)); echo $yourStr."<br />"; echo $MyStr; die; ?>
  20. basically MySQL + Timestamp..
  21. PHP class Number to word
  22. Read my last post its the same problem!
×
×
  • 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.