Most of the times we face a situation where we have to algin some of the website‘s content <div> center of the screen vertically and horizontally in UI development.
Here we have two ways to achieve this:
1. If height and width is given for the element
As we all know Bootstrap has become very popular day by day as a web responsive framework, which is used to make responsive web applications for several devices. In this post we will talk about the very most and commonly used CSS classes which are .row and .clearfix. Both the CSS classes are similar...
jQuery functions $.ajax() and $.post(), using these two functions you can submit the PHP Web Forms without Refreshing the whole Web Page of Your Site.A very simple example submitting HTML form values without refreshing page using php jQuery and Ajax.
HTML File: signupform.html
- URL that we want to send our JSON to.
- initiated cURL using curl_init.
- PHP array containing sample data.
- encoded our PHP array into a JSON string by using the function json_encode.
- specified that we were sending a POST request by setting the CURLOPT_POST option to 1.
CAPTCHA is used to determine if a user is a computer or a human and is used to prevent spam abuse on the websites. So we you use CAPTCHA on your web site forms for stopping some bots to accessing or using the forms.
the CAPTCHA protection works by generating a random string, writing it to a...
Export the database as in the format of CSV using php and open it in the Microsft office (MS)-Excel. let see how it works.
let's we have a database "mydb" and table "customer"
1) Create connection to the database "mydb"
2) Fetch the record from db
3) Get the field name
4) Get the record...
The include and require statements are identical, except upon failure: - If file not found require will produce a fatal error (E_COMPILE_ERROR) and stop the script - If file not found include will only produce a warning (E_WARNING) and the sc...
Sends an error message to the web server's error log or to a file.Using print_r() is the easiest, since the second parameter to the function says that we want to send the output to a variable rather than echoing it. Thus, to write to the error_log you just need to use the following code.
There are a few ways to enable CURL in apache.Option 1: Enable CURL via the php.ini
This is the main method on any windows install like WAMP, XAMPP etc
1) Locate your PHP.ini file
(normally located at in the bin folder of your apache i...
Add a line break in a specific point in a string and print it. there are two ways to add/echo a line break or new line in a string.
Method 1: Using escaping sequence \n
1) Add the escape sequence \n at the point you want to add a new line break, then
Showing 21 to 30 of 44 (5 Pages)