How to add Textbox dynamically in php

I will show you how to add textbox, select, or any checkbox dynamically in PHP. I will show you how to add dynamic textbox while clicking on link.

<head>
<script language="javascript" type="text/javascript">
function add_textbox()
{
      document.getElementById("data").value="<input type='text' name='name'>";
}
</script>
</head>
<body>
<a onClick="add_textbox()">Add Textbox</a>
</body>

We can easily add all types of inputs dynamically.

Thank you

Premal Katigar

Safety and Security of WordPress Blog (Infographic)

WordPress is one of the most popular content management system (CMS) in use and around 17% of the websites that are present on the internet these days are powered by this CMS. With the growing use of WordPress its security and safety has also become one of the major issues to deal with. In the year 2011 more than 144,000 word press sites were hacked and this number reached to 170,000 in the year 2012.

The website owners and the core developers of WordPress are responsible for the security of the system. In order to keep their security tight, the WordPress site owners should keep various points into consideration like updating the WordPress to the latest version that is released, keeping back of data, do not display the version of WordPress on blog, reporting bugs to WordPress security, not installing the free themes, using strong passwords for all the entry points, using only trusted plug-in and others.

Some of the most common ways that result in the site being hacked are having virus on the computer, keeping easy to crack password, approving comments that are non relevant, Contact US form going to the script in the site for processing and website displaying only the plain HTML+ JavaScript pages. Thus one should take care of these points to avoid getting their site hacked.

wordpress

 

how to redirect your website in php

I will show you how to redirect the website from one page to another page.

we can use either action method from the attribute of form tag.

<form action=”premal.php” name=”form”></form>

it will redirect your website to premal.php

redirect_website

another way to redirect the website is with using header() function of PHP.

header()

We have done redirection of website in php

Premal Katigar

84604-57306

premalkatigar2@gmail.com

how to store images in database using PHP

Firstly create your fetching_images.php file.

storing_images_using_php

now create add.php file.

In below code automatically create a new folder named inages in your www directory. all the images which you upload from here will store in that images folder.

we can create images using mkdir() function of PHP.

fetching_images_using_php

now create new file for displaying images named display.php

fetching_images_using_php1

You have successfully done image storing process. enjoy.

any query mail me or whatsapp me anytime.

thank you.

formatting using PHP

So you’ve gone though some of the tutorial, and you can make some nifty things in PHP. But the problem is, they all look like plain text. How do you jazz them up?

Formatting with PHP actually isn’t done with PHP, it’s done with HTML. You can do this in two ways. You can add the HTML inside of the PHP… or you can add the PHP inside of the HTML. Either way, make sure your file is saved as a .php or another file type that is allowed to execute PHP on your server.

HTML inside PHP

<?php

echo “<font color=red>Premal Katigar</font>”;

?>

PHP inside HTML

<font color=”red”>

<?php echo “Premal Katigar”; ?>

</font>