# \[beginner question\] Run php script without changing page

**URL:** https://forum.kirupa.com/t/beginner-question-run-php-script-without-changing-page/196706
**Category:** programming
**Created:** [August 10, 2006, 12:53pm UTC](https://forum.kirupa.com/t/beginner-question-run-php-script-without-changing-page/196706 "2006-08-10T12:53:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![craigjr](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@craigjr](https://forum.kirupa.com/u/craigjr)
#### Post date: [August 10, 2006, 12:53pm UTC](https://forum.kirupa.com/t/beginner-question-run-php-script-without-changing-page/196706/1 "2006-08-10T12:53:47Z")

</div>

Hi, I’m hoping to find out how to run a php script from something similar to a link clicking but not actually changing page location. So for example (in my crazy world where this is possible):

\<a href=“random.php”\>random\</a\>

clicking that would not go to random.php and render it as an html page but merely run the php code held within it (akin to calling a function) for example to edit a row in a mysql table.

I hope this hasn’t come across too idiotic, i’m a flash/java/css/html man mainly!!
