Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. var daynum1 = $(this).text();
  2. var month1 = $('.ui-datepicker-month').text();
  3. var year1 = $('.ui-datepicker-year').text();
  4.  
  5. var myDate = daynum1 + " " + month1 + " " + year1;
  6. $('#headingcontent').html(myDate);
  7.  
  8. $.ajax({
  9. url: "events.php",
  10. type: "POST",
  11. data: {myDate: myDate},
  12. dataType: "html",
  13. success: function(html){
  14. $("#eventcontent").empty();
  15. $("#eventcontent").append(html);
  16. }
  17. });
  18.  
  19. if(isset($_POST['myDate']))
  20.  
  21. var titleevent = $("#dropdowntextbox").val();
  22.  
  23. $.ajax({
  24. url: "editevents2.php",
  25. cache: false,
  26. data: {titleevent: titleevent},
  27. dataType: "html",
  28. success: function(html){
  29. $("#editeventspopup").empty();
  30. $("#editeventspopup").append(html);
  31. }
  32. });
  33.  
  34. if(isset($_POST['title']))
  35.  
  36. {
  37.  
  38. $title = $_POST['title'];
  39.  
  40. echo "hooray found it";
  41.  
  42. }
  43.  
  44. else
  45. {
  46.  
  47. echo "hello";
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement