Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.