hi guys pls help me with this problem i realy can't fix this problem <?php function protect($string){ $string = mysql_real_escape_string($string); $string = strip_tags($string); $string = addslashes($string); return $string; } function connect(){ $con = mysql_connect('127.0.0.1','root', '') or die(mysql_error()); $db = mysql_select_db("users",$con); } ?> // this is for the protect function and connection //i have a problem on "submit" line 6 <?php include_once "functions.php"; connect(); if(!$_POST['submit']){ //line 6 echo "<table border=> <form id=\"form1\" name=\"form1\" method=\"post\" action=\"register.php\"> <table width=\"355\" height=\"240\" border=\"1\"> <tr> <td colspan=\"2\"><div align=\"center\">Registration Form </div></td> </tr> <tr> <td width=\"161\">Username:</td> <td width=\"178\"><input type=\"text\" name=\"username\" /></td> </tr> <tr> <td>Password:</td> <td><input type=\"password\" name=\"password\" /></td> …

Member Avatar
Member Avatar
+0 forum 2

Hello Dears Friends, I want to make aRegistration form for users, and save data of user in my database.I tried my best best but cannt Please, check my Code. <?php include "conn.php"; //database connection file if($_SERVER["REQUEST_METHOD"]=="POST"){ $username=filter_input(INPUT_POST,'uname',FILTER_SANITIZE_SPECIAL_CHARS); $sql = "SELECT username FROM usersystem WHERE username = '$username'"; $result=$conn->query($sql); if (!$result) { echo "data has saved"; } else{ echo "user already exists" ; } } ?> apreaciated promp response...

Member Avatar
Member Avatar
+0 forum 3

dear friends, I am developing Online registration form... I want to display data record vice not row vice...my code is below <?php include "conn1.php"; $sql = "SELECT * FROM reg"; $result = $conn->query($sql); if ($result->num_rows > 0) { echo "<table style='border: solid 1px black;'>"; echo "<tr><th>Id</th><th>Firstname</th><th>Lastname</th><th>Email</th><th>Reg date</th></tr>"; // output data of each row while($row = $result->fetch_assoc()) { // echo "<tr><td>" . $row["pn"]. "</td><td>" .$row["sp"]. "</td></tr>"; } echo "</table>"; } else { echo "0 results"; } $conn->close(); ?> please suggest me.

Member Avatar
Member Avatar
+0 forum 1

Hi everyone , I am doing a log in& registration form. And i am using a adodb connection. can someone pls tell me what is wrong with my code on the rst.open part, and what should i replace. Im trying to call the password from ms access and suddenly there is a COMExceptionwasUnhandled appearing and it says .. " [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'Username ='regina where Password =asdfghjkl". " How can i resolve this problem? thank you very much! Dim cnn As New ADODB.Connection Dim rst As New ADODB.Recordset Private Sub LinkLabel2_LinkClicked(ByVal sender …

Member Avatar
Member Avatar
+0 forum 3

Hi, I need to make a registration page to my Private Silkroad server on my website, and it works with SQL Server 2012. I'm not really into PHP neither SQL, just figuring it out with poor online guides on the web about it, and I didnt find any help with this. These are the requests I need to ask the users who wants to register: user ID *REQUIERED* Password *REQUIERED* *MUST MATCH* Repeat Password *REQUIERED* *MUST MATCH* Valid Email Address *REQUIERED* These are the DB Info: Database: SRO_VT_ACCOUNT Table: dbo.TB_User column name for "User ID": StrUserID column name for "Password": …

Member Avatar
Member Avatar
+0 forum 7

how to make registration system only inserting image i need to know please help to my thesis

Member Avatar
+0 forum 0

I have tried to register in some forums, but there was a message that words are not typed coorectly, or the answer of a question which is always wrong, why they do that

Member Avatar
Member Avatar
+0 forum 7

how can one register or activate win 7 i got tools but i can not understand

Member Avatar
Member Avatar
+0 forum 2

I write to inquire about the necessity of domain registration. What does it actually provide and is it necessary? Guidance sought

Member Avatar
Member Avatar
+0 forum 3

i have three entries in phpmyadmin id name and image i want to upload image from the form into database and display that back into the form where from i am uploading it.I get this error PHP Warning: mysql_insert_id() expects parameter 1 to be resource, null given in D:\path\to\sitename\httpdocs\sql\uploadimage.php on line 13 is first line <?php // connect to database $id = mysql_insert_id(id); $file = $_FILES['image']['tmp_name']; if (!isset($file)) echo "Please Upload your Photograph."; else { $image = addslashes(file_get_contents($_FILES['image']['tmp_name'])); $image_name = addslashes($_FILES['image']['name']); $image_size = getimagesize($_FILES['image']['tmp_name']); if ($image_size==FALSE) echo "Are you sure you uploaded an image"; else { if (!$insert = mysql_query("INSERT …

Member Avatar
Member Avatar
+0 forum 31

hello im lookin to create site with a login and user registration system like mediafire.com codecanyon.net and other sites could someone explain to me how to do it for example if i want when users registers they upload their profile picture meaning so im wondering how to make it in a way that someone logs in on the menu bar they see their profile picture and other details so my question is where is the image stored? also could you give me the concepts on how to build a login system and user registration system like the sites i mentioned …

Member Avatar
Member Avatar
+0 forum 3

I am currently working on a membership registration web form, wherein we have to take details of the member being registered online. i need to know his Country, State/Region and City. i am looking for a database/list so that we can provide the same in a combobox in the registration form. the states should on the selection of country ;and the city should change on the selection of state. i tried lot, but only getting list of countries or cities BUT independent not related. Please guide.

Member Avatar
Member Avatar
+0 forum 3

<html> <head> <title>Contact form</title> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script> <script type="text/javascript"> $(document).ready(function() { var RecaptchaOptions = { theme : 'custom' }; Recaptcha.create('your public key', 'recaptcha_image', RecaptchaOptions); Recaptcha.focus_response_field(); $('#submit_button').click(function() { $.ajax({ type: 'POST', url: 'coustomer_rgistration.php', data: $('form#myform').serialize(), dataType: 'json', beforeSend: function() { var resp_field = $('#recaptcha_response_field').val(); var name = $('#name').val(); var email = $('#email').val(); var pass = $('#pass').val(); var add = $('#add').val(); var zip_code = $('#zip_code').val(); var l_number = $('#l_number').val(); var m_number = $('#m_number').val(); var city = $('#city').val(); var state = $('#state').val(); var country = $('#country').val(); if (!resp_field[0] || !name[0] || !email[0] || !pass[0] || !zip_code[0] || !l_number[0] || !m_number[0] …

Member Avatar
Member Avatar
+0 forum 5

My code technically works, as it registers the user, but it won't keep the user logged in. (yes, once a registration is successful, they should be logged into their new account). It should go right to the index page on success and have the user logged in. On failure it should reload the page with an error message with in the <p id="error"></p> tags. It doesn't but thats another issue. so registration.php: <?php require_once('checklogin.php'); if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form")) { $con = mysql_connect('localhost','jddancks','csc255'); mysql_select_db('dancks_db',$con); $match = array(); $query = sprintf("SELECT * FROM UserTable WHERE nick='%s' OR email='%s'", mysql_real_escape_string($_POST['nick']), mysql_real_escape_string($_POST['e-mail'])); …

Member Avatar
Member Avatar
+0 forum 5

Hi. This code should be functional but I can't seem to figure out why this won't work. Thank you in advance. <?php function e($f){ echo ($f); printf("\r"); } e("setup"); $user->setup(); /* globale variablen setzen */ global $phpbb_root_path; global $phpEx; global $db; global $config; global $user; global $auth; global $cache; global $template; /* Datei inkludieren die die benoetigten Funktionen beinhaltet */ require('includes/functions_user.php'); /* Daten in array schreiben */ e(", creating array") $user_row = array( 'username' => 'test', 'user_password' => md5('test'), 'user_email' => 'test@example.com', 'group_id' => '2', 'user_timezone' => '1.00', 'user_dst' => '0', 'user_lang' => 'de', 'user_type' => '0', 'user_actkey' => '', …

Member Avatar
Member Avatar
+0 forum 1

1. Design and develop a simple Student Registration Program to record the data related to the students. The user will enter the name, surname and age information of the student to the textboxes provided. The gender of the student will be initialized by using option buttons, since there are only two possibilities for this selection. The foreign language will be by checkboxes, which allows for multi selection at same time. Finally the student data will be added to a list box by clicking a command button.

Member Avatar
Member Avatar
+0 forum 2

I want to let the users of my page (they dont have to be registrated) to register a food plate that they ate at my restaurant. It should have a picture and a review, now that should go to a database and appear randomly but daily at homepage. can anybody help me? i would like to add categories like food or drinks which each category will display a random div with the pic and review of the costumer, is it doable?

Member Avatar
Member Avatar
+0 forum 2

hi, iam new at php and iam doing a tutorial from youtube. I am keep getting 2 errors 1st error is "Column count doesn't match value count at row 1" 2nd error is nothing shows up when i do <?php echo $error_message; ?> full code of registration file <?php /* when a user login it give a vaiable. Its for testing if user login or logout*/ session_start(); include("include/connect.php"); include("include/html_code.php"); //if they hit sumbit button, than check for errors. if(isset($_POST['submit'])) { $error = array(); //if user filed is empty, store error //else if = every thing is ok if(empty($_POST['username'])) { $error[] …

Member Avatar
Member Avatar
+0 forum 1

Hi every1 I am building a website using wordpress, can you show me how to create a form that allow visitor register to join a class or something like that? Thanks you much! :)

Member Avatar
Member Avatar
+0 forum 2

I have followed some tutorials to create a registration form with some javascript. I have table to register new members to the website. then a parse_register to handle the php and then custom_js for the javscript. Well what is happening at the moment is that having filled in the registration form, and then pressing the button to register nothing happens. I have looked over and over at the code but can't spot the mistake(s). The connect file is working as it is echoing out connected successfully, so no problem with connecting to the database it seems. My header looks like …

Member Avatar
Member Avatar
+0 forum 17

Hi I am a senior in business computing and I have a project to hand to my university in order to graduate and I have chosen a student registration system but in order to accomplish that I obviously need a well designed and organized database. here are the tables I have done so far: a COURSE table that contain: -courseid int autoincrement -coursename varchar(50) -describtion varchar (255) -active varchar (50) -credits int -teacherId int -Room varchar (50) -day1 varchar(50) -time1 varchar(50) -day2 varchar(50) -time2 varchar (50) a PERSONS table: id , firstname , lastname, username ,password,email,gender,address,phone,mobile,roleid a Roles table : …

Member Avatar
Member Avatar
+0 forum 5

Hello, this one is probably really simple, but I am a noob... I just want the password confirmation function to work and I would also like the password to not equal the username. I am running into a problem with how I set up the logic for my variables. Trying to fix my registration and login page. All the other logic statements work just fine. Thank you. [CODE]<?php class Register { private $username; private $password; private $confirm_password; private $passmd5; private $email; private $errors; private $token; public function __construct() { $this->errors = array(); $this->username = $this->filter($_POST['ruser']); $this->password = $this->filter($_POST['rpass']); $this->confirm_password = …

Member Avatar
Member Avatar
+0 forum 6

I am trying to make a registration form that when a user enters in their information and clicks the submit button the information will go to someone's email. If someone could send me a website with tutorial on this or lead me in the right direction that would be great! Thanks! **I would show you the code I have but it is all edited in my html and it doesn't really relate, but if you need more information let me know.**

Member Avatar
Member Avatar
+0 forum 2

I am developing a small online shopping website. My question is: Do I still have to use session if I wont allow customers to add items to cart when they are not registered? Meaning, once they want to order, they will have to register and login to their account Thank you!

Member Avatar
Member Avatar
+0 forum 4

Hey guy's, im kind of a very big beginner.. haha.. I followed this post [URL="http://www.daniweb.com/web-development/web-design/html-and-css/threads/97183/472098#post472098"]here[/URL] and i got everything working and running up to speed, What im wanting to know how, is HOW do i actually "include" the Php into my Protected area im wanting, I have a HTML Page, completly done i would just like to get it "protected" by this. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <script language="javascript"> var popupWindow = null; function centeredPopup(url,winName,w,h,scroll){ LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable' popupWindow = window.open(url,winName,settings) …

Member Avatar
Member Avatar
+0 forum 1

I am basically creating a registration page. Tell me where I am wrong in this code. [CODE] <?php session_start();session_destroy(); session_start(); if($_POST["regfname"] && $_POST["reglname"] && $_POST["regcname"] && $_POST["regemail"] && $_POST["regphone"] && $_POST["regwebsite"]) { if($_POST["regpass"]==$_POST["regcpass"]) { $servername="localhost"; $username="akshay"; $conn= mysql_connect($servername,$username)or die(mysql_error()); mysql_select_db("akshay",$conn); $sql="INSERT INTO acts(fname,lname,cname,email,phone,website,password)values('$_POST[regfname]','$_POST[reglname]','$_POST[regcname]','$_POST[regemail]','$_POST[regphone]','$_POST[regwebsite]','$_POST[regpass]'); $result=mysql_query($sql,$conn) or die(mysql_error()); print "<h1>you have registered sucessfully</h1>"; print "<a href='index.php'>go to login page</a>"; } else print "passwords doesnt match"; } else print"invaild input data"; ?> [/CODE]

Member Avatar
Member Avatar
+0 forum 2

Hello all, I am looking to implement a new feature on my website. I would like to get a log in form that would take the members to an update page where they can update their details showing on my website Here are the features I need: - Log IN/OUT Function - Update Page - Possibility to Upgrade their membership to unlock some of the advanced listing - Automated Lost Password/Reset Password button I have asked google but too many options and did not really compare any. What do you use? What do you think is the best? Where should …

Member Avatar
Member Avatar
+0 forum 1

Can anyone give me a nice css code for my login and registration page , I already have my php code...I only need a nice css....thanks

Member Avatar
Member Avatar
+0 forum 1

Hi, I am using PHPBB for my forum. My intention is if someone registers to my website, he/she will be login to forum as well, automatically. That means no need to register twice to use the forum. Is there a way forward to achieve this? Will greatly appreciate your suggestions. Thanks

Member Avatar
Member Avatar
+0 forum 5

I have installed buddypress and oscommerce plugin in wordpress. But i need to a common login and registration, so i started making custom registration plugin. And for that I need to remove the buddypress registration page and use wordpress default signup. Also if there any other way around please let me know. My ultimate aim to have a common login for oscommerce wp plugin and buddypress. Thanks in advance,

Member Avatar
+0 forum 0

The End.