$html = '"'.$row["firstName"]." ".$row["lastName"].'"'."[".$row["email"]."]"; $html = preg_replace("/".$last_token."/i","<b>$last_token</b>",$html); $html = str_replace("[","<",$html); $html = str_replace("]",">",$html); $item = array("text"=>$text,"html"=>$html); array_push($items,$item); } return $items; } $kac->serviceFunction = "service"; $koolajax->enableFunction("service"); ?> <form id="form1" method="post"> <?php echo $koolajax->Render();?> <img src="gmail.gif" alt="Gmail" /> <table> <tr> <td valign="top"><b>To:</b></td> <td> <textarea id="txtTo" style="width:620px;height:60px;font-family:Arial;"></textarea> <?php echo $kac->Render();?> </td> </tr> </table> <div style="padding-top:10px;padding-left:30px;"> <i>*Note:</i> Use comma (,) to seperate the emails </div> </form>
while ($row = mysql_fetch_assoc($result)) { $kac->addItem($row["CountryName"]); } $style_select = "default"; if (isset($_POST["style_select"])) { $style_select = $_POST["style_select"]; } $kac->styleFolder = $style_select; ?> <form id="form1" method="post"> <div style="float:left;width:300px;margin-bottom:30px;"> <input type="text" id="txtRegion" autocomplete='off' /> <?php echo $kac->Render(); ?> </div> Select style: <select id="style_select" name="style_select" onchange="submit();"> <option value="default" <?php if ($style_select == "default") { echo "selected"; } ?> >Default</option> <option value="hay" <?php if ($style_select == "hay") { echo "selected"; }