Solutionist's Blog

Tech | Health | Life | Travel

create an HTML button that acts like a Link

This is quiet simple Put it in a <form> wherein you specify the desired target URL in the action attribute. <form action=”http://google.com”> <input type=”submit” value=”Go to Google”> </form>   here is another veriation but didn’t test it yet.. <a href=”http://www.ajayadas.com/”> <button>click me</button> </a>  

php-tips-insert-href-link-in-a-php-code

If the link needs to be inside of the PHP you have two options. Option one is to end the PHP and then reopen it. Here is an example: <?php —– My PHP Code—- ?> <a href=”https://twitter.com/angela_bradley”>My Twitter</a> <?php —– My PHP Code—- ?> The other option is to print or echo the HTML code […]

html-tip-using-quotes-in-form-input-tags

In (X)HTML, attribute values should be enclosed by double or single quotes. But a common source of errors and confusion arises when those values themselves contain double or single quotes. This is especially common for form input fields, where the values might contain data obtained from a database or supplied previously by the user. Yes, […]

How Do I Parse HTML Pages As PHP?

You can tell apache to treat your .html pages as .php pages by adding the following line of code to your .htaccess file: AddHandler application/x-httpd-php5 .php .htm .html  The above code will parse your .html pages using php5, if you would like to use php4 instead, please use the line of code below: AddHandler application/x-httpd-php4 […]

biggest DD0S Attack

The last month has seen probably the largest distributed denial-of-service (DDoS) attack ever. A massive 300Gbps was thrown against Internet blacklist maintainer Spamhaus’ website but the anti-spam organisation , CloudFlare was able to recover from the attack and get its core services back up and running. Spamhaus, a group based in both London and Geneva, is […]

html meta redirect to different site

However, when using this HTML redirect code, please ensure that you don’t use it to trick the Search Engines, as this could get your web site banned. It is always best to work hard and learn quality ways in which to drive traffic to your web site. Place the following HTML redirect code between the […]

CentOS / Redhat Apache mod_ssl install

Install mod_ssl yum update yum install mod ssl   Create an SSL Certificate cd /etc/tls/certs openssl genrsa -des3 -out apachekey.pem 2048 Generate a Certificate Signing Request (CSR) Type the following command: # openssl req -new -key apachekey.pem -out apachekey.csr Create the Web Server Certificate You must signed the CSR to create the web server certificate, […]

Secured By miniOrange