हिंदी

Write Programs for the following. Create a website with two PHP webpage in which each webpage is connected. The first page of the website contains two form fields for taking 'name' and 'password' - Information Technology

Advertisements
Advertisements

प्रश्न

Write Programs for the following.

Create a website with two PHP webpage in which each webpage is connected.

The first page of the website contains two form fields for taking 'name' and 'password' from users. On onclick event, details of forms should be displayed on second webpage.

संक्षेप में उत्तर
Advertisements

उत्तर

Coding:

Form.html
<html>
<body>
<form action="wc.php" method="post">
Enter Name
<input type="text" name="name"><br><br>
Enter Password
<input type="password" name="pass"><br><br>
<input type="submit" name= "submit" value="Submit">
</form>
</body>
</html>
wc.php
<html>
<body>
Welcome
<?php
echo $_POST["name"]; ?> <br><br>
Your Password is
<?php
echo $_POST["pass"];
?>
shaalaa.com
PHP Form Connectivity with Database
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: Server-Side Scripting (PHP) - Exercises [पृष्ठ ७८]

APPEARS IN

बालभारती Information Technology (Science) [English] Standard 12 Maharashtra State Board
अध्याय 5 Server-Side Scripting (PHP)
Exercises | Q 7.3 | पृष्ठ ७८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×