Jump to content

narjis

Members
  • Posts

    107
  • Joined

  • Last visited

Everything posted by narjis

  1. I want store my text in the database in form of unt-8 so that when it is retrieved it would show the same language. I'm using Zend_Translate_Tmx adapter to translate my static web content but for dynamic content I would have to save the values corresponding to the dynamic data in different languages. Pleasesome body help me solve this problem. urgently.
  2. narjis

    query

    Can any body tell me when do weuse $this->property and when should we use $this->$property. Cannot understand the difference
  3. I'm really fond of your coding and need some help too I'm also trying to make a tree and save it in an xml file such that parent_id of one node is inserted in as pages key to the father node.By running this query $sql = "Select * from category order by parent_id ASC"; I'm getting the following result. Array ( [0] => Array ( [category_id] => 2 [parent_id] => 0 [category_name] => Clothes ) [1] => Array ( [category_id] => 5 [parent_id] => 1 [category_name] => T-shirts ) [2] => Array ( [category_id] => 6 [parent_id] => 1 [category_name] => Cotton-Shirts ) [3] => Array ( [category_id] => 1 [parent_id] => 2 [category_name] => Upper ) [4] => Array ( [category_id] => 4 [parent_id] => 2 [category_name] => Lower ) [5] => Array ( [category_id] => 3 [parent_id] => 4 [category_name] => Pants ) ) My code is as follows but not executing correctly function searchTree($arr,$node,$i){ if(!in_array($node['parent_id'],$arr[$i])) { $stmt = '<pages_'.$i.'>'; $stmt .=$node; $stmt .='</pages_'.$i.'>'; return $stmt;} else{ //print_r($returnTree); print_r ($arr[$i]);//['category_id']; $returnTree = ($arr[$i]['category_id']==$node['parent_id'])? searchTree($arr,$node,$i++): searchTree($arr,'',$i++); } } $i=0; foreach($links as $link){ $myArr = searchTree($links,$link,$i);} The result should be as follows: <page_1> <label>Clothes</label> <uri>#</uri> <pages> <page_1_1> <label>Upper</label> <uri>#</uri> <pages> <label>T-Shirt</label> <uri>#</uri> <page_1_1> <page_1_1_1> <label>Short Sleaves</label> <uri>#</uri> </page_1_1_1> <page_1_1_2><label>Long Sleaves</label><uri>#</uri> </page_1_1_2></page_1_1></page_1> <page_1_2> <label>Lower</label> <uri>#</uri> <pages>....</page_1_2> Hopefully you can unsderstand this problem. Please help me.
  4. I am extracting an array from the database in sorted form with respect to it's parent_id. Now I have to make a sub tree of this array in such a way that related nodes would be inserted in 'pages' field. cleths->upper->shirts
  5. I am retrieving values in form of array from a database table and out of the I have to build multidimensional array depending upon the parent->child relationship in the same array. The result is as [0] => Array ( [0] => Array ( [label] => Shirt [uri] => # ) [1] => Array ( [label] => Jeans [uri] => # ) [2] => Array ( [label] => Lowers [uri] => # ) [3] => Array ( [label] => T-Shirts [uri] => # ) [4] => Array ( [label] => cotton shirt [uri] => # ) [5] => Array ( [label] => Trousers [uri] => # ) ) each is related to some parent-id. Can any body me any idea.
  6. narjis

    please guide

    How can I set up different layouts for different modules in Zend Framework. Also I'm unable to getDefaultAdapters by using Zend_aUth::getDefaultAdapters(); What shall I do for this.
  7. narjis

    please check

    i'm running a simple query of LIKE SELECT statment but it says boolean resource given to mysql_fetch_assoc parameter 1 Here is my code $sql = "SELECT `city` FROM `cities` WHERE `city` LIKE '$search_term%'"; $result = mysql_query($sql); //echo ($sql); //if while($row=mysql_fetch_assoc($result)){ echo ("<li>".$row['cities']."</li>"); } please check my $sql statement is it wrong? Where?
  8. I've uncommented it now here my code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Random Box changing colors</title> </head> <body> <form method="post" action=""> <p>Enter Password </p> <table width="200" border="0" align="center"> <tr> <td width="12"><label for="block_1"></label> <input name="block_1" type="password" id="block_1" size="1" maxlength="1" /></td> <td width="12"><input name="block_2" type="password" id="block_2" size="1" maxlength="1" /></td> <td width="12"><input name="block_3" type="password" id="block_3" size="1" maxlength="1" /></td> <td width="12"><input name="block_4" type="password" id="block_4" size="1" maxlength="1" /></td> <td width="12"><input name="block_5" type="password" id="block_5" size="1" maxlength="1" /></td> <td width="12"><input name="block_6" type="password" id="block_6" size="1" maxlength="1" /></td> <td width="12"><input name="block_7" type="password" id="block_7" size="1" maxlength="1" /></td> <td width="12"><input name="block_8" type="password" id="block_8" size="1" maxlength="1" /></td> </tr> </table> <p> <input type="submit" name="submit" value="Post" onclick="ToggleBackgrnd();" /> </p> </form> <script type="text/javascript" language="javascript" src="jquery-1.6.1.min.js"></script> <script type="text/javascript" language="javascript"> function ToggleBackgrnd(){ /* this function checks the length of each character in input block_*/ var jsonObj = []; var x; var y; for (var i = 1; i < 6; i++) { y="block_"+ i; x =document.getElementById(y).value; jsonObj.push({i: x}); //document.write(x); } // console.log(jsonObj); $.post("randomArreg.php",jsonObj,function(data){ alert("success"); }); } </script> </body> </html> Now the console is printing the result but some how it is not showing print_r($_POST['jsonObj'])
  9. I am unable to do so please check my script if I have done something wrong. Thankyou
  10. I want to pass an json array by using javascript and then pass to a php script. Hewre's my script <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Random Box changing colors</title> <script type="text/javascript" language="javascript"> function ToggleBackgrnd(){ /* this function checks the length of each character in input block_*/ var jsonObj = []; var x; /*for (x=0;x<8;x++){ num[x] = array.push(document.getElementById("block_"+ x)); for (var i = 0; i < 5; i++) { x =document.getElementById("block_"+ i); jsonObj.push({i: x}); } //console.log(jsonObj); $.post("randomEg.php",jsonObj,function(data){ alert(data);}); } </script> </head> <body> <form method="post" action=""> <p>Enter Password </p> <table width="200" border="0" align="center"> <tr> <td width="12"><label for="block_1"></label> <input name="block_1" type="password" id="block_1" size="1" maxlength="1" /></td> <td width="12"><input name="block_2" type="password" id="block_2" size="1" maxlength="1" /></td> <td width="12"><input name="block_3" type="password" id="block_3" size="1" maxlength="1" /></td> <td width="12"><input name="block_4" type="password" id="block_4" size="1" maxlength="1" /></td> <td width="12"><input name="block_5" type="password" id="block_5" size="1" maxlength="1" /></td> <td width="12"><input name="block_6" type="password" id="block_6" size="1" maxlength="1" /></td> <td width="12"><input name="block_7" type="password" id="block_7" size="1" maxlength="1" /></td> <td width="12"><input name="block_8" type="password" id="block_8" size="1" maxlength="1" /></td> </tr> </table> <p> <input type="submit" name="submit" value="Post" onclick="ToggleBackgrnd();" /> </p> </form> </body> </html>[code]
  11. I want to add a form with text element <input type='text class='txt-field-login' name='textfield' /> and button element as <div class="login-btn"> <input type="submit" class="login-btn" value="Login"> </div> So I added it as $email = new Zend_Form_Element_Text('UEmail'); $email->setLabel('Email') ->setRequired(true) ->addDecorator('HtmlTag', array('tag'=>'input','class'=>"txt-field-login")); similarly i added css to my submit button as $submit = new Zend_Form_Element_Submit('submit'); $submit->addDecorator('HtmlTag', array('class'=>'login-btn','value'=>'Login')); but css is not applying to my form text elements. Please help
  12. I am getting this type of error when I connect to my database . Please can any body help. Fatal error: Uncaught exception 'Zend_Config_Exception' with message 'Error parsing /home/narjisfatima/zend.systechcs.com/application/configs/application.ini on line 13 ' in /home/narjisfatima/Zend_framework/library/Zend/Config/Ini.php:182 Stack trace: #0 /home/narjisfatima/Zend_framework/library/Zend/Config/Ini.php(202): Zend_Config_Ini->_parseIniFile('/home/narjisfat...') #1 /home/narjisfatima/Zend_framework/library/Zend/Config/Ini.php(126): Zend_Config_Ini->_loadIniFile('/home/narjisfat...') #2 /home/narjisfatima/Zend_framework/library/Zend/Application.php(386): Zend_Config_Ini->__construct('/home/narjisfat...', 'development') #3 /home/narjisfatima/Zend_framework/library/Zend/Application.php(85): Zend_Application->_loadConfig('/home/narjisfat...') #4 /home/narjisfatima/zend.systechcs.com/public/index.php(24): Zend_Application->__construct('development', '/home/narjisfat...') #5 {main} thrown in /home/narjisfatima/Zend_framework/library/Zend/Config/Ini.php on line 182 Here is my application.ini [production] phpSettings.display_startup_errors = 0 phpSettings.display_errors = 0 includePaths.library = APPLICATION_PATH "/../library" bootstrap.path = APPLICATION_PATH "/Bootstrap.php" bootstrap.class = "Bootstrap" appnamespace = "Application" resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" resources.frontController.params.displayExceptions = 0 resources.frontController.moduleDirectory = APPLICATION_PATH "/modules" resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"resources.view.doctype ="XHTML1_STRICT" resources.db.adapter = mysqli resources.db.params.host = localhost resources.db.params.username = vffgg resources.db.params.password = xxxxxx resources.db.params.dbname = ibbhhb resources.db.isDefaultTableAdapter = true [staging : production] [testing : production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 phpSettings.date.timezone = "Asia/Karachi"[development : production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 resources.frontController.params.displayExceptions = 1
  13. I've made slices of a psd file and my top navigation has got two images such that one image is overlapping another on one side. But when I try to change padding or margins of logo (in .logo) it hides.Is there any way to overlap two images. Here is my html code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link type="text/css" rel="stylesheet" href="style.css" /> <title>tree</title> </head> <body> <div class="wrapper"> <div class="header"> <div class="logo"><img src="images/logo.gif" /></div> <div class="center"><img id="center" src="images/topBan.gif" /></div> </div> <div class="navigation"> <ul id="nav-links"> <li> <a href="#"><img src="images/aboutUs.gif" /></a></li> <li> <a href="#"><img src="images/portfolio.gif" /></a></li> <li> <a href="#"><img src="images/contacts.gif" /></a></li> </ul> </div> <div class="content"> </div> </div> </body> </html> Here is my css code @charset "utf-8"; /* CSS Document */ body{ margin:0px; padding:0px; width: 100%; background:#FFF; } .wrapper{ margin:0; padding:0; width:100%; } .header{ margin-left:25%; margin-right:25%; } .header .logo{ margin-top:50px; width:180px; } .header .center{ padding-top:-50px; overflow:hidden; } .navigation { width:546px; height:26px; margin-left:25%; margin-right:25%; background-image:url(images/white_12.gif) } .navigation ul#nav-links{ float:right; } .navigation ul#nav-links li{ list-style:none; display:inline; padding-top:10px; width:26px; } .navigation ul#nav-links li a{ width:26px; }
  14. narjis

    enquiry

    Please can any body tell how to get this type of editor as in php freaks foruma nd how to embed it into my page.
  15. Thank you your reply surely helped me.
  16. Here is my html code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>User Validation Check</title> <style> input#textfield{ border-color:none; /*border-style:none;*/ } </style> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript" src="myJScript.js"></script> </head> <body> <table width="435" border="1"> <tr> <td colspan="2" align="center"> <strong>Registration Form</strong></td> </tr> <form id="form1" name="uForm" method="post" > <tr> <td width="118">User Name</td> <td width="301"><input type="text" name="userName" id="textfield" onfocus="outline();" /> <div id="uN"></div></td> </tr> <tr> <td>Password</td> <td><input type="password" name="userpass" id="textfield" onfocus="outline();"/><div id="uP"></div></td> </tr> <tr> <td>Re-type password</td> <td><input type="password" name="re-userpass" id="textfield" onfocus="outline();"/><div id="reUp"></div></td> </tr> <tr> <td>Email</td> <td><input type="text" name="email" id="textfield" onfocus="outline();"/><div id="email"></div></td> </tr> <tr> <td colspan="2"><input type="submit" name="button" class="button" id="button" value="Register!" /></td> </tr> </form> </table> </body> </html> I don't know what hard coded or embedded means
  17. I'm just displaying an alert msg wonder why isn't iut working Here is my code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>User Validation Check</title> <style> input#textfield{ border-color:none; /*border-style:none;*/} </style> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript" src="myJScript.js"></script> </head> <body> <table width="435" border="1"> <tr> <td colspan="2" align="center"> <strong>Registration Form</strong></td> </tr> <form id="form1" name="uForm" method="post" > <tr> <td width="118">User Name</td> <td width="301"><input type="text" name="userName" id="textfield" onfocus="outline();" /> <div id="uN"></div></td> </tr> <tr> <td>Password</td> <td><input type="password" name="userpass" id="textfield" onfocus="outline();"/><div id="uP"></div></td> </tr> <tr> <td>Re-type password</td> <td><input type="password" name="re-userpass" id="textfield" onfocus="outline();"/><div id="reUp"></div></td> </tr> <tr> <td>Email</td> <td><input type="text" name="email" id="textfield" onfocus="outline();"/><div id="email"></div></td> </tr> <tr> <td colspan="2"><input type="submit" name="button" class="button" id="button" value="Register!" /></td> </tr> </form> </table> </body> </html> Here is script $("#form1 tr td #button").click(function(){ alert("Hello"); });
  18. I am successfully displaying values in my table using jquery but now I want a form to enclose these values and then save them if edited here is my php script <?php $conn = mysql_connect("localhost","root",""); mysql_select_db("customer",$conn); $query = "SELECT * FROM info_tb"; $details = array(); $res = mysql_query($query); $count = mysql_num_rows($res); $json['tables'] = "<form id='savingFrm' method='post' >"; $i=0; if($count>=1){ while($result=mysql_fetch_assoc($res)){ $json['tables'] .= "<tr> <td>" . $result['id'] . "</td> <td><input type='text' name='name_".$i."' value='" . $result['Name'] . "'/></td> <td><input type='text' name='father_".$i."' value='" . $result['Father'] . "'/></td> <td><input type='text' name='education_".$i."' value='" . $result['Education'] . "'/></td> <td><input type='text' name='age_".$i."' value='" . $result['age'] . "'/></td> </tr>"; $i++; }//end of while }//end of if $json['tables'] .= "<tr><td><input type='submit' value='Save' /></td></tr></form>"; echo json_encode($json); mysql_close($conn); when i keep this line $json['tables'] = "<form id='savingFrm' method='post' >"; it doesnot show the tables while when I change it to this $json['tables'] = ''; it shows the result perfectly how can I embed it inside the form. Following is my html code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Showing Data</title> </head> <body> <input type="button" value="Load!" id="load" /> <!--</div>--> <script type="text/javascript" src="../jquery-1.6.1.min.js"></script> <script type="text/javascript" src="script.js"> </script> <div id="container"> <table id="myTB" border=".2 em"> <tr> <td>Id</td> <td>Name</td> <td>Father Name</td> <td>Class</td> <td>Age</td> </tr> </table> </div> </body> </html> Here is javascript code // JavaScript Document $(document).ready(function(){ $("#container").hide(); }); $("#load").click(function(){ $.ajax({ dataType: 'json', url: "data.php", success:function(data){ //console.log(data); //$('table').appendTo('#myTB').html("<form method='post' id='SaveFrm'"); $('table').append(data.tables); $("#container").show(); } }); });
  19. It is giving no result but still not appending to the table. :'( Please see if I'm appending correct part of the table as I'm new to this. Thanx in advance. Here is my html code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Showing Data</title> </head> <body> <input type="button" value="Load!" id="load" /> <!--</div>--> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <div id="container"> <table id="myTB" border=".2 em"> <tr> <td>Id</td> <td>Name</td> <td>Father Name</td> <td>Class</td> <td>Age</td> </tr> </table> <script type="text/javascript" src="script.js"> </script> </div> </body> </html> Here's the scri[pt $(document).ready(function(){ $("#container").hide(); }); $("#load").click(function(){ $.ajax({ url: "data.php", success:function(data){ //console.log(data); $('table').append(data.tables); $("#container").show(); } }); });
  20. I am retrieving values from database using jquery post in json format but unable to append the dtaa to my table conatiner here is my html code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Showing Data</title> </head> <body> <input type="button" value="Load!" id="load" /> <!--</div>--> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript" src="script.js"> </script> <div id="container"> <table id="myTB" border="1"> <tr> <td>Id</td> <td>Name</td> <td>Father Name</td> <td>Class</td> <td>Age</td> </tr> </table> </div> </body> </html> here is m javascript // JavaScript Document $(document).ready(function(){ $("#container").hide(); }); $("#load").click(function(){ $.ajax({ url: "data.php", success:function(data){ console.log(data); var i = 0; //$.each(data.details, function(i,details){ for (var key=0, size=data.length; key<size;key++) { $('<tr>') .append( $('<td>').html( data.details[i].id ) ) .append( $('<td>').html( data.details[i][Name] ) ) .append( $('<td>').html( data.details[i][Fathername] ) ) .append( $('<td>').html( data.details[i][Education] ) ) .append( $('<td>').html( data.details[i][Age] ) ) .appendTo('#myTB'); } } }); $("#container").show(); }); Here is my php script <?php $conn = mysql_connect("localhost","root",""); mysql_select_db("customer",$conn); $query = "SELECT * FROM info_tb"; $details = array(); $res = mysql_query($query); $count = mysql_num_rows($res); if($count>=1){ while($result=mysql_fetch_assoc($res)){ //$result = mysql_fetch_assoc($res); $details[] = ($result); }//end of while }//end of if $json_encoded_details = json_encode($details); $json_details = "{\"details\": " . $json_encoded_details . " }"; echo $json_details; mysql_close($conn); It is showing result in this format {"details": [{"id":"1","Name":"ra","Father":"a","Education":"class 5","age":"10"},{"id":"2","Name":"Ntima","Father":"Sssain","Education":"Class 18","age":"32"},{"id":"3","Name":"Sa","Father":"Mili","Education":"ICMA","age":"45"}] } Console is alsoi showing this error data.details is undefined Please tell where am I going wrong also I want to embed input type=text field in this table to edit and save the same in the database.
  21. I am posting two valuies via text box and textarea but these values are not being posted to my php script please chechk my code where I'm going wrong. In my database blanck values are being inserted. // JavaScript Document $(document).ready(function(){ $("#response").hide(); $("input.addbtn").click(function(){ var name = $("#name").val(); var comment = $("#comment").val(); //var datastring ="name="+name+"&comment="+comment; $.post( 'process.php', ( name, comment ), function(response){ $("#response").fadeIn("fast"); $("#response").html("Comment Added").css("padding","10px"); $("#name").val(""); $("#comment").val(""); $("#wrapper").hide(); } ) return false; }); }); Here is my html code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Page1</title> <link href="style.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript" src="script.js"></script> </head> <body> <div id="wrapper"> <table align="center"> <form method="post" action="" class="commentForm"> <tr> <td colspan="2"><th colspan="2">Add your Comments</th> </td> </tr> <tr> <td colspan="2"><label for="name" >Name :</label></td><td width="161"><input type="text" name="name" id="name" /></td> </tr> <tr> <td colspan="2"><label for="comment" >Comment :</label></td> <td><textarea name="comment"cols="20" rows="5" id="comment"></textarea> </td> </tr> <tr> <td> <input align="center" class="addbtn" type="submit" name="submit" value="Add" /></td> </tr> </form> </table> </div> <div id="response"></div> </body> </html>
  22. Hi, I'm trying to load my linked pages to href in the container div and here is the code. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Prac </title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript" > $("#navigation a").click(function(){ var page = $(this).attr('href'); $("#container").load(page); return false; }); </script> </head> <body> <div id="navigation"> <a href="home.html" onclick="return false;" >Home</a><br /> <a href="about.html" onclick="return false;">About</a><br /> <a href="contact.html" onclick="return false;">Contact</a><br /> </div> <div id="container" style="width: 500px; height: 300px; background-color:#FF9;"></div> </body> </html> It is not working properly. Please Help.
  23. why am i not getting any message in my mail body i've tried the last message nothing is appearing in mail accept this MIME-Version: 1.0 Content-type: text/html; charset=iso-8859-1 From:narjisfatima@yahoo.com $this->msg ='<img src=\"http://ideas.kpjit.com/public/images/header-img.jpg\" /> <h1>KPJ Idea</h1> <p>Make a difference</p> <p>This is a Confirmation Mail.Please confirm your registration by clicking here <a href=\"http://ideas.kpjit.com\register\confirm\"'.$this->data['id'].'"</p>\" "'; $subject = "Registration confirmation"; $message = $this->msg; $from ="narjisfatima@yahoo.com"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From:narjisfatima@yahoo.com' . "\r\n"; if(mail($to,$subject,$headers)){ $this->render2("register/message"); exit; } shall I remove the headers
×
×
  • 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.