Hi all.
I am just practicing and learner to php. I am creating a page (following a youtube tutorial) to create and show users. Now i am adding links to modify and delete users (also show on that tutorial). This is my index.php file
<html>
<body>
<?php session_start();
include 'connection.php' ;
$query = 'select * from people' ;
$result = mysql_query($query);
while ($person = mysql_fetch_array($result)) {
echo $person['name'] ;
echo "<br />" ;
echo $person['description'] . "<br />";
echo "<a href=\"modify.php?id=" . $person['id'] . "\">Modify User</a>" ;
echo "<span> </span>" ;
echo "<a href=\"delete.php?id=" . $person['id'] . "\">Delete User</a>" ;
echo "<br />" ;
}
?>
<h1>Create A User </h1>
<form action = "create.php" method = "post" >
Nameinput type = "text" name = "inputname" value="" />
Descriptioninput type = "text" name = "inputdesc" value="" />
<br />
<input type = "submit" name = "submit" />
</form>
</body>
</html>
Kindly see the bolded lines. If i dont want to use get method to pass the id values, how can i use session variable to do it ?
kindly guide me what i need to put in place of these bolded lines



input type = "text" name = "inputname" value="" />
Reply With Quote


Bookmarks