[PHP] mixture of GET and POST

2007-04-03 Thread Ross
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

Re: [PHP] mixture of GET and POST

2007-04-03 Thread clive
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

Re: [PHP] mixture of GET and POST

2007-04-03 Thread itoctopus
Mainly you have to add a javascript to submit on click (plenty of them by searching on google). You don't need the href links (I think they're wrong anyway), you can just have # instead, and you should pass the params to the submit function. Simple search on google for your case:

Re: [PHP] mixture of GET and POST

2007-04-03 Thread tg-php
As mentioned, this isn't a PHP issue really, except a little bit on the receiving end. Why not use multiple 'submit' buttons instead of using HREF links? input type=submit name=action value=Add input type=submit name=action value=Edit input type=submit name=action value=Remove In PHP, you'd