What do I need to do to redirect my page?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • David Piearcy
    New Member
    • Jan 2011
    • 1

    What do I need to do to redirect my page?

    I changed the real domains to domain since this is a public forum. This site is on another server now. Changing the URL after action does not work and I'm pulling my hair out. Thanks for your help in advance.

    Code:
    <form name="form" method="POST" action="http://example.org/fx/cfx.php" onsubmit='document.form.mstrPage.value = document.location.href;'>
                  <input type="hidden" name="redirect" value="http://example.org/autoreply/index.html">
                  <input type="hidden" name="mstrPage" />
                  <input type="hidden" name="subject" value="Contact form." />
                  <input type="hidden" name="require" value="Name,EMail_Address,comments,phone" />
                  <input type="hidden" name="security_check" value="<?php echo $enc_code?>" />
    Last edited by Dormilich; Jan 20 '11, 07:04 AM. Reason: please use [code] [/code] tags when posting code
  • Bharat383
    New Member
    • Aug 2011
    • 93

    #2
    nothing worry dear........
    just make your path relative not an absolute path...
    please remind this :: never use absolute path in page

    in your code you had used two time absolute path just change it to this relative path......

    your code action="http://example.org/fx/cfx.php"
    change like this
    action = "cfx.php"

    Your code value="http://example.org/autoreply/index.html"
    change like this
    value = "index.html "


    Bharat Parmar(Bharat38 3)

    Comment

    Working...