This is a Simple Contact Form script in PHP. First we are creating form in html. After that sending the mail to specific mail address. We are checking all the post values are set or not, next we are checking for the values are empty or not. After that if values are not empty then […]
Continue readingThis is a simple tutorial to send mail using PHP Mail Function, This code is to test whether web server is capable of sending mail or not. We are using PHP mail function.
Continue readingHere we are Creating Multistep form processing using PHP. We are Creating Multistep form processing using PHP by using the sessions, in each step we are storing the data in sessions. We are generating sql query directly from data that is stored in sessions.
Continue readingThis is simple code to Import CSV file data using MySql and PHP, Here we are taking the data from the CSV file and inserting it into the database. This is the beginner level code.
Continue readingThis code is continuation from the last script, we will login a user based on the user is active or not, if the user is active, he is able to access otherwise he will be shown with an error message.
Continue readingThis is simple script for automating the process of forms after submission, generally we have to assign every submitted value to a variable, and we have to add those values to the sql queries, By using this code you can generate any kind of sql queries, but i have included only for INSERT and SELECT […]
Continue readingHow to remove last element of an array in PHP, We can remove last element of an array using array_pop function in php. First we are using an array with sample values, then we are assigning it to an $array variable, before applying the function we are printing array with print_r function surrounded with pre […]
Continue readingHow to loop through the POST array in PHP, If you have lots of form fields and you want to automate the process of writing long and daunting sql queries, By starting with assigning post array to variables, after that writing long sql query by mapping table row to assigned variables. We can automate this […]
Continue readingSeparating an array with commas in PHP, we are separating an array with PHP’s function implode, first we are using an array of sample values and assigning it to an $array variable. then we are passing two arguments to implode function one is separator, what we want to separate the array with, ane the next […]
Continue readingHow to split an array into single quotes and comma separated list in PHP, When we are working dynamic SQL queries we have to build them using the post array, after splitting the array field key and values into separate array’s. we need to have single quote mark arround the values and it is separated with […]
Continue reading