Jump to content

mitzleah

Members
  • Posts

    31
  • Joined

  • Last visited

    Never

Everything posted by mitzleah

  1. Try PEAR DB: http://pear.php.net/package/DB or AdoDb: http://adodb.sourceforge.net/ or My Class: http://www.phpclasses.org/browse/package/3714.html
  2. the form used to remember cookies that were set... the problem now is even when the input text username and password were empty, I was able to login via submitting it... weird! As far as security issue is concern... putting a value to it is unsecured. eg. <input type="textfield" name="uname" value="<?= $_COOKIE['uname'] ?>"> as well as in password. My question is: HOW COULD I BE ABLE TO PUT SET COOKIES OR MAKE IT VISIBLE TO THE FORM (USERNAME AND PASSWORD INPUT TEXT)???
  3. how to put the cookie values to username and password textfield?
  4. I already seen some tutorials about it, downloaded the files and tried it. But it seems it's not working at all. :( Username and password were set to cookies. I wonder how could the usename and password textfield will remember set cookies??? Please help here! Thanks in advance!
  5. You then use javascript. Here's a good source: http://javascript.internet.com/forms/limit-textarea.html
  6. In your Insert Query, you must first Select if the email address is in the database: $query = "SELECT * FROM yourtable WHRE email_field = '{$_POST['EMail']}' "; $result = mysql_query($query) or die(mysql_error()); $num = mysql_num_rows($result); if ($num == 0) { //Your Insert Query Here } Hope this helps! :)
  7. use session variables instead of get variables
  8. PHP5: http://www.phptr.com/content/images/013147149X/downloads/013147149X_book.pdf Smarty: http://www.ebooksportal.org/2006/07/30/smarty-php-template-programming-and-applications/
  9. Hey, Try this link: http://www.kirupa.com/developer/actionscript/flashphpxml_integration.htm
  10. after storing all email addresses to a variable: $to = implode(",", $array); mail($to, $subject, $message, $headers);
  11. Hey Guys, I need to trim a sentence based on its word content. For example I only want to display 50 words. In a string this would be: substr($str, 0, 50); My question is how about in word? Thanks!
  12. You must first put the data into variables. For example: $query = "Your query here..."; $result = mysql_query($query); $count = mysql_num_rows($result); $x = 0; while ($row = mysql_fetch_array($result)) {         $data1[$x] = $row[0];         $data2[$x] = $row[1];         $x++; } Then format it any way you wanted: echo "<table>"; $temp = 1; $columns = 2; // number of columns for ($i = 0; $i < $count; $i++) {     if ($temp == 1) {           echo '<tr>';     }     if ($col != $columns) {           echo '<td>'.$data1[$i].'</td>';           $col++;     } else {           echo '<td>'.$data1[$i].'</td></tr>';           $col=1;     } } echo "</table>";
  13. Here's my table structure for blog. CREATE TABLE `blog` (   `id` int(11) NOT NULL auto_increment,   `display` tinyint(2) NOT NULL default '1',   `archive` tinyint(2) NOT NULL default '0',   `date` datetime NOT NULL default '0000-00-00 00:00:00',   `title` varchar(255) NOT NULL default '',   `entry` text NOT NULL,   PRIMARY KEY  (`id`),   KEY `date` (`date`),   KEY `archive` (`archive`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 PACK_KEYS=1 CHECKSUM=1 AUTO_INCREMENT=2 ; Hope this helps!
  14. @jwk811 like this: session_start(); $_SESSION['cart']['first_name'] = $_POST['first_name']; //FORM <input name="first_name" value="Yes" type="textfield" value="<?php echo $_SESSION['cart']['first_name'] ?>"> Hope you do get it! Goodluck dude!
  15. btherl  is right you must first call session_start().  ;D
  16. Hey, Put this on the top of the page: $_SESSION['cart']['first_name'] = $_POST['first_name'] Just like that! Hope this helps! :)
  17. Hey, Follow this thread: http://www.phpfreaks.com/forums/index.php/topic,106890.0.html
  18. Try this one by Larry Ullman. http://www.dmcinsights.com/phpvqs2/ You will learn the basic of PHP.
  19. if the form method is post use $_POST['textfieldname'] if the form method is get use $_GET['textfieldname'] The title (how to get values from textfield without submiting or refreshing??) confused me. Hope I'm getting you!
  20. Hey, put this code in select tag [color=red]onChange="document.nameOfForm.submit();"[/color] like this: <select name="" [color=red]onChange="document.nameOfForm.submit();"[/color]>   <option></option> </select> Hope this one will help!
  21. Specifically this should be like this: $headers  = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; mail($to,$subject,$body,$headers) or die("Error Sending Email"); Hope this one will clarify! :)
  22. Hey, Use Location($_SERVER['HTTP_REFERER']); Also use condition when it will be directed to account page. Hope this one will help! :)
×
×
  • 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.