हिंदी

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.

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

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: Server-Side Scripting (PHP) - Exercises [पृष्ठ ७८]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×
Our website is made possible by ad-free subscriptions or displaying online advertisements to our visitors.
If you don't like ads you can support us by buying an ad-free subscription or please consider supporting us by disabling your ad blocker. Thank you.