Jump to content

Recommended Posts

How is that possible? lol

 

var t = gup(t);
var f = gup(f);	
var url = "delete.php?f=" + f + "t=" + t;

 

Well, maybe switch them here to where it goes:

var url = "delete.php?f=" + t + "t=" + f;

 

But, really, solve, not band-aid it :P

 

Are they correct on the first page (where the JS gets the variables)?

It worked! W00t! CHeers for all the help.

 

Is it the same principal if I want to put a second function in? eg. If I want to PIN it it will pop-up saying are you sure you want to pin this thread. Would I just have to change function names and the delete.php would become pin.php??

lol, nice.

 

yeah, you could do that. Eventually, to save some space within your code, you can use what I did and do a switch, where you would give it like "confirmit(delete)" and then it would do a switch case off of what it was, in this case it would go through the deletion steps. However, that gets a little confusing/messy, so stick with the basics, but keep it in mind later on as you get better (and more comfortable)

 

Don't forget to mark it solved if you think it was fixed ;)

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.