Insert a button on a page with random number generation

Question

I want to add a button on my wordpress page. When the user click on it, the text box above that button show a random number between 1-10000

I am quite new to WordPress, I want to integrate some scripts to my WordPress site to do this random number generation. For example I can call a php function when clicking that button. And the php code helps generate that random number and put it on the text box. but I don’t know where to begin. I googled that, but there isn’t a good reference for beginners at all

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/insert-a-button-on-a-page-with-random-number-generation/">

Insert a button on a page with random number generation</a>
0
, , , Akuta Hinako 2 months 0 Answers 42 views 0

Leave an answer