Category Archives: PHP Scripts

It contains PHP Scripts that I learn newly.

How to set method of a html form using javascript or js?

It can be done as follows :

document.forms["Form_Name"].method= "get";
or
document.forms["Form_Name"].method= "post";

How to set action for a form using javascript or js?

It can be done as follows :

document.forms["Form_Name"].action = "file_name.ext";

It can be followed in any programming language. It’s tested and working. Tested by myself

Zooming image with jquery

Check the following links to see how it work

To download it please click the below links

Jquery in PHP & Perl…

When we try to print “jquery” inside “PHP or Perl” using “echo or print” statement we should escape the$” symbol used in the jquery. It should be as follows.

print qq{

<script type=”text/javascript”>
(function(\$) {
\$(function() {
\$(“#scroller”).simplyScroll({orientation:’vertical’,customClass:’vert’});
});
})
(jQuery);
(function(\$) {
\$(function() {
\$(“#scroller1”).simplyScroll({direction:’backwards’});
});
})(jQuery);
(function(\$) {
\$(function() {
\$(“#scroller2”).simplyScroll({direction:’backwards’});
});
})(jQuery);
</script>

}

echo ‘

<script type=”text/javascript”>
(function(\$) {
\$(function() {
\$(“#scroller”).simplyScroll({orientation:’vertical’,customClass:’vert’});
});
})
(jQuery);
(function(\$) {
\$(function() {
\$(“#scroller1”).simplyScroll({direction:’backwards’});
});
})(jQuery);
(function(\$) {
\$(function() {
\$(“#scroller2”).simplyScroll({direction:’backwards’});
});
})(jQuery);
</script>

‘;