Jump to content

Search the Community

Showing results for tags 'php signup form'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. Hello guys this is string1301 i am new to php and i don't know much about php but just in recent days i have started to learn php as i am new in php but i am good at static web pages design so some time i need to embade a sign up form in my web pages so usually i do it by downloading some online source file of sign up form in php then i just embade it to my web page. But this cause me a lot of trouble as i am not able to modify it freely. This time i thought to do it by my self so i just studied some codes and attached it to my web page but when i run it in my local host i am not able to get the out put just a blank page and the page is showing white not even any error message is showing so i decided to share my problem in this forum Here's My PHP code <?php require_once 'connect.php'; require_once 'functions.php'; require_once 'myfunc.php'; require_once 'cifunc.php'; $name=$address=$landmark=$pincode=$phone_num=$email=$password=$city=$touchpoint=$error=$success=""; if(isset($_POST['yourname'])) $name=correct_input($_POST['yourname']); if(isset($_POST['address'])) $address=correct_input($_POST['address']); if(isset($_POST['landmark'])) $landmark=correct_input($_POST['landmark']); if(isset($_POST['pincode'])) $pincode=correct_input($_POST['pincode']); if(isset($_POST['phone_num'])) $phone_num=correct_input($_POST['phone_num']); if(isset($_POST['email'])) $email=correct_input($_POST['email']); if(isset($_POST['password'])) $password=correct_input($_POST['password']); $city=$_POST['city']; $touchpoint=$_POST['touchpoint']; $fail = validate_name($name); $fail .= validate_landmark($landmark); $fail .= validate_password($password); $fail .= validate_phone($phone_num); $fail .= validate_email($email); $fail .= validate_address($address); if($fail=="") { if(isset($_POST['accept'])) { $name=strtolower($name); $landmark=strtolower($landmark); $address=strtolower($address); $query="INSERT INTO user_info(name,address,landmark,pincode,city,phone_num,hear,email,password) VALUES('$name','$address','$landmark','$pincode','$city','$phone_num','$touchpoint','$email','$password')"; if(queryMysql($query)) { $success="Successfull Sign up. Please Log in."; } else { $error="Sign up not successfull. Please Try Again."; } } else { $error="Please accept terms and conditions."; } } echo<<<_END <html> <head> <title> Sign Upp </title> </head> <body> <form method="post" action="signupp.php"> <p>$error</p> <p>$success</p> <table> <tr> <td>Your name:</td> <td><input type="text" name="yourname" /></td> </tr> <tr> <td>Address:</td> <td><input type="text" name="address" /></td> </tr> <tr> <td>Landmark:</td> <td><input type="text" name="landmark" /></td> </tr> <tr> <td>Pin Code:</td> <td><input type="text" name="pincode" /></td> </tr> <tr> <td>City:</td> <td><select name="city"> <option value="Bangalore">Bangalore</option> </select> </td> </tr> <tr> <td>Your phone number:</td> <td><input type="text" name="phone_num" /></td> </tr> <tr> <td>How did you hear about us?</td> <td><select name="touchpoint"> <option value="">Select</option> <option value="Friends">Friends</option> <option value="Hoarding">Hoarding</option> <option value="Newspaper">Newspaper Insert</option> <option value="Apartment">Apartment Event</option> <option value="Online">Online Search</option> <option value="Flyer">Flyer</option> </select> </td> </tr> <tr> <td>Email:</td> <td><input type="text" name="email" /></td> </tr> <tr> <td>Password:</td> <td><input type="text" name="password" /></td> </tr> <tr> <td><input type="checkbox" name="accept" /> Accept Terms and Conditions</td> </tr> <tr> <td><button>Submit</button></td> </tr> </table> </form> </body> </html> _END; ?> And i need some tutorial or pdf files or any web site where i can learn this php I want some one to guide me so that i can go in a proper path to learn php Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.