
Showing posts with label Website Related. Show all posts
Showing posts with label Website Related. Show all posts
Friday, January 24
Embed Google Drive Folder On A Website [NOT WORKING]

Saturday, December 7
Javascript Form Validation
For a webmaster contact forms are the best way to interact with the visitors of his website, collect reviews, complaints, suggestions. It also could be a way of collecting leads for a business. But what if the forms are not validated properly or are not validated at all. It could lead to incorrect data in your records, or your visitors could make a little mistake in the data entered in a web form and then you have no means to revert back because of some small mistakes.
Redirect Single Blogger Post
Blogging can be great fun. Blogger blog for many things, fun, profession, business, hobby. Important thing comes in when your blog is quite old and its pages have been index by major search engines. Imagine you have posted an article regarding something and after some months you have an updated version of the same article then you do the following 2 things:
- Post the new article and create a link in the old article directing to the new article.
- Delete the old article and post the new article.
Form to MySQL Database
Building web applications in php can be extremely useful. PHP is fast and easy. Even if you know a very little about it you can create fascinating web application with the help of database connectivity. The most important task of which could be adding data submitted through the form to a database (here MySQL).
In this post we will see a sample of code which could add data to database.
We will need the following things -
In this post we will see a sample of code which could add data to database.
We will need the following things -
- MySQL server
- PHP server
- Any Text editor
Export MYSQL to Excel Using PHP
In this post I will give some details on how to export a data from an MySQL database to an excel file. The basic requirements for this would be having a PHP server and MySQL server.
The below working example will help us to understand this better. We are using a database having name "shaliwahan" and the table name "tablename".
The below working example will help us to understand this better. We are using a database having name "shaliwahan" and the table name "tablename".
Add Related Posts in Blogger
You must have seen many blogs which provide tutorials to add Related Posts below the Blogger blog posts. These widgets are very useful, however it involves adding lots of code to your blogger template which may be difficult for some people. However, below provided is a simple and wonderful way to add related posts to a blogger blog. This method is very useful for those blogspot users who dont know much about coding and also for the other users.
With this trick many of your readers will remain on your site for longer periods of time when they see related posts of interest.
With this trick many of your readers will remain on your site for longer periods of time when they see related posts of interest.
Blogger Pagination
If you are running your own blog you must be knowing that on your blog home page there is a link after the post saying "Older Posts" for something similar to it. On some of the other posts it might display both "Newer posts" and "Older Posts".
Well wouldn't it be wonderful for the us to display post number instead of these above pages. There is a simple single code to display it in blogger.
Well wouldn't it be wonderful for the us to display post number instead of these above pages. There is a simple single code to display it in blogger.
Change Website Background Based on Time
This post will show how to change the background of your website based on date and time. For instance your website will have dark background during the nights and light, shiny during the day.
You can easily customize this script to change the css file of the website to get a complete new look of your website. To use this script you need to add the following code before the </head> tag.
You can easily customize this script to change the css file of the website to get a complete new look of your website. To use this script you need to add the following code before the </head> tag.
PHP AJAX Instant Search
This post is for shedding light on PHP-AJAX based live / instant search. This search can be used on web server that supports php scripts, it has the advantages of controlling what appears on the search results (i.e you select what is to be shown in the results), results are display almost instantly, you can control where the results are to be displayed & can customize the result's display with a additional css file. This search has 5 major parts :
Send Mail Function in PHP
Contact forms are a wonderful means of interaction with the visitors of your website. Any form on a website can be used for 2 major functions. To store a data in a database (MySql, SQL, Flat-file and others) or send the collected data to a email address.
In my this post I will explain how to send mail to an address containing the collected fields from the form. In the later posts I will explain how to add the same data to the database directly.
In my this post I will explain how to send mail to an address containing the collected fields from the form. In the later posts I will explain how to add the same data to the database directly.
Difference Between GET and POST
My previous post explains how to send mail using the inbuilt php mail() command by retrieving the contents of the form using the GET and POST methods. We get the data from the user in both the ways, then why are there two different methods, what exactly is the difference between the two methods.
Both the GET and the POST method do the same work but the difference is in the way the work is performed. It has some limitations and some advantages.
We will take the GET method first. This method collects the data from the fields and send them in the address bar by using the ?, & and = signs. The address bar after form submission looks something like this
Both the GET and the POST method do the same work but the difference is in the way the work is performed. It has some limitations and some advantages.
We will take the GET method first. This method collects the data from the fields and send them in the address bar by using the ?, & and = signs. The address bar after form submission looks something like this
Blogger XML Code Converter
Blogger does not allow you to add adsense and other ad networks codes' directly to your html template. For that you need the code to be converted to proper format.
Whenever I tried to insert adsense code directly into the blogger template,
Either it would not show up at all
Or an XML not well formed error messages, like the following, were displayed.
“Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly. XML error message: The content of elements must consist of well-formed character data or markup.”
Whenever I tried to insert adsense code directly into the blogger template,
Either it would not show up at all
Or an XML not well formed error messages, like the following, were displayed.
“Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly. XML error message: The content of elements must consist of well-formed character data or markup.”
Subscribe to:
Posts (Atom)