Jump to content

Mudar Submit de Form de acordo com Radio


Ivo Pereira

Recommended Posts

Postei isto aqui de propósito pois é um "script" em PHP que estou a fazer, e como isto interage com SQL...

Bom, é assim, imaginem, tenho uma lista de valores que vão ser buscados à BD. Antes de cada um, tem um radiobutton, e a partir dele queria que o valor do action do formulário pudesse ser alterado, isto é, imaginem que escolhia o radio com o id 1, o POST do formulário iria alterar para "accao.php?selectedid=1".

Acho que me fiz entender.

Abraço 😞

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. 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.