Web Development Articles

Page 671 of 801

Using CSS3 in SAP BSP application without using DOCTYPE tag

Amit Sharma
Amit Sharma
Updated on 15-Mar-2026 289 Views

You can use CSS3 features in SAP BSP applications even without adding a DOCTYPE tag by leveraging JavaScript libraries and polyfills that provide CSS3-like functionality. Syntax /* CSS3 features may not work without DOCTYPE */ selector { border-radius: value; box-shadow: value; transition: value; } Method 1: Using jQuery UI jQuery UI provides CSS3-like effects and styling that work across browsers without requiring DOCTYPE − .custom-button { ...

Read More

How do I center tag using CSS?

Yaswanth Varma
Yaswanth Varma
Updated on 15-Mar-2026 493 Views

Centering a in CSS is one of the most common layout tasks in web development. There are several approaches − Flexbox, Grid, and margin-based centering. Let's look at each method with examples. Syntax /* Flexbox Method */ .container { display: flex; justify-content: center; align-items: center; } /* Grid Method */ .container { display: grid; place-items: center; } /* Margin Method */ .element { margin: 0 auto; ...

Read More

How to display logged-in user information in PHP?

Dishebh Bhayana
Dishebh Bhayana
Updated on 15-Mar-2026 3K+ Views

In this article, we will learn how to display logged-in user information using PHP sessions. When building web applications with authentication, displaying user information on various pages provides a personalized experience for users. We can implement user authentication and display logged-in user information using PHP sessions along with HTML forms. Let's explore this with practical examples. Basic User Authentication System This example demonstrates a complete login system with user authentication and information display − Filename: login.php Login Page Login ...

Read More

How to Test a URL for 404 error in PHP?

Pradeep Kumar
Pradeep Kumar
Updated on 15-Mar-2026 3K+ Views

In PHP, testing a URL for 404 errors is essential for validating links and ensuring proper user experience. PHP offers several methods to check URL status codes, each with different levels of efficiency and control. Using file_get_contents() The simplest approach uses file_get_contents() with a custom stream context to handle errors gracefully ? This method creates a stream context with ignore_errors set to true, preventing PHP from throwing warnings on HTTP errors. The $http_response_header variable is automatically populated with headers from the last HTTP request. Using get_headers() A more efficient approach using ...

Read More

How to prevent XSS with HTML/PHP?

Mohit Panchasara
Mohit Panchasara
Updated on 15-Mar-2026 859 Views

Cross-Site Scripting (XSS) is a major threat to web application security because it allows attackers to inject malicious scripts into reputable websites. This attack depends on innocent consumers, exposing important information or potentially gaining control of their accounts. Understanding and combating XSS threats is critical for maintaining a strong security posture as web applications become more complex and dynamic. What are XSS Attacks? Cross-Site Scripting (XSS) attacks are a common security risk in web applications. Attackers take advantage of vulnerabilities in web pages to inject and execute malicious scripts on the browsers of unaware users. The Different ...

Read More

Online Group Chat application Using PHP

Rushi Javiya
Rushi Javiya
Updated on 15-Mar-2026 6K+ Views

A web-based online group chat application enables users to communicate in real-time through text messaging. This tutorial demonstrates how to build a complete group chat application using PHP, MySQL, and Bootstrap for a modern interface. Prerequisites Installation Requirements: XAMPP or WAMP server with PHP support MySQL database Web browser for testing Step 1: Database Setup First, create the database and table structure for storing chat messages − CREATE DATABASE onlinechatapp DEFAULT CHARACTER SET utf8; GRANT ALL ON onlinechatapp.* TO 'admin'@'localhost' IDENTIFIED BY 'admin'; USE onlinechatapp; CREATE TABLE ...

Read More

Simple Contact Form using HTML CSS and PHP

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 5K+ Views

A contact form is a great way to allow users to reach out to you directly through your website. Contact forms are a crucial aspect of any website, as they allow visitors to get in touch with the website owner. A contact form on website provides an easy way for visitors to ask questions, make inquiries, or provide feedback. In this tutorial, we will be discussing how to create a simple contact form using HTML, CSS, and PHP. Step 1: Create the HTML Form The first step in creating a contact form is to create its structure ...

Read More

Should I Learn Python or PHP for the Back End?

Tushar Sharma
Tushar Sharma
Updated on 15-Mar-2026 487 Views

Choosing between Python and PHP for backend development is one of the most common decisions new developers face. Both languages have established themselves as powerful tools for server-side programming, but they serve different purposes and excel in different areas. PHP was specifically designed for web development and has powered millions of websites since the 1990s. Python, originally created for general-purpose programming, has gained significant traction in web development while maintaining its dominance in data science and machine learning. Understanding their key differences will help you make an informed decision based on your career goals and project requirements. ...

Read More

PHP timestamp to HTML5 input type=datetime element

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 1K+ Views

HTML5 datetime input elements require a specific format: YYYY-MM-DDTHH:MM:SS. In PHP, you can convert timestamps to this format using the date() function with the appropriate format string. Basic DateTime Format To format the current timestamp for HTML5 datetime input − 2024-03-28T19:12:49 Converting Specific Timestamp To convert a specific Unix timestamp to HTML5 datetime format − 2022-01-01T00:00:00 HTML Integration Using the formatted timestamp in an HTML datetime input element −

Read More

What are the differences between JavaScript and PHP cookies?

Anvi Jain
Anvi Jain
Updated on 15-Mar-2026 903 Views

Cookies are text files stored on the client's browser to remember user information across web pages. Both JavaScript and PHP can work with cookies, but they operate differently − JavaScript handles cookies on the client-side while PHP manages them on the server-side. JavaScript Cookies JavaScript cookies are manipulated directly in the browser using the document.cookie property. They're ideal for client-side data storage and immediate user interactions. Setting a Cookie with JavaScript // Set a cookie that expires in 7 days document.cookie = "username=john; expires=" + new Date(Date.now() + 7*24*60*60*1000).toUTCString() + "; path=/"; Reading ...

Read More
Showing 6701–6710 of 8,010 articles
« Prev 1 669 670 671 672 673 801 Next »
Advertisements