Navigating to a custom script
-
I have a form on a page. No problem getting the form to submit to my php script which will dump the data in to the mySQL database. Security folks – don’t worry, I’m validating and sanitizing before Inserting a new record.
The issue comes in when I want to use AJAX to submit the form. My .jQuery script includes the path to my custom script, but I’m not sure “how to get there from here”.
Apache server is configured like this:
public_html/wordpress/index.php <– Site home
public_html/wordpress/myfolder/myfile.php <– php Script I want to make the AJAX call toThe problem comes in because I don’t know how to include the processing file, and Javascript isn’t allow to use a full HTML address starting with htpp:// so I have to call this relatively (and I haven’t figured out the right ../ or ../../ combination) OR from the site root and I can’t recall how to do that (establishing the path down from the site root.
Can anybody help with this? Please?
- The topic ‘Navigating to a custom script’ is closed to new replies.