Jump to content

Prevent people from adding item twice


clausowitz

Recommended Posts

No, you'd need to get the values from the form using Javascript. It would look something like

var short, location, type;

short    = $('input[name="short"]').val();
location = $('input[name="location"]').val();
type     = $('input[name="type"]').val();

$.post("editcalendar.php",
{
	short    : short,
	location : location,
	type     : type		
},
function(data) {
	alert("Your event has been created, Close this window.");
}
);

 

Now do that for all of your form elements.

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.