Scripting from different directories of the same level
Posted: Mon Jul 20, 2009 11:08 am
Hello! How can I access a script from a directory when I currently executing a script from another directory of the same level as the first directory? Example:
I have a script that prints a form containing a drop-down menu. It is located in http://localhost/root/scripts. The options of that menu will come from a script in http://localhost/root/queries.
http://localhost/root/scripts/menu.php:
<form name='input' action='index.php?page=queries/insert_class' method='post' >
<p><label for='addcl_ctitle'>Course Title: </label><select name='coursetitle' id='ctitle_menu'><this is where i put the option-generating script></select></p>
</form>
I'm OC when it comes to files, so I don't want querying scripts(the options are queried? from a database) in the same folder of my form-generating scripts. Is there a way that I can implement this? I'm a beginner in PHP so I don't know if this is possible.
Thanks in advance!
I have a script that prints a form containing a drop-down menu. It is located in http://localhost/root/scripts. The options of that menu will come from a script in http://localhost/root/queries.
http://localhost/root/scripts/menu.php:
<form name='input' action='index.php?page=queries/insert_class' method='post' >
<p><label for='addcl_ctitle'>Course Title: </label><select name='coursetitle' id='ctitle_menu'><this is where i put the option-generating script></select></p>
</form>
I'm OC when it comes to files, so I don't want querying scripts(the options are queried? from a database) in the same folder of my form-generating scripts. Is there a way that I can implement this? I'm a beginner in PHP so I don't know if this is possible.
Thanks in advance!