Jump to content

maintain data


angelsRock

Recommended Posts

hi i have this page A below to upload the data.. the script is for maintaining data..

 

<?php
$package=$_POST['package'];
	switch ($package)
	{
	case "50":
	$A="selected";
	break;
	case "75":
	$B="selected";
	break;
	}
?>
<body>

<select size="1" name="package">
            <option  value="50" <?php echo "$A " ?> >Premium Package RM50 (with RMXX talktime)			</option>
		<option value="75" <?php echo "$B " ?> >Premium Package RM75 (with RMXX talktime)</option>
            </select><br>	


<td width=500 align="right"><input type="submit" name="submitform" value="Upload" ></td></tr></table>

</body>

 

if i have page B which is to update the data.. when i click update based on the ID ... i want to link back to the page A to diplay all the data in page A

 

echo"<td><form action=page A.php method=POST><input type=submit name=edit value=Edit>						

						<input type=hidden name=propertyID value=$row[premPropertyID]></form></td>";

 

how do i display the data in page A which i already have when i click on the EDIT in page B

Link to comment
https://forums.phpfreaks.com/topic/72773-maintain-data/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.