troubleshooting Question

submit an action to a php file

Avatar of lilyyan
lilyyan asked on
6 Comments3 Solutions322 ViewsLast Modified:
i got a question about how to call a php from a html:

i want to display some users name in alphbatic order, something like:

A B C D E F...Z

When user click A, then all user's last name starts from A will be pulled out from the database and displayed.

So I'm thinking in a form of html, there is some code :
< form >
<a href="" onclick=""> A </a>
<a href="" > B</a>
<a href="" > C </a>


My questions are:
1. How to envoke/submit an action from the  letter "A" ...that call a php file?

2. Do I need to call the php file 26 times?
Some sample code will be very helpful to me.

Any suggestion is greatly appreciated,

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 3 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros