Page 1 of 1

Really need help urgently!! Prob easy if u have experience.

Posted: Sun Oct 12, 2008 11:19 am
by rn14
I am curently attempting to put an application together which enables my client to submit a series of pieces of data through a number of forms. All data is sent to the database after it has been submitted. So basically I have a form info submitted and sent to database then another form which confirms success of sending other info and sends more info to the database. All the sending of info to the database works the only problem I have is when the information is submitted its placed in a new window instead of the existing one.
My form works by passing form data to php variables and then posting this to a php script which inserts the data in the database. I just have to get it to work so it remains in the same window instead of opening a new one.Im new to this so it could be something really obvious

Code: Select all

 
 
<form action="updated_menu1_title.php" method="get" TARGET="_top">
<?php
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = 'http://www.rossnoonan.com/mffy/fckeditor/' ;
$oFCKeditor->Value = "$title";
$oFCKeditor->Create() ;
?>
 
<br>
<input type="hidden" name="ud_id" value="<? echo "$id";?>"> 
<input type="submit" value="Submit">
 
</form>
 
 

Re: Really need help urgently!! Prob easy if u have experience.

Posted: Sun Oct 12, 2008 11:56 am
by mattcooper
Change this:

Code: Select all

 
TARGET="_top"
 
To this:

Code: Select all

 
TARGET="_self"
 
in your form tag ;)

Re: Really need help urgently!! Prob easy if u have experience.

Posted: Sun Oct 12, 2008 1:31 pm
by rn14
Thanks for that couldn't have been easier but have been trying to get it for the day.