Total Pageviews

Friday, May 27, 2011

java script basic learning..


in javascript

if u want to check the empty value in text box?

u should have form name and text box name

select function name from form event like onsubmit= return function_name();

syntx

function function_name()
{
var txtbx=document.form_name.textbox_name;                   ///

if(txtbx.value=="" || txtbx.value==null )
{
 alert("text box is empty");
return false;
}

}

<form name="form_name"  onsubmit="return function_name()">
<input type="text" name="txtbx">
</form>

Thursday, May 12, 2011

Php video upload problem

How To Config the file in php.ini


In PHP unable to upload video file more then 2MB...

How to increase the upload file size ?

---------------------------------

find the line in php.ini file
replace the following lines 

find:-

upload_max_filesize = 2M 

Replace:-

php_value upload_max_filesize = 500M

-------------------------------------

find:-

post_max_size = 8M

Replace:-

php_value post_max_size = 500M

--------------------------------------
increase your file size however you want.....