![]() |
|
|||||||
| PHP, CGI, ASP, Server-Side Programming Discuss server-side programming such as PHP, CGI, ASP, and others. |
This is a discussion on How To Use A Link To Call Function In Php? within the PHP, CGI, ASP, Server-Side Programming forums, part of the Webmaster / Coding / Web Design Discussion category; The title says it all, really. How do you call a function using <a href=" function name"> in PHP? I'm ...
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 |
|
New Hunter
|
The title says it all, really. How do you call a function using <a href=" function name"> in PHP? I'm doing a project and I stumbled upon this problem. I don't want to use query string in the href part like <a href="?del()"> since that would mess up the other part of my code. Can anyone pleae help me?
__________________
cheap r4i card |
|
|
|
|
|
#2 |
|
New Hunter
|
Supposed you get like this
if ($_GET['run_func'] == 'yes') { myFunction(); } else { echo '<a href="xxxxx?run_func=yes">Link to myFunction</a>'; } function myFunction() { echo 'The function ran successfully.'; }
__________________
Cheap International Phone Calls |
|
|
|
|
|
#3 |
|
New Hunter
|
Supposed to be like here--
PHP Code:
__________________
External Doors |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|