Javascript button perform action in php

Asked

Viewed 78 times

0

Hello. I have a question :/

I’m making an anime site, with posting and etc, at first I thought I could do everything in javascript, however, now I had to use php to access the Database and etc.

Problem I have a button that when it is clicked should perform an action in php (Change value in Database).

Note. I started using PHP 3 days ago, be patient with me.

Thank you =D

  • Already have some code in Javascript? You know what ajax is?

  • No, I’ve heard of AJAX, but I can’t program. But if I have to, I can learn.

  • Check it out:http://answall.com/q/116153/129

  • Háááááá, I have used AJAX without knowing it. I must use ajax to open php pages inside the home page and execute what I need?

  • You have to use ajax to send and receive data from the server. You know how to activate ajax (and pass any values) when the button is clicked?

  • I activate ajax with url meusite.com/acao.php? test=teste2 and put the code to be executed using: $_REQUEST correct?

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.