Jump to content

Any Idea Why This Wont work


glenelkins

Recommended Posts

Hi any ideas why the confirm dialog wont show?

[code]
// Check if the user has finished creating their profile
if ($finished == 0) {
?>
<script language="javascript">
if (confirm ('Have You Finished Creating Your Wedding Page?')) {
alert ("Ok");
} else {
alert ("Bummer")
</script>
<?
}
[/code]
Link to comment
https://forums.phpfreaks.com/topic/16776-any-idea-why-this-wont-work/
Share on other sites

I have had errors from validator.w3c.org that 'language' is not a valid attribute for a script tag, though I think I have had js running in tags like that before. Use type="text/javascript" anyway, I don't know if that will fix it, it looks OK to me.

We must be nearing the end of the world - computers are not obeying our command!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.