If you have a minute please give me a hand

Discussion in 'Programming' started by rn14, Oct 12, 2008.

  1. #1
    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
    
    <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>
     
    
    Code (markup):

     
    rn14, Oct 12, 2008 IP
  2. jcwebhole

    jcwebhole Active Member

    Messages:
    93
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    im not sure but maybe its tha TARGET in your FORM Tag that's making it go to a different window
     
    jcwebhole, Oct 12, 2008 IP
  3. joxtechnology

    joxtechnology Peon

    Messages:
    146
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    jcwebhole is correct remove that TARGET="_top"
     
    joxtechnology, Oct 12, 2008 IP