gerkintrigg Posted August 14, 2008 Share Posted August 14, 2008 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 More sharing options...
lemmin Posted August 15, 2008 Share Posted August 15, 2008 Can you post your php that creates the javascript? Link to comment https://forums.phpfreaks.com/topic/119715-solved-custom-alert-box/#findComment-617457 Share on other sites More sharing options...
gerkintrigg Posted August 15, 2008 Author Share Posted August 15, 2008 I got it sorted. Link to comment https://forums.phpfreaks.com/topic/119715-solved-custom-alert-box/#findComment-617511 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.