treehouse : what would you like to learn today?
Web Design Web Development iOS Development

sent.php folder

  • Hello I have a sent.php that I have mad it works when place it in main directory/local but would like it to have own folder in my theme.

    I know when having images in css for example you go ('../images/test.png') not to sure how to action the sent.php

    <

    form name="contactform" method="post" action="sent.php">

    this this my idea where would like it to go

    catalog/view/theme/theme01/footermail

    footermail is folder

  • I know when having images in css for example you go ('../images/test.png') not to sure how to action the sent.php

    If you are asking if you can use relative URLs in a form's action attribute, the answer is yes.

    e.g.,

      <form action="../theme/sent.php">
    

    If that's not your question, please explain what it is you're trying figure out. I'm not sure if I understood your post completely.

  • Am getting error

    Not Found

    The requested URL /theme01/mailfooter/sent.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    i have tried action="theme01/mailfooter/sent.php"> also action="../mailfooter/sent.php"> and action="../theme01/mailfooter/sent.php">

    For some reason only works on main local. action="sent.php">

  • well, I can't tell you the correct path; I don't know it. you'd have to tell me.

    What are the complete URLs to the page the form is on, and to your sent.php file?

  • I got it working i need to do stuff like this

    For the test website

    <

    form name="contactform" method="post" action="http://www.mwbcomputers.com.au/demo/catalog/view/theme/theme01/template/mailfooter/sent.php">

    For Main Local

    <

    form name="contactform" method="post" action="http://www.mwbcomputers.com.au/catalog/view/theme/theme01/template/mailfooter/sent.php">

  • Is this the same problem? Or are you now asking about how to direct a form to different handlers depending on if it is the "test" site?

  • no just saying got it working that way