troubleshooting Question

JavaScript and PHP Onclick ask for information (prompt) and process

Avatar of PatrickAdrichem
PatrickAdrichem asked on
6 Comments1 Solution850 ViewsLast Modified:
Alright i have this list of e-mail adresses and this button to change them,
usually i load a new page using the id of the adress and fill in the information and have them use
a form to edit the adress etc.

In this case, i only want to edit the adres, nothing else, just 1 box. So i was hoping i could do it with javascript.
something like:

<a href='javascript:onClick=window.prompt("New e-mail adres:", "<?php echo($row[1]); ?>")'>edit</a>

Only now i have to get it to forward the information to "adresses.php?id=<?php echo($row[0]); ?>"

Is this even possible with this simple javascript?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 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 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