Jump to content

[SOLVED] Custom Alert box


gerkintrigg

Recommended Posts

i hope this makes sense... here goes!

I love the idea of a custom alert box, which gives me a lot more control (see http://cornwalldevon.co.uk/test.php for details) but I have a little issue mixing javascript with PHP. What I want to do is pass a variable to the call of the

custAlert()

function.

 

I then want the "yes" link in the alert box to print out "5.php" but it's just doing what i want it to and I'm not good enough at javascript to change it to be honest.

 

I know how to create loads of these things using a loop in PHP but i think that this is a much more elegant method than spewing out tonnes of the same thing, with slight variations. - Provided that I can get it to work.

 

Could anyone have a look at the page & code and let me know where I'm going wrong please? I'm just not that great at how I can get variables from java script back into the code.

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/119715-solved-custom-alert-box/
Share on other sites

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.