Urdu Forum & Inpage Reseller  

Go Back   Urdu Forum & Inpage Reseller > IT Cafe > Ask an Expert

Notices

Ask an Expert We invite our members to ask IT related questions. Get feedback of ISPs in Pakistan including PTCL , Paknet , Cybernet and Brain Net. Advise is also available on how to set up internet cafes in Pakistan.


urgently Registration form + SQL PHP Database


Reply
 
Thread Tools Display Modes
  #1  
Old 08-20-2009, 10:53 PM
nices_gujrat's Avatar
nices_gujrat nices_gujrat is offline
Senior Member
 
Join Date: Mar 2005
Location: ~*~(Aap ki yadoon Mein)~*~Gujrat,Pakistan
Posts: 1,767
Rep Power: 1
nices_gujrat reputation is unknown at this time
Thumbs down urgently Registration form + SQL PHP Database

salam dosto,
aaj mujhe aap logon ki thori si help ki zarurat hai specially jo web developer aur php+sql mein expert hain
dosto main aik website bana raha hon jiss k liye mujhe aik cheezon ko order karne k liye database ki zarurat hai,i mean j jo banda jo b order kare woh database mein save ho jaye,uss k liye maine ek form banaya hai,aur actually main kaafi time k baad dobara website bana raha hon is liye mujhe thori si problem ho rahi hai database form banane mein aur i have no time to wait.
plz agar koi hai aisa expert to main ne form attatch kr diya hai,us k mutaabik database bana de,ya koi aisa expert apne phone no post kar de.thanks

Qaiser siddique
0345-6954452

HTML form ki yeh coding hai

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr bgcolor="#3D637A">
<td colspan="2"> <div align="right"><img src="order%20from.jpg" width="500" height="125"></div></td>
</tr>
<tr bgcolor="#003300">
<td width="57%"><font color="#FFFFFF">Name:
<input name="name" type="text" id="name">
</font></td>
<td width="43%"><font color="#FFFFFF">City:&nbsp;
<input name="city" type="text" id="city">
</font></td>
</tr>
<tr bgcolor="#003300">
<td><font color="#FFFFFF">Phone:
<input name="phone" type="text" id="phone">
</font></td>
<td><font color="#FFFFFF">Mob:
<input name="mobile" type="text" id="mobile">
</font></td>
</tr>
<tr bgcolor="#003300">
<td colspan="2" align="left"> <div align="left"><font color="#FFFFFF">Address:
<textarea name="address" cols="70" rows="5" id="address"></textarea>
</font></div></td>
</tr>
<tr bgcolor="#003300">
<td><font color="#FFFFFF">Website type:
<select name="select">
<option value="s">Simple</option>
<option value="p">Professional</option>
<option value="dd">Database Driven</option>
<option value="de">Database and E-mail Support</option>
</select>
</font></td>
<td><font color="#FFFFFF">Domain name:
<input name="domain" type="text" id="domain3">
</font></td>
</tr>
<tr bgcolor="#003300">
<td height="24"><font color="#FFFFFF">Payment via:
<select name="select2">
<option value="online">Online</option>
<option value="cash">Cash</option>
</select>
</font></td>
<td><font color="#FFFFFF">Account no:</font> <input type="text" name="textfield">
</td>
</tr>
<tr bgcolor="#003300">
<td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC" bgcolor="#CCFFFF">
<tr>
<td width="25%">Comments:</td>
<td width="75%"><textarea name="textarea" cols="30" rows="4"></textarea>
</td>
</tr>
</table></td>
</tr>
<tr bgcolor="#003300">
<td colspan="2"> <div align="center">
<input type="submit" name="Submit" value="Order">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="reset" name="Submit2" value="Cancel">
</div></td>
</tr>
</table>
</body>
</html>
Attached Images
 
Reply With Quote
  #2  
Old 08-21-2009, 03:35 AM
nices_gujrat's Avatar
nices_gujrat nices_gujrat is offline
Senior Member
 
Join Date: Mar 2005
Location: ~*~(Aap ki yadoon Mein)~*~Gujrat,Pakistan
Posts: 1,767
Rep Power: 1
nices_gujrat reputation is unknown at this time
koi b expert nahi hai yahan kya?
Reply With Quote
  #3  
Old 08-21-2009, 04:18 AM
Zeeshanef's Avatar
Zeeshanef Zeeshanef is offline
Senior Member
 
Join Date: Mar 2006
Location: Great Pakistan
Posts: 1,392
Rep Power: 1
Zeeshanef reputation is unknown at this time
bhai Expert to aap ko bohat mil jaa'in gay, lekin aap ko jaldi bohat hay!
Reply With Quote
  #4  
Old 08-22-2009, 02:25 AM
nices_gujrat's Avatar
nices_gujrat nices_gujrat is offline
Senior Member
 
Join Date: Mar 2005
Location: ~*~(Aap ki yadoon Mein)~*~Gujrat,Pakistan
Posts: 1,767
Rep Power: 1
nices_gujrat reputation is unknown at this time
Quote:
Originally Posted by Zeeshanef View Post
bhai Expert to aap ko bohat mil jaa'in gay, lekin aap ko jaldi bohat hay!
brother can u help me if you have some free time.....?
this is my cell no
0345-6954452
if u dont mind then plz leave ur cell no here
thanks
Creative Sign
Reply With Quote
  #5  
Old 08-22-2009, 03:31 AM
aansootear aansootear is offline
Senior Member
 
Join Date: Apr 2006
Posts: 2,390
Rep Power: 1
aansootear reputation is unknown at this time
hmmm.. mujy ati hai per itni nahi ati..
__________________
* Ab to "Aansoo" ka eik katrah bhi ruswaah kar jaata hay *
* Bachpann may hum ji bharr kar Roya karte the...!!! *



Reply With Quote
  #6  
Old 08-22-2009, 07:09 PM
nices_gujrat's Avatar
nices_gujrat nices_gujrat is offline
Senior Member
 
Join Date: Mar 2005
Location: ~*~(Aap ki yadoon Mein)~*~Gujrat,Pakistan
Posts: 1,767
Rep Power: 1
nices_gujrat reputation is unknown at this time
brother choti database to bana sakte ho na?
Reply With Quote
  #7  
Old 02-06-2010, 04:55 PM
ym_2k's Avatar
ym_2k ym_2k is offline
Senior Member
 
Join Date: Jul 2004
Location: DHA Karachi
Posts: 192
Rep Power: 1
ym_2k reputation is unknown at this time
itni puraani post he ke iska jawab detey howay b sharam aarahi he muje. well i have sulotion of this form..
__________________
G-Y Soomro

Reply With Quote
  #8  
Old 02-06-2010, 04:58 PM
ym_2k's Avatar
ym_2k ym_2k is offline
Senior Member
 
Join Date: Jul 2004
Location: DHA Karachi
Posts: 192
Rep Power: 1
ym_2k reputation is unknown at this time
tamaam input types ko sequence dain 1 2 3 . . . 10 uskey baad id value remove kerdain. aur action me process.php ka url dain.
__________________
G-Y Soomro

Reply With Quote
  #9  
Old 02-06-2010, 05:00 PM
ym_2k's Avatar
ym_2k ym_2k is offline
Senior Member
 
Join Date: Jul 2004
Location: DHA Karachi
Posts: 192
Rep Power: 1
ym_2k reputation is unknown at this time
yahan me process.php ki script write ker raha hon. aur mera email address ym_2k@hotmail.com ki jaga apna email add dai daina. last me refresh script he wahan apni web ke thanks page ka link de daina.
__________________
G-Y Soomro

Reply With Quote
  #10  
Old 02-06-2010, 05:03 PM
ym_2k's Avatar
ym_2k ym_2k is offline
Senior Member
 
Join Date: Jul 2004
Location: DHA Karachi
Posts: 192
Rep Power: 1
ym_2k reputation is unknown at this time
<?php
//This script is created by YM_2K
//You can remain use this Hired service as long as you retain the credit link
//As we had spent hours on building this script for you, please respect our effort
//Thank you --- Yaseen Soomro 'Ym_2K@hotmail.com'

$mymail = 'info@marathonmover.com';
$cc = 'Form submitted from your website';
$BoDy = ' ';
$FrOm = 'FROM:' .$_POST['t1'];
$FrOm .= 'Reply-To:' .$_POST['t1'];
$FrOm .= 'X-MAILER: PHP'.phpversion();
$BoDy .= '1: ';
$BoDy .= $_POST['t1'];
$BoDy .= "\n";
$BoDy .= '2: ';
$BoDy .= $_POST['t2'];
$BoDy .= "\n";
$BoDy .= '3: ';
$BoDy .= $_POST['t3'];
$BoDy .= "\n";
$BoDy .= '4: ';
$BoDy .= $_POST['t4'];
$BoDy .= "\n";
$BoDy .= '5: ';
$BoDy .= $_POST['t5'];
$BoDy .= "\n";
$BoDy .= '6: ';
$BoDy .= $_POST['t6'];
$BoDy .= "\n";
$BoDy .= '7: ';
$BoDy .= $_POST['t7'];
$BoDy .= "\n";
$BoDy .= '8: ';
$BoDy .= $_POST['t8'];
$BoDy .= "\n";
$BoDy .= '9: ';
$BoDy .= $_POST['t9'];
$BoDy .= "\n";
$send = mail("$mymail", "$cc", "$BoDy", "$FrOm");
///Redirect user to your homepage....
if($send)
{
echo '<html><head>';
echo '<meta http-equiv="refresh" content="0;URL=http://www.marathonmover.com">';
echo '</head><body>Email send....';
echo '</body></html>';
}
?>
__________________
G-Y Soomro

Reply With Quote
  #11  
Old 08-07-2011, 06:24 AM
creativeartline's Avatar
creativeartline creativeartline is offline
Junior Member
 
Join Date: Aug 2010
Location: Kuwait
Posts: 5
Rep Power: 0
creativeartline reputation is unknown at this time
Unhappy Php Sql

Hi bro,

Ye jo form ke liy php file ap ne banai he ye database main kesy save kry gi data ? it's like simple form and you are sending data into email not in sql right ?
Reply With Quote
  #12  
Old 08-20-2011, 12:36 PM
sanishan sanishan is offline
Senior Member
 
Join Date: Nov 2005
Posts: 252
Rep Power: 1
sanishan reputation is unknown at this time
Here is the Good Example of Database transmit to server...

I just create for you...
PHP Code:
<?php
mysql_connect
("localhost""root""password") or die(mysql_error());
echo 
"Connected to MySQL<br />";
mysql_select_db("database") or die(mysql_error());
//echo "Connected to Database";

if ($_POST['Submit']=='Order'){
$name=$_POST['name'];
$city=$_POST['city'];
$phone=$_POST['phone'];
$mobile=$_POST['mobile'];
$address=$_POST['address'];
$select=$_POST['select'];
$domain=$_POST['domain'];
$select2=$_POST['select2'];
$textfield=$_POST['textfield'];
$textarea=$_POST['textarea'];
$email=$_POST['email'];

$insert_sql="INSET INTO tablename (id,name,city,phone,mobile,address,select,domain,select2,textfield,textarea) Values
(NULL,$name,$city,$phone,$mobile,$address,$select,$domain,$select2,$textfield,$textarea)"
;
mysql_query($insert_sql) or die(mysql_error());


/////////////// Remove These codes if you don't want to send any email /////////////
$mymail 'admin@eziscript.com';
$subject 'Form submitted from your EziScript.com';
foreach (
$_POST as $key=>$value){
    
$message.=$value."\n";
}

$send mail("$my_email""$subject""$message""$email");
if(
$send)
{
    echo 
'Email Send';
    } else {
        echo 
'Email Error';
    }
    
    
//////////////////// To here ///////////////////////
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr bgcolor="#3D637A">
<td colspan="2"> <div align="right"><img src="order%20from.jpg" width="500" height="125"></div></td>
</tr>
<tr bgcolor="#003300">
<td width="57%"><font color="#FFFFFF">Name:
<input name="name" type="text" id="name">
</font></td>
<td width="43%"><font color="#FFFFFF">City:&nbsp;
<input name="city" type="text" id="city">
</font></td>
</tr>
<tr bgcolor="#003300">
<td><font color="#FFFFFF">Phone:
<input name="phone" type="text" id="phone">
</font></td>
<td><font color="#FFFFFF">Mob:
<input name="mobile" type="text" id="mobile">
</font></td>

</tr>
<tr bgcolor="#003300">
<td><font color="#FFFFFF">emal:
<input name="email" type="text" id="mobile">
</font></td>
<td colspan="2" align="left"> <div align="left"><font color="#FFFFFF">Address:
<textarea name="address" cols="70" rows="5" id="address"></textarea>
</font></div></td>
</tr>
<tr bgcolor="#003300">
<td><font color="#FFFFFF">Website type:
<select name="select">
<option value="s">Simple</option>
<option value="p">Professional</option>
<option value="dd">Database Driven</option>
<option value="de">Database and E-mail Support</option>
</select>
</font></td>
<td><font color="#FFFFFF">Domain name:
<input name="domain" type="text" id="domain3">
</font></td>
</tr>
<tr bgcolor="#003300">
<td height="24"><font color="#FFFFFF">Payment via:
<select name="select2">
<option value="online">Online</option>
<option value="cash">Cash</option>
</select>
</font></td>
<td><font color="#FFFFFF">Account no:</font> <input type="text" name="textfield">
</td>
</tr>
<tr bgcolor="#003300">
<td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC" bgcolor="#CCFFFF">
<tr>
<td width="25%">Comments:</td>
<td width="75%"><textarea name="textarea" cols="30" rows="4"></textarea>
</td>
</tr>
</table></td>
</tr>
<tr bgcolor="#003300">
<td colspan="2"> <div align="center">
<input type="submit" name="Submit" value="Order">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="reset" name="Submit2" value="Cancel">
</div></td>
</tr>
</table>
 </form>
</body>
</html>
From PHP Clone Script
This example for all users have the same problem...
__________________
Make your Own Websiteoutlook Clone Website
-------------------------
Ask GOOGLE before asking any one

Last edited by sanishan; 08-22-2011 at 05:05 PM.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php Image verification Contact Form shafiq General Discussion 6 04-12-2011 11:27 AM
very simple contact form create karoo php main shafiq General Discussion 10 03-09-2009 10:16 PM
Php Sql Server shahidf4 Ask an Expert 4 03-08-2008 02:22 PM
PHP Designer (software) pakiboy General Discussion 8 11-22-2004 07:41 PM


All times are GMT -5. The time now is 08:53 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
All trademarks and copyrights held by respective owners. We will take action against any copyright violation if it is proved to us. Tel : (0044) 7704455603