<< < 8 9 10 11 12 13 14 15 16 17 18 > >>   Sort: Date

Using HTML 'reset' Action Fields
How To Use "reset" Input/Action Fields? A "reset" input field is defined as &lt;input type="reset" .../&gt;. "reset" input fields can be used to create reset buttons in a form. When a reset button is clicked, the form will be refreshed by replacing user entered values with default values. On...
2017-04-08, 303👍, 0💬

Using HTML 'reset' Action Fields
How To Use "reset" Input/Action Fields? A "reset" input field is defined as &lt;input type="reset" .../&gt;. "reset" input fields can be used to create reset buttons in a form. When a reset button is clicked, the form will be refreshed by replacing user entered values with default values. On...
2017-04-08, 303👍, 0💬

Removing Values Saved in the Session in PHP
How To Remove Values Saved in the Current Session in PHP? If you want to remove values saved in the current session, you should use the unset() function on those saved values in $_SESSION, or use array() to empty $_SESSION: unset($_SESSION['MyColor']) - Removes one value named MyColor in the current...
2016-10-24, 303👍, 0💬

Interview Questions - HTML Inline Elements
Where to find Interview Questions on HTML Inline Elements? Here are some interview questions: What is an inline element? Is "h1" an inline element? Is "br" an inline element? Is "strong" an inline element? Can you use an inline element inside a "p" element? Can you use an inline element inside a "li...
2017-02-28, 302👍, 0💬

Removing an Empty Directory in PHP
How To Remove an Empty Directory in PHP? If you have an empty existing directory and you want to remove it, you can use the rmdir(). Here is a PHP script example on how to use rmdir(): &lt;?php if (file_exists("/temp/download") ){ rmdir("/temp/download"); print("Directory removed.\n"); } else { ...
2016-11-24, 302👍, 0💬

Timeout Period on Session Values in PHP
What Is the Timeout Period on Session Values in PHP? The PHP engine has no direct settings on session timeout period. But it has a session garbage collection mechanism that you can set to remove those special files containing session values. There are 3 settings you can use to define the session gar...
2016-10-25, 302👍, 0💬

Viewing the Content of a Cookie File in PHP
How to View the Content of a Cookie File in PHP? Cookie files are normal text files. You can view them with any text editor. Follow the steps below to see what is in a cookie file created by your own PHP script. Copy the following sample script, setting_persistent_cookies.php ,to your Web server: &a...
2016-10-30, 301👍, 0💬

Setting ID Column as Auto-Incremented in PHP
How To Set the ID Column as Auto-Incremented in PHP? Many tables require an ID column to assign a unique ID number for each row in the table. For example, if you have a table to hold forum member profiles, you need an ID number to identify each member. To allow MySQL server to automatically assign a...
2016-10-17, 301👍, 0💬

Detecting File Uploading Errors in PHP
How To Detect File Uploading Errors in PHP? If there was a problem for a file upload request specified by the &lt;INPUT TYPE=FILE NAME=fieldName...&gt; tag, an error code will be available in $_FILES[$fieldName]['error']. Possible error code values are: UPLOAD_ERR_OK (0) - There is no error,...
2016-10-14, 301👍, 0💬

Reducing the Display Size of an Image in HTML
How To Reduce the Display Size of an Image? If an image embedded inline is too big when displayed in a browser, you can use "width" and "height" attributes to reduce the image's display size. The display width and height should be proportional to the actual width and height of the image. Otherwise, ...
2017-03-27, 300👍, 0💬

Cookies Transported from Browsers to Servers in PHP
How Cookies Are Transported from Browsers to Servers in PHP? Cookies are transported from a Web browser to a Web server in the header area of the HTTP request message. Each cookie will be included in a separate "Cookie:" header line in the following format: GET / HTTP/1.1 Cookie: name1=value1 Cookie...
2016-11-02, 300👍, 0💬

Creating an Array in PHP
How To Create an Array in PHP? You can create an array using the array() constructor. When calling array(), you can also initialize the array with pairs of keys and values. Here is a PHP script on how to use array(): &lt;?php print("Empty array:\n"); $emptyArray = array(); print_r($emptyArray); ...
2016-10-15, 300👍, 0💬

Single Cookie Size Limit in PHP
How Large Can a Single Cookie Be in PHP? How large can a single cookie be? The answer is depending what is the Web browser your visitor is using. Each browser has its own limit: Internet Explorere (IE): about 3904 bytes Mozilla Firefox: about 3136 bytess If you want to test this limit, copy this sam...
2016-10-30, 298👍, 0💬

Performing Key Word Search in PHP
How To Perform Key Word Search in Tables in PHP? The simplest way to perform key word search is to use the SELECT statement with a LIKE operator in the WHERE clause. The LIKE operator allows you to match a text field with a keyword pattern specified as '%keyword%', where (%) represents any number of...
2016-10-17, 298👍, 0💬

Retrieving the Last Auto Increment ID in PHP
How To Get the Last ID Assigned by MySQL in PHP? If you use an ID column with AUTO_INCREMENT attribute, you can use the mysql_insert_id() function to get the last ID value assigned by the MySQL server, as shown in the sample script below: &lt;?php include "mysql_connection.php"; $sql = "INSERT I...
2016-10-17, 298👍, 0💬

WPF App with VC# and XAML in Visual Studio 2017
How to build a WPF application with VC# and XAML in Visual Studio 2017? If you want to build a WPF (Windows Presentation Foundation) application with VC# and XAML in Visual Studio 2017, you can follow this tutorial 1. Start Visual Studio 2017 with .NET development environment. 2. Click "File &gt...
2017-08-13, 297👍, 0💬

Determining If a Session Is New in PHP
How To Determine If a Session Is New in PHP? There is not direct way to tell if a session is new or old. But you can design your site to have a required session value in all sessions. Then you can check the existence of this value in a session to determine if it is a new session by isset($_SESSION['...
2016-10-24, 297👍, 0💬

Remove Trailing New Line Character in PHP
How To Remove the New Line Character from the End of a Text Line? If you are using fgets() to read a line from a text file, you may want to use the chop() function to remove the new line character from the end of the line as shown in this PHP script: &lt;?php $handle = fopen("/tmp/inputfile.txt"...
2016-10-13, 297👍, 0💬

Introduction of HTML Inline Elements
What Are XHTML Inline Elements? Inline elements are XHTML elements that can be used together with character data to form lines of paragraph blocks. Here are some basic rules about inline elements: Inline elements are usually used as sub-elements of block elements. Some inline elements have empty con...
2017-08-03, 295👍, 0💬

Testing If a Variable Is an Array in PHP
How To Test If a Variable Is an Array in PHP? Testing if a variable is an array is easy. Just use the is_array() function. Here is a PHP script on how to use is_array(): &lt;?php $var = array(0,0,7); print("Test 1: ". is_array($var)."\n"); $var = array(); print("Test 2: ". is_array($var)."\n"); ...
2016-10-15, 295👍, 0💬

HTML Line Break 'br' Tag/Element
What Is an HTML "br" Tag/Element? A "br" element is an inline element that you can use to specify a line break in the paragraph. Here are basic rules about "br" elements: "br" elements are inline elements. "br" elements can not be used at block level. "br" elements are empty content elements. Most b...
2017-07-21, 294👍, 0💬

Other HTML Inline Elements
What Are Other HTML Inline Elements? Other inline elements that are not covered in this collection: a - Defining an anchor. img - Defining an image. map - Defining a clickable image map. input - Defining an input field in a form. select - Defining a selection field in a form. textarea - Defining an ...
2017-07-21, 294👍, 0💬

Server-Side Image Maps in HTML
What Is a Server-Side Image Map? A server-side image map is an image inside a hyper link. The image must be defined with the "ismap" attribute in the "img" element. When a server-side image map is clicked in a browser window, the mouse coordinates will be delivered to the server by them to the end o...
2017-03-22, 294👍, 0💬

Firefox Storing Persistent Cookies in PHP
Where Does File Firefox Store Persistent Cookies in PHP? If you change Firefox to keep cookies "until they expire", Firefox will store persistent cookies from all Web servers in a single file at: \Documents and Settings\$user\Application Data\Mozilla \Firefox\Profiles\xby7vgys.def ault\cookie.txt.Op...
2016-10-30, 294👍, 0💬

<< < 8 9 10 11 12 13 14 15 16 17 18 > >>   Sort: Date