flix_is_here22
Members-
Posts
16 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by flix_is_here22
-
hi this is my code....how to get click value from href and then show a picture on div layer....?? <!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>Untitled Document</title><style>#layer{ top:0; left:0; height:100%; width:100%; position:absolute; background-color:blue; display:none; opacity:0.5; color:red;}#asd{ color:red; }</style><script type="text/javascript" language="JavaScript"><!--function HideContent(d) {if(d.length < 1) { return; }document.getElementById(d).style.display = "none";}function ShowContent(d) {var img=new Array();img[0]="a.jpg"; img[1]="b.jpg";img[2]="c.jpg"; if(d.length < 1) { return; }document.getElementById(d).style.display = "block";}function ReverseContentDisplay(d) {if(d.length < 1) { return; }if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }else { document.getElementById(d).style.display = "none"; }}//--></script> </head><body><div><a onclick="ShowContent('layer'); return true;" href="javascript:ShowContent('layer')" name="show1" title="show1">[show>>>>> 1]</a><a onclick="ShowContent('layer'); return true;" href="javascript:ShowContent('layer')" name="show1" title="show2">[show>>>>> 2]</a> </div><div id="layer" >Content goes here.<a onclick="HideContent('layer'); return true;" href="javascript:HideContent('layer')" ><img src="" id="show1"/>[hide>>>>>> 1]</a></div> <!--<a onmouseover="ReverseContentDisplay('layer'); return true;" href="javascript:ReverseContentDisplay('layer')">[show/hide]</a>--> </body></html>
-
hey anyone, i have a problem about passing variable. gridpEmp.PHP <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><HTML><HEAD><TITLE></TITLE><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="Content-Style-Type" content="text/css"><meta http-equiv="Content-Script-Type" content="text/javascript"><script type="text/javascript">var preEl ;var orgBColor;var orgTColor;function HighLightTR(el, backColor,textColor){ var rowindex = el.sectionRowIndex; if(typeof(preEl)!='undefined') { preEl.bgColor=orgBColor; try{ChangeTextColor(preEl,orgTColor);}catch(e){;} } orgBColor = el.bgColor; orgTColor = el.style.color; el.bgColor=backColor; try{ChangeTextColor(el,textColor);}catch(e){;} preEl = el;}function ChangeTextColor(a_obj,a_color){ ; for (i=0;i<a_obj.cells.length;i++) a_obj.cells(i).style.color=a_color;}<style>table.selectable-table td { font-size:10pt; font-family: Arial; }table.selectable-table td { cursor:pointer; margin:0px; border:0px; padding:2px 5px 2px 5px; }table.selectable-table { border-spacing:0px; background:#eef;}</style></script></HEAD><BODY><table id="gridemp" border="1" cellspacing="0" cellpadding="4" align="center"><th>Employee Initial</th><th>Employee ID</th><th>Employee Name</th><tbody><?phpinclude('check/conDBodbc.php');$empid = $_POST['searchemployee']; function dbquery($sql) {include('check/conDBodbc.php'); $arr = array(); $rs = odbc_exec($con,$sql); $x = 1; while (odbc_fetch_row($rs)) { for ($y = 1; $y <= odbc_num_fields($rs); $y++) $arr[$x][$y] = odbc_result($rs,$y); $x++; } if ($x > 1) return $arr;}$arr = dbquery("select * from getemployee where employeeid like '%$empid%' or employeename like '%$empid%' or employeeinitial like '%$empid%'");echo $arr[1][3]; $rs1 = odbc_exec($con,"select * from getemployee where employeeid like '%$empid%' or employeename like '%$empid%' or employeeinitial like '%$empid%'");while(odbc_fetch_array($rs1)){?><tr onClick="HighLightTR(this,'#c9cc99','cc3333')"><!--<tr onClick="getvalue(this)">--><td align=left><?php echo odbc_result($rs1,employeeinitial);?></td><td align=left><?php echo odbc_result($rs1,employeeid);?></td><td align=left><?php echo odbc_result($rs1,employeename);?></td></tr><?php }?></tbody></table></BODY></HTML> i want to passing variable var rowindex = el.sectionRowIndex;how to do that passing variable in one file php??because i want to get value of row index from user selected row after that i can echo value of selected row from user by function dbquery($sql).
- 1 reply
-
- variable
- javascript
-
(and 2 more)
Tagged with:
-
hi, i'm looking XAMPP for android..... i want to install XAMPP in my samsung tab....any sugestion?? thx
-
hahaha... :rofl:thx both of you for reply.... i really hopeless yesterday so i get some idea. i change process to get cookie using creating file and put the cookie in the their file.....so i can show the cookie everytime i want..... :rofl:honestly i bit cheating about retrive the cookie....
-
hi, i so confused with retrieve the cookie when retrieve the cookie in the other file....i have some file....1. login.php -----> this file have a action form to checklogin.php2. checklogin.php -->cookie usrname to be set and the end of code i put header("location: home.php")3. home.php ---> menu of my website after user login. so i really confused when i retrieve the cookie usrname in the file home.php.....how to retrieve the cookie of usrname into home.php....??i has been try this code :echo $_POST["usrname"]; orecho $_COOKIE["usrname"];but both of this code isn't work..... :fool:any sugesstion??
-
need jquery table template for ms sql
flix_is_here22 replied to flix_is_here22's topic in JavaScript
thx for reply me...i mean that jQuery table template for MSSQL not MYSQL.... -
hi, any sugesstion for me??i need jquery table template but i need for MSSQL not MYSQL..... thx
-
hi,i want to encrypt and decrypt the content of file. Now just i found the encrypt from http://www.w3schools.com/php/func_string_crypt.asp and that code work for mebut i didn't found the decrypt from w3schools....i found the decrypt tutor from http://www.php.net/manual/en/function.mcrypt-decrypt.phpbut i really don't understand.... anyone can you explain to me....????
-
create, read, write, delete .txt or .log file
flix_is_here22 replied to flix_is_here22's topic in PHP
yeee....finaly i found it.... ^_^i must put the file php and file.txt or .log into localhost using XAMPP..... -
create, read, write, delete .txt or .log file
flix_is_here22 replied to flix_is_here22's topic in PHP
thx for reply me.... this is my first code and this is the same code like w3school tutor...<?phpecho file_get_contents("test.txt");$homepage = file_get_contents("test.txt");echo $homepage;?> this is a second code put your code in the top of my code....<?phperror_reporting(E_ALL);display_error(true);echo file_get_contents("test.txt");$homepage = file_get_contents("test.txt");echo $homepage;?> both of them it's still doesn't work?? :facepalm:the debuging result it's the same result....just blank of page....i want to post the picture result of my code but i don't know how to post it... -
hi,i confuse why http://www.w3schools.com/php/func_filesystem_file_get_contents.asp does'nt work for me??i want to create file, read file, write at the end of line, and delete file. i have try this http://www.php.net/manual/en/function.fopen.php....and it's not work too.... :facepalm:when debuging using dreamweaver it is still doesn't work....just the blank of page.
-
thx for reply me...i really don't understand how MS SQL can still talk with your web host?? one year ago i buying a domain+host and i just using for email and FTP.....@_____@"can you explain how to connect MS SQL to web host??
-
hi,i have got a problem. i have database MSSQL and i want to migration to MYSQL.anysuggestion for me??because i want to build a Ecommerce site.btw anyone know the risk if we publish a database MSSQL using IP public??i think this is a second option if i can't migration to MYSQL. :Sad:
-
hmm....any suggestion for me??because i want to change design of mibew contact us when the all operator is offline......thx
-
hi, can anyone explain to me what it's mean??i have code in the template of mibew... <form name="leaveMessageForm" method="post" action="${webimroot}/leavemessage.php"> why the action form say ${webimroot}/leavemessage.php??what it's mean??
-
hii have a contact form and i put recapthca from google for antispam. i have a problem when sending email and check recaptcha. This is html file.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>asd</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><script type="text/javascript"> var RecaptchaOptions = { theme : 'blackglass' };</script><script type="text/javascript">function show_alert(){var nama = document.form.name.value;var telp = document.form.phonenumber.value;var email1 = document.form.email.value;var koment = document.form.comment.value; if(nama==""){ alert("Please input your name!"); document.form.name.focus(); } else if(telp==""){ alert("Please input your phone number!"); document.form.phonenumber.focus(); } else if(isNaN(telp)==true){ alert("Please input your phone number correctly!"); document.form.phonenumber.focus(); } else if(email1==""){ alert("Please input your email!"); document.form.email.focus(); } else if(document.form.email.value.search(/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/)){ alert("Please input your email correctly!"); document.form.email.focus(); } else if(koment==""){ alert("Please input your comment or question!"); document.form.comment.focus(); }}</script></head><body> <form method="post" name="form" action="verify.php" > <?php require_once('recaptchalib.php'); $publickey = "mypublickey"; echo recaptcha_get_html($publickey); ?> <table> <tr><td>Name *</td><td><input type="text" name="name" /></td></tr> <tr><td>Address</td><td><input type="text" name="address" /></td></tr> <tr><td>Phone Number *</td><td><input type="text" name="phonenumber" /></td></tr> <tr><td>Email *</td><td><input type="text" name="email" /></td></tr> <tr><td>Category</td><td><select name="category"> <option>Appointment</option> <option>Complain</option> <option>General Feedback</option> <option>Other</option> </select></td></tr> <tr><td>Comment / Question *</td><td><textarea rows="10" cols="20" name="comment"></textarea></td></tr> <tr><td colspan="2"><input type="submit" name="btn" value="Send" onClick="show_alert()" /> <input type="reset" name="reset" value="Reset" /></td></tr> </table> <script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=mypublickey"></script> <noscript> <iframe src="http://www.google.com/recaptcha/api/noscript?k=mypublickey" height="300" width="500" frameborder="0"></iframe><br> <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea> <input type="hidden" name="recaptcha_response_field" value="manual_challenge"> </noscript> </form></body></html> This is php file.<?php$name=$_POST["name"];$address=$_POST["address"];]$phone=$_POST["phonenumber"];$email=$_POST["email"];$category=$_POST["category"];$comment=wordwrap($name."\r\n".$address."\r\n".$phone."\r\n".$email."\r\n".$_POST["comment"],70);require_once('recaptchalib.php');$privatekey = "myprivatekey";$resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);if (!$resp->is_valid) {// What happens when the CAPTCHA was entered incorrectlydie ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")"); header("Copy of recaptcha.html");}else { mail(contactus@asd.com,$category,$comment) echo "Message has been sent....."}?> all of this code i following step by step from https://developers.google.com/recaptcha/ but this isn't work... any suggestion??need help......