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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.