Jump to content

[SOLVED] Question


almightyegg

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 ;)

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.