Gheek.net

October 13, 2011

HTML Input type hidden has extra space when POST/GET methods sends

Filed under: html — lancevermilion @ 3:45 pm

Apparently some browsers interrupt INPUT types of hidden differently.
For example if you have a newlines, tables, or spaces between the space between is considered.

<INPUT NAME="A1" TYPE="hidden"/> <INPUT NAME="A2" TYPE="hidden"/>

The solution is to use a DIV with a STYLE of display:none and change your TYPE to “text”.

<DIV STYLE="display;none;"><INPUT NAME="A1" TYPE="text"/> <INPUT NAME="A2" TYPE="text"/></DIV>

This is a nice discovery, but very frustrating.

Advertisements

February 15, 2008

HTML Character Cheat Sheet

Filed under: cheatsheets, html — Tags: , , , — lancevermilion @ 3:04 pm

html_characters_cheat_sheet

February 14, 2008

decoder_php.txt

Filed under: html, php — Tags: , , , , , , , , — lancevermilion @ 2:28 pm
 Modify -> Share (aka: GNU License)
 *
 * If you find youself unable to perform these tasks, this source code
 *   is *not* for you and should be deleted now.
 *
 */ // P.S. Donations are always appreciated. :-)
?>

TRANSLATOR, BINARY



.ff{font-size: 10px;
	font-family:verdana,arial,helvetica,sans;
	color: #333333;
	background: #eee;
	}
.btn{
	font-size: 8px;
	font-family:verdana,arial,helvetica,sans;
	color: #333333;
	background: #eee;
	}
BODY{
scrollbar-3dlight-color:#999999;
scrollbar-arrow-color:#999999;
scrollbar-base-color:#DDDDDD;
scrollbar-darkshadow-color:#999999;
scrollbar-face-color:#DDDDDD;
scrollbar-highlight-color:#DDDDDD;
scrollbar-shadow-color:#DDDDDD;
scrollbar-track-color:#CCCCCC;
}







TRANSLATOR, BINARY

Please note:
This application encodes and decodes ASCII and ANSI text.
Only codepoints < 128 are ASCII. This is provided for educational and entertainment use only.

<?/*
[ TEXT ]
$val){ $$key = stripslashes($val); } #$_POST[ascii] = str_replace("\\'","'",$_POST[ascii]); #$_POST[ascii] = str_replace("\\\"","\"",$_POST[ascii]); #$_POST[ascii] = str_replace("\\\\","\\",$_POST[ascii]); if($ascii != "") print htmlentities($ascii); else { if($binary != "") { $binary_ = preg_replace("/[^01]/","", $binary); for($i = 0; $i < strlen($binary_); $i = $i + 8) $ascii = $ascii.chr(bindec(substr($binary_, $i, 8))); } if($hex != "") { $hex_ = preg_replace("/[^0-9a-fA-F]/","", $hex); for($i = 0; $i
2 [ BINARY ]
<?php if($binary != "") echo $binary; else if($ascii != "") { $val = strval(decbin(ord(substr($ascii, 0, 1)))); echo str_repeat("0", 8-strlen($val)).$val; for($i = 1; $i
4 [ HEX ]
<?php if($hex != "") echo $hex; else if($ascii != "") { $val = dechex(ord(substr($ascii, 0, 1))); echo str_repeat("0", 2-strlen($val)).$val; for($i = 1; $i
3 [ OCT ]
<?php if($oct != "") echo $oct; else if($ascii != "") { $val = 0; for($i = 0; $i 0) echo oct_decode($val); } function b64_decode($val) { $tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; if($val >= 64) return oct_decode(intval($val / 64))."".substr($tab,$val%64,1); return substr($tab,$val,1); } function oct_decode($val) { if($val >= 8) return oct_decode(intval($val / 8))."".($val%8); return "".$val; } */ ?>
<? //?>
6 [ BASE64 ]

[ DEC / CHAR ]
<?php if($char != "") echo $char; else if($ascii != "") { echo ord(substr($ascii, 0, 1)); for($i = 1; $i
[ MESSAGE DIGEST / CHECK SUM ]
str_sha1($ascii))."\n"; echo "SHA1: "; $ascii = $sha->str_sha1($ascii); for($i = 1; $i
(This cannot be decoded*)
Amazon Honor System
*Cannot be decoded easily (within my lifespan). The source code for this page is available here.
Credit for this idea goes to http://nickciske.com/binary/ in its original form in 2000. <? function split32($text) { $string = ""; for($i = 0; $i < strlen($text); $i = $i + 32) { $string = "$string\n ".substr($text, $i, 32); } return $string; } function splitn($n,$text) { $string = ""; for($i = 0; $i

Create a free website or blog at WordPress.com.