troubleshooting Question

using input button to control flow (php)

Avatar of NZ7C
NZ7C asked on
4 Comments1 Solution148 ViewsLast Modified:
I have a form that displays the results of a search for a user name.  Within that same form I have two buttons which I want to remain side by side. I want each button to take the user to a different action page. Thus if search results show user John Smith - the user can click Edit and go to an edit action page - or he can click Delete and be taken to a Delete action page.  Is there a means of doing this given these requirements? Thanks in advance. In a previous question I asked about preventing  dropiing to the next line after a ending form tag </form>. If it would be possible to prevent that I could then associate an action with each button - but if not is there an answer?

I would like to have the two buttons listed below submit

<input type="submit" class="button" value="EDIT user profile">
<input type="submit" class="button" value="DELETE user">
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
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 1 Answer and 4 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