Sunday, 17 January 2021

Send the Email Template Localhost xampp Using PHP and CSS

Template Styles allow custom CSS pages to be used to style content without an interface administrator having to edit sitewide CSS. Template Styles make it more convenient for editors to style templates; for example, those templates for which the sitewide CSS for the mobile skin or another skin (e.g. Timeless) currently negatively affects the display of the template.

This Video is how to Send Email template.


1. Create Subscribe.php file  and past this code.

Thursday, 7 January 2021

 

Create Contact page and contact Email using php and css

contact page is a common web page on a website for visitors to contact the organization or individual providing the website.

The page contains one or more of the following items:

  • an e-mail address
  • a telephone number
  • a postal address, sometimes accompanied with a map showing the location
  • links to social media
  • a contact form for a text message or inquiry

In the case of large organizations, the contact page may provide information for several offices (headquarters, field offices, etc.) and departments (customer support, sales, investor relations, press relations, etc.).

This Video is Create Contact page Using PHP and CSS from localhost.and Download the Source Code.


  Download Source Code 

Thursday, 26 November 2020

Send OTP mobile number verification

 Send OTP mobile number verification using 2factor

SEND OTP VERIFICATION MESSAGES 2Factor.in offers simple HTTP APIs for implementing phone verification use case. Send OTP from PHP, JAVA, Android, iOS OR use Magento SMS Verification, Woocommerce OTP Verification, Wordpress Phone Verification, CRM Integration etc. A one-time password (OTP), also known as one-time PIN or dynamic password, is a password that is valid for only one login session or transaction, on a computer system or other digital device. OTPs avoid a number of shortcomings that are associated with traditional (static) password-based authentication; a number of implementations also incorporate two-factor authentication by ensuring that the one-time password requires access to something a person has (such as a small keyring fob device with the OTP calculator built into it, or a smartcard or specific cellphone) as well as something a person knows (such as a PIN). The most important advantage that is addressed by OTPs is that, in contrast to static passwords, they are not vulnerable to replay attacks. This means that a potential intruder who manages to record an OTP that was already used to log into a service or to conduct a transaction will not be able to abuse it, since it will no longer be valid. A second major advantage is that a user who uses the same (or similar) password for multiple systems, is not made vulnerable on all of them, if the password for one of these is gained by an attacker. A number of OTP systems also aim to ensure that a session cannot easily be intercepted or impersonated without knowledge of unpredictable data created during the previous session, thus reducing the attack surface further.



Index.php file.

Localhost xampp send unlimited email to any email account

 Send email to any email account from localhost xampp and using php.

      Most of the web projects have the email sending functionality. Before uploading to the live server email functionality need to be checked on the local server. But PHP mail() function will not work at the localhost. In this article, we’ll show how you can send email from localhost in PHP. Using this simple PHP script you can send email from any localhost server, like XAMPP, WAMP, or any others.

To using Gmail SMTP server, you should need to change account access for less secure apps. Don’t worry! Just follow the below steps.

  •  Login to your google account.
  •  Go to the Less secure apps settings page – https://www.google.com/settings/security/lesssecureapps
  •  From Access for less secure apps section, select Turn on.


  • Some Changes From php.ini and gmail.ini file.
  • gmail.ini file.
  • line no 14.  smtp_server=smtp.gmail.com 
  • line no 18.  smtp_port=587 
  • line no 26.  smtp_ssl=tls 
  • line no 37.  error_logfile.error.log  remove semicolon ;
  • line no 42.  debug_logfile.debug.log  remove semicolan ;
  • line no 46.  auth_username= Exmaple@gmail.com.   //enter your email id 
  • line no 47.  auth_passwprd= password.     //enter your proper password 
  • line no 60.  force_sender = Exmaple@gmail.com.   //Same email

  • php.ini file changes 
  • line no 1065.  ; SMTP=localhost   add semicolan;  
  • line no 1067.  ; smtp_port=25    add semicolan;
  • line no 1075.  sendmail_path = c:\xampp\sendmail\sendmail.exe 



Registration and login form created by PHP and CSS

 1. Registration form and login page created by PHP and CSS

    registered user is a user of a websiteprogram, or other system who has previously registered. Registered users normally provide some sort of credentials (such as a username or e-mail address, and a password) to the system in order to prove their identity: this is known as logging in. Systems intended for use by the general public often allow any user to register simply by selecting a register or sign up function and providing these credentials for the first time. Registered users may be granted privileges beyond those granted to unregistered users.

    This video is create registration and login page using PHP and CSS. and bootstrap link



2.registration page to connect MySQL database and login verification php

    PHP is a general-purpose scripting language especially suited to web development. PHP code is usually processed on a web server by a PHP interpreter  be any type of data, such as generated HTML or binary image data – would form  He extended them to work with web forms and to communicate with databases

    MySQL is an open-source relational database management system (RDBMS). Its name is a combination of "My", the name of co-founder Michael Widenius's daughter, and "SQL", the abbreviation for Structured Query Language. A relational database organizes data into one or more data tables in which data types may be related to each other; these relations help structure the data. SQL is a language programmers use to create, modify and extract data from the relational database, as well as control user access to the database. In addition to relational databases and SQL, an RDBMS like MySQL works with an operating system to implement a relational database in a computer's storage system, manages users, allows for network access and facilitates testing database integrity and creation of backups.

    This video is connect the MySQL database to registration page and verification the login.



3. Forgot Password PHP and CSS.

    If you have forgotten your password and you previously entered an email address when signing up for the account or in your Preferences, and you still have access to that email account, then this special page can help you recover access to your account.

    Go to Special Password Reset. You can enter either your username or your email. If you are certain of your email, but not your username, only enter your email. The system will send a temporary password to your saved email address that will allow you to retrieve your account. You can change the password after you log in.


    Steps to Forgot Password Recovery (Reset) using PHP and MySQL

    We have to follow these steps to implement forgot password functionality.

  1. Create a Temporary Token Table
  2. Create a Database Connection
  3. Create an Index File (Send Email)
  4. Create a Reset Password File
  5. Create a CSS File

    Let me give you a quick review of it, first we will create a table to store a token valid for one day for any user. We will also create a form that will take input of email, then we will check either email exist or not, if email is found a temporary token will be generated and email will be sent to the user with the generated token.

    Once user clicked on the email token link within one day, user can reset new password. For that purpose we will also create another form that will take input of new password and update it in user table and we will also remove the temporary token from temporary token table once user successfully updated password.

    This video how to forget your password using php and css via email use tokan.