$self= $_SERVER['REQUEST_URI'];
"<form enctype=\"multipart/form-data\" action=\"$self\" name=\"applic_create\" method=\"post\">";
The arguments will be included in the URL for GETs
Or, simply....
Put the arguments in hidden inputs; e.g., <input type="hidden" .......> They will be returned in the POST array
Al....
Ross wrote:
I have 3 'action' buttons and I am trying to send the $id from the radio
button and the action to the same page so I can either, Add Edit or Remove
the property from the database.
Any ideas how I can get this to work? I can either POST the id's or GET the
action but I can't seem to return both to the browser.
Ta,
R.
--------------------------------------
<form id="form1" name="form1" method="post" action="">
<div id="button_holder">
<a href="?action=add&id=<?=$id;?>">Add Property</a>
<a href="?action=remove">Remove Property</a>
<a href="?action=edit">Edit Property</a>
</div>
<div id="table_header">
</div>
<table id="properties_table">
<?php
$query = "SELECT * FROM properties";
$result= mysql_query($query);
while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){
?>
<tr><td class="col_one"> <input type="radio" name="id" value="<? echo
$row['property_id'];?>"></td>
<td class="col_two"><?php echo $row['property_id'];?></td>
<td class="col_one"><?php echo $row['address'];?></td>
<td class="col_two"><?php echo $row['postcode'];?></td>
<td class="col_one">£500</td>
<td class="col_two">Live</td>
</tr>
<?
} ?>
</table>
</form>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php