|
php help
|
Post Bank
Posting Manager
     
Posts: 995
Group: Forum Team
Joined: Sep 2006
Status: Online
|
Make money from now. You can make money just for posting on this forum. Every discussions on this community gives you more money. $2 minimum payout. So get your payment today, SignIn with this forum.
Signin to Remove this Post
|
|
|
|
scorpion
Member
 
Posts: 144
Group: Registered
Joined: Oct 2007
Status:
Offline
Reputation: 0
Points: 119 (Donate)
|
|
| 02-11-2007 05:03 PM |
|
|
ivenms
Administrator
      
Posts: 2,179
Group: Administrators
Joined: Sep 2006
Status:
Offline
Reputation: 14
Points: 4389 (Donate)
|
|
| 03-11-2007 03:31 AM |
|
|
scorpion
Member
 
Posts: 144
Group: Registered
Joined: Oct 2007
Status:
Offline
Reputation: 0
Points: 119 (Donate)
|
|
| 03-11-2007 02:20 PM |
|
|
scorpion
Member
 
Posts: 144
Group: Registered
Joined: Oct 2007
Status:
Offline
Reputation: 0
Points: 119 (Donate)
|
|
| 04-11-2007 01:17 AM |
|
|
ivenms
Administrator
      
Posts: 2,179
Group: Administrators
Joined: Sep 2006
Status:
Offline
Reputation: 14
Points: 4389 (Donate)
|
|
| 05-11-2007 04:15 PM |
|
|
scorpion
Member
 
Posts: 144
Group: Registered
Joined: Oct 2007
Status:
Offline
Reputation: 0
Points: 119 (Donate)
|
|
| 05-11-2007 07:19 PM |
|
|
ivenms
Administrator
      
Posts: 2,179
Group: Administrators
Joined: Sep 2006
Status:
Offline
Reputation: 14
Points: 4389 (Donate)
|
PHP Program that Helps to Register, Make Random Ticket and Put all values to Database
ya...in the database...or the simple script...any thing...which one can you do?
Hope that you have a good scripting skill. if so, I just want to guide you.... 
Things to do...
Registration form:
<form method="post" action="register.hp">
<input type="text" name="field_name" value="default" />
.....
.....
.....
<input tyle="submit" value="Register" />
</form>
Register.php File:
<?php
// Connect the script with your database first on here.
//Then retrieve every variables from the HTML form like the next line code. $variable_name= $_POST['field_name'];
// After getting all data from the HTML registration form, Create the ticket. // Here am making a simple code which generates a sequence of characters randomly for each registered members.
$ticket = md5(rand(0, 999));
//Then display the ticket to the registrar: echo "<b>$ticket</b>";
//Then put all the data into the database table for further future use... //Use SQL queries to use that...
Thats all to make a simple registration form...
Hope that this helps you to built your own registration form for your site...
Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
|
|
| 05-11-2007 09:14 PM |
|
|
scorpion
Member
 
Posts: 144
Group: Registered
Joined: Oct 2007
Status:
Offline
Reputation: 0
Points: 119 (Donate)
|
RE: php help
ya...in the database...or the simple script...any thing...which one can you do?
Hope that you have a good scripting skill. if so, I just want to guide you.... 
Things to do...
Registration form:
<form method="post" action="register.hp">
<input type="text" name="field_name" value="default" />
.....
.....
.....
<input tyle="submit" value="Register" />
</form>
Register.php File:
<?php
// Connect the script with your database first on here.
//Then retrieve every variables from the HTML form like the next line code. $variable_name= $_POST['field_name'];
// After getting all data from the HTML registration form, Create the ticket. // Here am making a simple code which generates a sequence of characters randomly for each registered members.
$ticket = md5(rand(0, 999));
//Then display the ticket to the registrar: echo "<b>$ticket</b>";
//Then put all the data into the database table for further future use... //Use SQL queries to use that...
Thats all to make a simple registration form...
Hope that this helps you to built your own registration form for your site... 
i am really very poor in scripting....so plz can you tell me how to proceed with this code.... :(
http://www.technobitez.com/
http://www.joelifernandes.com/
http://www.everythingvista.net/
|
|
| 06-11-2007 01:42 PM |
|
|
ivenms
Administrator
      
Posts: 2,179
Group: Administrators
Joined: Sep 2006
Status:
Offline
Reputation: 14
Points: 4389 (Donate)
|
RE: php help
i am really very poor in scripting....so plz can you tell me how to proceed with this code....  :(
Ohh...
I don't know about your application and so I can't give you the complete code that suits for you. This code helps you to make a HTML form for registration, then retrieve those values on a php file, create a ticket for the registered member, then put those values in a database.
Atleast you need to try with this code. Otherwise, you can't develop your code successfully.k
Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
|
|
| 06-11-2007 04:13 PM |
|
|
scorpion
Member
 
Posts: 144
Group: Registered
Joined: Oct 2007
Status:
Offline
Reputation: 0
Points: 119 (Donate)
|
|
| 07-11-2007 06:22 PM |
|
|
ivenms
Administrator
      
Posts: 2,179
Group: Administrators
Joined: Sep 2006
Status:
Offline
Reputation: 14
Points: 4389 (Donate)
|
PHP Script for a Siple Registration Form that Generates Random Tickets
Am changing the code to use it for your registration form...
Your Fields:
- College Name.
- Name of the Registering Person.
HTML Code for Form:
<form method="post" action="register.hp">
Your Name: <input type="text" name="name" value="" />
Your College: <input type="text" name="col" value="" />
<input type="submit" value="Register" />
</form>
Make a "register.php" file and put in the same directory as the form page.
register.php File:
<?php
// Database server location $database_server = "localhost";
//The name of the database which is used for storing data. $database_name = "your_database_name";
//Username to connect with the database $username = "username";
//Password for database connection. $password = "password";
//Your Table name to store Data - Table Structure: table(id, name, college, ticket) $table = "table_name";
//------ Don't edit the following part ---------
$link = mysql_connect($database_server, $username, $password); if (!$link) { die('Not connected : ' . mysql_error()); }
$db_selected = mysql_select_db($database_name, $link); if (!$db_selected) { die ('Can\'t use '.$database_name.' : ' . mysql_error()); }
//Then retrieve every variables from the HTML form like the next line code.
$user_name = $_POST['name'];
$college = $_POST['col'];
// After getting all data from the HTML registration form, Create the ticket. // Here am making a simple code which generates a sequence of characters randomly for each registered members.
$ticket = md5(rand(0, 999));
//Then display the ticket to the registrar: echo "<h1>Your Ticket No: $ticket</h1>";
//Then put all the data into the database table for further future use...
$sql = "INSERT INTO $table (name, college, ticket) VALUES ('$user_name', '$college', '$ticket')";
if (mysql_query($sql)) { echo "Your Registration is Successfully Executed."; } else { echo mysql_error(); } mysql_close($link); ?>
To work this registration page perfectly, first you need to setup a database with table...
The Table's structure is: id, name, college, ticket. The id is primary key for the table and make it as auto incremental. You can do all this stuffs with the help of PhpMyAdmin.
So here is my $10 worth code for your registration page.
Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
|
|
| 07-11-2007 10:07 PM |
|
|
scorpion
Member
 
Posts: 144
Group: Registered
Joined: Oct 2007
Status:
Offline
Reputation: 0
Points: 119 (Donate)
|
|
| 09-11-2007 05:50 PM |
|
|