Guest Posted July 29, 2006 Share Posted July 29, 2006 Just like the title says, I am trying to create a new page based on the standard Contact Us page and I have it all finished but when I click on the submit button it shows my Contact Us success page. I have define'd the success page in catalog\include\languages\english\feedpack.php but it still doesnt work. Anyone do this before and have it work? Let me know please! Thanks. Link to comment Share on other sites More sharing options...
PD_Steve Posted July 29, 2006 Share Posted July 29, 2006 In the contact_us.php file look for the code: tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); That is what happens once you click on the submit button. Its reopening the page and then diverting to this code lower down. <?php } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) { ?> <tr> <td class="main" align="left" width="90%" valign="top" style="padding:5px 5px 5px 5px;"><?php echo TEXT_SUCCESS; ?></td> </tr> So the variable TEXT_SUCCESS has the "your email was sucessfully sent text" Either create a new variable like TEXT_SUCCESS_2 in the relevant file (did not check which one) or create a different variable for the FILENAME_CONTACT_US to make the page load in another php rather than "contact_us.php" again (i.e. make another variable like "FILENAME_MY_MODDED_PAGE" that contains the link to whatever page you wish to open. Hope that helps Steve My Toolbox: Crimson Editor, Adobe Photoshop CS2.0, Expression Web, Macromedia Suite 8.0, Cinema 4D, Nvu. Link to comment Share on other sites More sharing options...
Guest Posted July 29, 2006 Share Posted July 29, 2006 Thanks for the help. With a mix of your info and me playing around with it I fixed it. Thanks again. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.