Re: mixture of GET and POST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This has nothing to do with php, I suggest you read up on how html forms work and you may need to learn some javascript.

clive.



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>



--
Regards,

Clive.

Real Time Travel Connections


{No electrons were harmed in the creation, transmission or reading of this email. However, many were excited and some may well have enjoyed the experience.}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux