Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Form handling via AJAX post(), best practice.
Hi there, I'm having problems with form submissions that are processed via AJAX post as I'm trying to keep complaint.

If I place the standard:
<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); }
at the top of my form script in the template folder, the request dies and returns the message ( as it should ).

If I convert the form script into a plugin, I can't call the script directly or pass serialized arrays after runtime.
I can get it to work w/o the defined() condition but that would be obviously not a good idea as the script's location is revealed in the client source.

Are my only options having the form handling script included in the page script? Or does AJAX not work well with GS?
Any opinions / answers welcome.
Why not? Did you add the proper allow htaccess?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix

Users browsing this thread: 1 Guest(s)