Thursday, November 6, 2008

Avoid all keypress and except BACKSPACE character

Hi all,

onkeypress="if(event.keyCode==8) return true; else return false"

here, keyCode 8 for BACKSPACE

List of all Keycodes, click here

5 comments:

Anonymous said...

http://forums.digitalpoint.com/showthread.php?t=24351

Anonymous said...

include_once("includes/configure.php");
include_once("includes/database_tables.php");
include_once("includes/functions/database.php");

/* Database Connect */
rg_connect();
Header('Content-type: application/csv');
Header("Content-disposition: attachment; filename=\"Competitions-".date('mdy-Hi').".pdf\"");

//Fetching the Question for "exam_question" table
$sql_exam_question = "SELECT * FROM mvp_user_info ";
$qry_exam_question = mysql_query($sql_exam_question) or die();

$column_limiter = " ";
$row_limiter = "\n";

//Heading
echo "Id,Username,Pass,Email,Age,Gender,Marital Status\n";

while( $fetch_data = mysql_fetch_object($qry_exam_question) ) {

echo $fetch_data->user_id; echo $column_limiter;
echo $fetch_data->user_name; echo $column_limiter;
echo $fetch_data->user_pass; echo $column_limiter;
echo $fetch_data->user_email; echo $column_limiter;
echo $fetch_data->user_age; echo $column_limiter;
echo $fetch_data->user_gender; echo $column_limiter;
echo $fetch_data->user_marital_status; echo $column_limiter;

echo $row_limiter;
}

Anonymous said...

This script is help me a lot.....
Thanx for your effort.

Anonymous said...

Interesting, very interesting! thanks for the informative posts you have been doing here, these posts certainly are very helpful to all! Keep posting, thanks.

iteducationcentre said...

That was great to read. Thanks for posting.
also, join Java classes in Pune

Popular Posts