TGWSE_GY Posted August 6, 2009 Share Posted August 6, 2009 :facewall:I don't understand, when the submit button is clicked not only is the page reloaded but it is also opened in a new tab/window...... any ideas? Here is my code: <?php <form action="process_changes.php" method="post"> <?php //Grab the section id string from the url. $section = $_GET['section']; //this sets up an assoc array that allows us to track what page we are editing for making sure that the current edits are being uploaded to the //appropriate table in the db. $sectionid = array( "edit_news" => 0, "edit_radio" => 1, "edit_reviews" => 2); foreach ($sectionid as $key => $value) { //echo "key: " . $key . "value: " . $value . "<br />"; if ($section == $key) { echo "<input type=\"hidden\" value=\"$value\" name=\"section\" id=\"section\" />"; } } ?> <?php //Reformat image tags so that the images will display in the editor include('phpcontent/contcond.php'); $search = "src=\"images"; $replace = "src=\"http://hmtotc.com/dev/projects/VRassoc/soundsurfer.biz/images"; $article_edited = str_replace($search, $replace, $article); $article = $article_edited; $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->ToolbarSet = 'Custom'; $oFCKeditor->Width = '100%' ; $oFCKeditor->Height = '512' ; $oFCKeditor->BasePath = '' ; $oFCKeditor->Value = $article ; $oFCKeditor->Create() ; ?> <input type="submit" value="Make Changes" /> </form>?> Thanks Link to comment https://forums.phpfreaks.com/topic/169089-page-reloads-and-opens-a-new-tab-on-completion/ Share on other sites More sharing options...
avvllvva Posted August 6, 2009 Share Posted August 6, 2009 which page is opening , is it process_changes.php ?? Link to comment https://forums.phpfreaks.com/topic/169089-page-reloads-and-opens-a-new-tab-on-completion/#findComment-892112 Share on other sites More sharing options...
Bricktop Posted August 6, 2009 Share Posted August 6, 2009 Hi TGWSE_GY, Change: <?php <form action="process_changes.php" method="post"> to: <form action="process_changes.php" method="post"> and: <input type="submit" value="Make Changes" /></form>?> to: <input type="submit" value="Make Changes" /></form> The <?php and ?> are not needed where you have placed them. Link to comment https://forums.phpfreaks.com/topic/169089-page-reloads-and-opens-a-new-tab-on-completion/#findComment-892118 Share on other sites More sharing options...
TGWSE_GY Posted August 6, 2009 Author Share Posted August 6, 2009 yes process changes opens processes and then is suppose to return to the page with the form on it. Link to comment https://forums.phpfreaks.com/topic/169089-page-reloads-and-opens-a-new-tab-on-completion/#findComment-892139 Share on other sites More sharing options...
TGWSE_GY Posted August 6, 2009 Author Share Posted August 6, 2009 Bricktop: that didn't change anything it still reloads the page in the same window and opens a new window with the same page displayed. Thanks Link to comment https://forums.phpfreaks.com/topic/169089-page-reloads-and-opens-a-new-tab-on-completion/#findComment-892172 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.