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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rn14
Forum Newbie
Posts: 8
Joined: Sun Oct 12, 2008 11:16 am

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

Post 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>
 
 
User avatar
mattcooper
Forum Contributor
Posts: 210
Joined: Thu Mar 17, 2005 5:51 am
Location: London, UK

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

Post by mattcooper »

Change this:

Code: Select all

 
TARGET="_top"
 
To this:

Code: Select all

 
TARGET="_self"
 
in your form tag ;)
rn14
Forum Newbie
Posts: 8
Joined: Sun Oct 12, 2008 11:16 am

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

Post by rn14 »

Thanks for that couldn't have been easier but have been trying to get it for the day.
Post Reply