urgently Registration form + SQL PHP Database

Discussion in 'Ask an Expert' started by nices_gujrat, Aug 21, 2009.

  1. nices_gujrat

    nices_gujrat New Member

    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>

    order from.jpg
     
  2. nices_gujrat

    nices_gujrat New Member

    koi b expert nahi hai yahan kya?
     
  3. Zeeshanef

    Zeeshanef Well-Known Member

    bhai Expert to aap ko bohat mil jaa'in gay, lekin aap ko jaldi bohat hay!
     
  4. nices_gujrat

    nices_gujrat New Member

    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
     
  5. aansootear

    aansootear New Member

    hmmm.. mujy ati hai per itni nahi ati..
     
  6. nices_gujrat

    nices_gujrat New Member

    brother choti database to bana sakte ho na?
     
  7. ym_2k

    ym_2k New Member

    itni puraani post he ke iska jawab detey howay b sharam aarahi he muje. well i have sulotion of this form..
     
  8. ym_2k

    ym_2k New Member

    tamaam input types ko sequence dain 1 2 3 . . . 10 uskey baad id value remove kerdain. aur action me process.php ka url dain.
     
  9. ym_2k

    ym_2k New Member

    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.
     
  10. ym_2k

    ym_2k New Member

    <?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>';
    }
    ?>
     
  11. creativeartline

    creativeartline New Member

    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 ?
     
  12. sanishan

    sanishan New Member

    Here is the Good Example of Database transmit to server...

    I just create for you...
    PHP:
    <?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...
     
    Last edited: Aug 22, 2011

Share This Page