PDA

View Full Version : làm sao tạo đường dẫn từ 1 file từ thư mục A đến 1 file khác ở thu mục B ????



thientanchuong
12-06-2012, 02:58
Mình có 3 file ở folder khác nhau

1/ catalogueTemplate nằm trong folder template => đường dẫn là template/catalogueTemplate.php
2/ catalogueClass nằm trong folder CLASS => đường dẫn là CLASS/catalogueClass.php
3/ catalogueProcess nằm trong folder function => đường dẫn là function/catalogue.php

có câu lệnh nào cho đường dẫn từ file catalogueTemplate.php (ở thư mục template) đến file catalogueProcess.php (trong thư mục CLASS) mà ko cần phải bỏ 2 file này vào cùng 1 thư mục ???

code của catalogueTemplate.php


<div id="container">
<form class="form" name="form" method="post" action=".../function/catalougeProcess.php ">
<fieldset>
<legend>Catalouge</legend>
<dl>
<dt><label for="CatalougeName">Catalouge Name</label></dt>
<dd><input type="text" name="catNameInput" id="catNameInput" size="63" maxlength="255" /></dd>
</dl>
<dl>
<dt><label for="Description">Description:</label></dt>
<dd><textarea name="catDescription" id="catDescription" cols="60" rows="10" ></textarea> </dd>
</dl>
<dl>
<dd><input type="submit" name="submit" id="submit" value="Add New Catalouge" /></dt>
</dl>
</fieldset>

</form>
</div>


và lỗi báo ở đây

http://img594.imageshack.us/img594/6568/ererdn.jpg

mình mò ra lỗi từ đây

action=".../function/catalougeProcess.ph