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.
document.getElementById("data").value="<input type='text' name='name'>";
<a onClick="add_textbox()">Add Textbox</a>
We can easily add all types of inputs dynamically.
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.
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
another way to redirect the website is with using header() function of PHP.
We have done redirection of website in php
Firstly create your fetching_images.php file.
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.
now create new file for displaying images named display.php
You have successfully done image storing process. enjoy.
any query mail me or whatsapp me anytime.
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
echo “<font color=red>Premal Katigar</font>”;
PHP inside HTML
<?php echo “Premal Katigar”; ?>
Random number is generate using rand() function.
echo(rand() . “<br>”);
echo(rand() . “<br>”);
$ip=$_SERVER[‘REMOTE_ADDR’]; echo “Your IP Address : $ip”;
<a href=”https://premkatigar.wordpress.com/” target=”_blank”>Premal</a>
echo “Above text is link”;