🔒 Closed Pa help po sa php

Status
Not open for further replies.

Spaghetto

Honorary Poster
Ayaw po mag show ng iba po kahit nasubmit na po sa database.
ito po yung code ko
Code:
<div id="signup">
<div id="signup-st">
<form action="" method="POST" id="signin" id="reg">
<div id="reg-head" class="headrg">Your Profile</div>
<table border="0" align="center" cellpadding="2" cellspacing="0">
<tr id="lg-1">
<td class="tl-1"> <div align="left" id="tb-name">Reg id:</div> </td>
<td class="tl-4"><?php echo htmlspecialchars($_SESSION["id"]); ?></td>
</tr>
<tr id="lg-1">
<td class="tl-1"><div align="left" id="tb-name">Username:</div></td>
<td class="tl-4"><?php echo htmlspecialchars($_SESSION["username"]); ?></td>
</tr>
<tr id="lg-1">
<td class="tl-1"><div align="left" id="tb-name">First-Name:</div></td>
<td class="tl-4"><?php echo htmlspecialchars($_SESSION["fname"]); ?></td>
</tr>
<tr id="lg-1">
<td class="tl-1"><div align="left" id="tb-name">Last-Name:</div></td>
<td class="tl-4"><?php echo htmlspecialchars($_SESSION["lname"]); ?></td>
</tr>
<tr id="lg-1">
<td class="tl-1"><div align="left" id="tb-name">Age:</div></td>
<td class="tl-4"><?php echo htmlspecialchars($_SESSION["age"]); ?></td>
</tr>
<tr id="lg-1">
<td class="tl-1"><div align="left" id="tb-name">Gender</div></td>
<td class="tl-4"><?php echo htmlspecialchars($_SESSION["gender"]); ?></td>
</tr>
<tr id="lg-1">
<td class="tl-1"><div align="left" id="tb-name">Email:</div></td>
<td class="tl-4"><?php echo htmlspecialchars($_SESSION["email"]); ?></td>
</tr>
<tr id="lg-1">
<td class="tl-1"><div align="left" id="tb-name">Password:</div></td>
<td class="tl-4"><?php echo htmlspecialchars($_SESSION["password"]); ?></td>
</tr>
</table>

Your Profile
Reg id:​
29
Username:​
Karl
First-Name:​
Last-Name:​
Age:​
Warning: Undefined array key "age" in D:\xampp\htdocs\FINAL\welcome.php on line 89
Gender​
Warning: Undefined array key "gender" in D:\xampp\htdocs\FINAL\welcome.php on line 93
Email:​
Password:​
123123
 

Attachments

  • db.webp
    db.webp
    30.7 KB · Views: 34
di mo na set sa session yung age and gender


pero bat need mo pa idaan sa session? pwede naman pag retrive mo ng result sa db i echo mo na agad
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 2
    Replies
  • 536
    Views
  • 3
    Participants
Last reply from:
KarmaPanda

Trending Topics

Online now

Members online
1,083
Guests online
2,603
Total visitors
3,686

Forum statistics

Threads
2,292,417
Posts
29,076,857
Members
1,209,344
Latest member
C1d
Back
Top