In PHP? You could setup a simple HTML form which the user hits one of two buttons then that information is submitted back to the server, which processes the yes/no and does what it needs. But from your description I'm thinking you might be better served by Javascript.
One more question before I leave this thread. Isn't Javascript another server side function like PHP? My server does not have Javascript.
I think my only option is a "simple" HTML form. I put simple in "" because I have never dynamically opened a new browser window nor passed values between windows.
Javascript is client side, for the most part you can assume y our users have it... but that's not 100%, I know AOL for example used to have javascript issues, and I know IE 6 still have javascript issues, most things will work there, but they don't strictly implement the standard.
Some people will disable it as some sites use javascript to do nefarious things, like pop open a gazillion windows, or make it difficult to exit their page.
But for the most part, most people have IE or Opera or a Mozilla variant, and they all support most of the javascript standard.
Well, you can embed JavaScript into PHP.
Try do this:
echo '
<script>
confirm("Do you want to proceed to the next page?"
</script>';
I think JavaScript is a client side because it goes to your browser. You don't need to install anything. I believe it's already support with html.
Otherwise, you can make a confirmation page with yes/no.
Think about html submission. You use a form, where has input elements, like submit button that process function for the Yes part and a button that do function for No part. Hopefully you get the idea.
--
Mike FN
"8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Web Programmer."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.