Page 364 - CITS - CSA - TP (Volume 1) - Hindi
P. 364

कंप्यूटर सॉफ्टवेयर एप्लीकेशन- CITS









































           टा  4: PHP से MySQL डेटाबेस से कने  कर  और डेटा अपडेट कर

           i   यूजर से डेटा कले  करने के  िलए वेबपेज (index.html) म  एक HTML फ़ॉम  बनाएँ  (Create an HTML form in the webpage
              (index.html) to collect the data from the user)

              1  टे  एिडटर ओपन करे
              2  िन िल खत कोड िलख

                          <html >
                 <head> HTML form </title>

                 </head>
                 <body>

                    <h2>Update Data in MySQL Database</h2>
                    <form method=”post” action=”update.php”>
                          <label for=”username”>Username of Record to Update:</label><br>
                          <input type=”text” id=”username” name=”username” required><br><br>

                          <label for=”email”>New Email:</label><br>
                          <input type=”email” id=”email” name=”email” required><br><br>

                          <input type=”submit” value=”Update”>
                    </form>
                 </body>
                 </html>

              3   ो ाम को C:\Apache24\htdocs म  index.html नाम के  फ़ो र म  सेव कर




                                                           348

                                     CITS : IT & ITES - कं  ूटर सॉ वेयर ए ीके शन - अ ास 61
   359   360   361   362   363   364   365   366   367   368   369