-
Posts
31 -
Joined
-
Last visited
Never
Everything posted by mitzleah
-
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
-
Knock! Knock!
-
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)???
-
how to put the cookie values to username and password textfield?
-
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!
-
limiting characters in textarea without php/javascript
mitzleah replied to mrjameer's topic in PHP Coding Help
You then use javascript. Here's a good source: http://javascript.internet.com/forms/limit-textarea.html -
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! :)
-
use session variables instead of get variables
-
PHP Book Recommendations - OO, Smarty, Eclipse
mitzleah replied to JustinK101's topic in PHP Coding Help
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/ -
PHP website involving flash + an Access Database
mitzleah replied to irrelevantjoker's topic in PHP Coding Help
Hey, Try this link: http://www.kirupa.com/developer/actionscript/flashphpxml_integration.htm -
after storing all email addresses to a variable: $to = implode(",", $array); mail($to, $subject, $message, $headers);
-
@paul2463 Thanks! :)
-
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!
-
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>";
-
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!
-
HELP! My audio on the website has gone crazy
mitzleah replied to omegacelt's topic in Javascript Help
have you tried refreshing your browser? -
@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!
-
btherl is right you must first call session_start(). ;D
-
Hey, Put this on the top of the page: $_SESSION['cart']['first_name'] = $_POST['first_name'] Just like that! Hope this helps! :)
-
Sending formated HTML email via PHP form
mitzleah replied to eskimowned's topic in Editor Help (PhpStorm, VS Code, etc)
Hey, Follow this thread: http://www.phpfreaks.com/forums/index.php/topic,106890.0.html -
Try this one by Larry Ullman. http://www.dmcinsights.com/phpvqs2/ You will learn the basic of PHP.
-
how to get values from textfield without submiting or refreshing??
mitzleah replied to rajmohan's topic in PHP Coding Help
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! -
how to get values from textfield without submiting or refreshing??
mitzleah replied to rajmohan's topic in PHP Coding Help
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! -
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! :)
-
Hey, Use Location($_SERVER['HTTP_REFERER']); Also use condition when it will be directed to account page. Hope this one will help! :)