I want to send data store in mySQL database back to HTML form in 
texbox to update it. I have included that HTML form page in my PHP 
script.Kindly tell me the code by using which that which I have 
retrieved from database can be put in HTML form textboxes. Mine code 
is given below.

<!---- Registration Page of WebSite ---->
<!---- Developed By Adnan Maqbool ---->
<!---- Dated 27Nov 2005 ---->
<?php
        session_start();                
        require '../inc/functions.php';
        Global $id;
        $id = $_SESSION['sessid'];      
        if(!isset($_SESSION['sessid']) || !isset($_SESSION
['sesspass']))
                {
                        header("Location: 
http://localhost/curtans/php/index.php";);
                        exit();
                }
        if(!($link = mysql_pconnect
($DB_SERVER,$DB_LOGIN,$DB_PASSWORD)))
                        {
                                displayerrmsg(sprintf("internal 
error %d:%s\n",
                                        mysql_errno(), mysql_error
()));
                                exit();
                        }
        
?>

<html>
        <head>

        <title>Western Curtains</title>
        
        </head>

                <body bgcolor=EAE8E7 leftmargin="0" rightmargin="0" 
topmargin="0">

                        
                        <table width="770" cellpadding="0" 
cellspacing="0" border="0" align=center>
                                <tr>
                                        <td>
                                        <? include
("../inc/mainNaviagation.php"); ?>
                                        </td>
                                </tr>
                 
                                <tr>
                                        <td>

                                <? include("../html/mainpic.html"); ?
>

                                        </td>
                                </tr>   
                        </table>
                                
                        <table width=770 align=center border=0>
                                <tr>
                                        <td align=center>
                                <? include
("../html/updateForm.html"); ?>
                                        </td>
                                </tr>
                        </table>
                        <?php
                                        if(!($result = mysql_db_query
($DB, "SELECT * from user where userId='$id'")))
                                        {
                                                        displayerrmsg
(sprintf("internal error %d:%s\n",
                                                        mysql_errno
(), mysql_error()));
                                                        return 0;
                                        }
                                        while(($row = 
mysql_fetch_array($result)))
                                                {
                                                
                                                $firstName=$row
["firstName"];
                                                
                                                }       
                        ?>
                        </br>
                        <table width=770 border=0 align=center> 
                                <tr>
                                        <td align=center>       
                        
                        <? include("../html/footer.html"); ?>
                                        </td>
                                </tr>
                        </table>
                </body>
</html>


Note $firstName is name of HTML text box







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to