Insert form data not working

Hi! I'm new to php coding. I am trying to build a form in
which customers fill out and submit the data to by db. I've
followed to the letter on how to build an insert record page.
everything looks good except when I upload it to my server, nothing
shows up on the page..no form...zilch! here is the code generated
by Dreamweaver minus my login info: <?php
require_once('Connections/test.php'); ?>
<?php
function GetSQLValueString($theValue, $theType,
$theDefinedValue = "", $theNotDefinedValue = "")
$theValue = (!get_magic_quotes_gpc()) ?
addslashes($theValue) : $theValue;
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) .
"'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue :
$theNotDefinedValue;
break;
return $theValue;
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" .
htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_insert"])) &&
($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO address_book (first_name,
last_name, phone_number) VALUES (%s, %s, %s)",
GetSQLValueString($_POST['first_name'], "text"),
GetSQLValueString($_POST['last_name'], "text"),
GetSQLValueString($_POST['phone_number'], "text"));
mysql_select_db($database_test, $test);
$Result1 = mysql_query($insertSQL, $test) or
die(mysql_error());
$insertGoTo = "phptest.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $insertGoTo));
?>
<form name="form1" method="POST" action="<?php echo
$editFormAction; ?>">
<p>
<input name="first_name" type="text" id="first_name">
</p>
<p>
<input name="last_name" type="text" id="last_name">
</p>
<p>
<input name="phone_number" type="text"
id="phone_number">
</p>
<p> </p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
<input type="hidden" name="MM_insert" value="form1">
</form>
any help would be appreciated!

Hi! I'm new to php coding. I am trying to build a form in
which customers fill out and submit the data to by db. I've
followed to the letter on how to build an insert record page.
everything looks good except when I upload it to my server, nothing
shows up on the page..no form...zilch! here is the code generated
by Dreamweaver minus my login info: <?php
require_once('Connections/test.php'); ?>
<?php
function GetSQLValueString($theValue, $theType,
$theDefinedValue = "", $theNotDefinedValue = "")
$theValue = (!get_magic_quotes_gpc()) ?
addslashes($theValue) : $theValue;
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) .
"'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue :
$theNotDefinedValue;
break;
return $theValue;
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" .
htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_insert"])) &&
($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO address_book (first_name,
last_name, phone_number) VALUES (%s, %s, %s)",
GetSQLValueString($_POST['first_name'], "text"),
GetSQLValueString($_POST['last_name'], "text"),
GetSQLValueString($_POST['phone_number'], "text"));
mysql_select_db($database_test, $test);
$Result1 = mysql_query($insertSQL, $test) or
die(mysql_error());
$insertGoTo = "phptest.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $insertGoTo));
?>
<form name="form1" method="POST" action="<?php echo
$editFormAction; ?>">
<p>
<input name="first_name" type="text" id="first_name">
</p>
<p>
<input name="last_name" type="text" id="last_name">
</p>
<p>
<input name="phone_number" type="text"
id="phone_number">
</p>
<p> </p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
<input type="hidden" name="MM_insert" value="form1">
</form>
any help would be appreciated!

Similar Messages

  • Moved site - ADDT insert form pages not working

    Not sure what has happened here. I have copied a site from:
    www.goodsafariguide.com to:
    www.goodsafariguide.net
    The domains are on a shared reseller hosting account so are both pointing to the same database, but I noticed that pages with ADDT forms were not displaying at all.
    I created a new page just with a basic form, and it works on the .com domain:
    http://www.goodsafariguide.com/campkalahari/newform.php
    But not on the .net domain:
    http://www.goodsafariguide.net/campkalahari/newform.php
    The database connection looks OK - any idea what the issue here could be?
    Thanks.

    Narrowed it down to the error:
    PHP Fatal error:  Class 'tNG_dispatcher' not found in /home/gsgnet12/public_html/campkalahari/index.php on line 27
    I think I can see what all happened now. I originally got thrown because I uploaded the entire site, including a folder containing lots of hi-res photos, that were never uploaded originally. It looks as though files that weren't uploaded when the disk space ran out were still showing up in the file directory, but with a file size of 0k.
    So then when I was reuploading files, Dreamweaver wasn't actually uploading them because it seemed to think they were already uploaded, and I could see them showing up on the remote server, so it all looked OK.
    Anyway - it all looks OK now.

  • Insert statement will not work if select statement has less number of colum

    Hi,
    One of my thread is already resolved on the following URL : unable to insert rows into the table
    DROP TABLE TEMP;
    CREATE TABLE TEMP AS SELECT * FROM CASE_101 WHERE 1=2;
    DECLARE
    S VARCHAR2(200);
    STMT VARCHAR2(500);
    begin
    for C in (select TABLE_NAME INTO S from USER_TABLES where TABLE_NAME like 'CASE%' TABLE_NAME NOT like '%OLD' and Num_ROWS > 0 order by TABLE_NAME) loop
    STMT := 'INSERT INTO TEMP SELECT * FROM ';
    STMT:=STMT || C.TABLE_NAME;
    EXECUTE IMMEDIATE STMT;
    dbms_output.put_line(c.table_name);
    end loop;
    end;
    i am facing now some different; almost all the tables have same number of columns except in few of tables have some additional columns. As above i am creating a table "TEMP" who has highest column temp(by doing some manual process). The table who has less columns than "TEMP" table : Insert statement will not work. 'INSERT INTO TEMP SELECT * FROM less_columns_table_name'.
    Please let me know , how can i execute proper way.
    Thanks.
    Best Regards
    Arshad

    user13360241 wrote:
    Hi,
    One of my thread is already resolved on the following URL : unable to insert rows into the table
    DROP TABLE TEMP;
    CREATE TABLE TEMP AS SELECT * FROM CASE_101 WHERE 1=2;
    DECLARE
    S VARCHAR2(200);
    STMT VARCHAR2(500);
    begin
    for C in (select TABLE_NAME INTO S from USER_TABLES where TABLE_NAME like 'CASE%' TABLE_NAME NOT like '%OLD' and Num_ROWS > 0 order by TABLE_NAME) loop
    STMT := 'INSERT INTO TEMP SELECT * FROM ';
    STMT:=STMT || C.TABLE_NAME;
    EXECUTE IMMEDIATE STMT;
    dbms_output.put_line(c.table_name);
    end loop;
    end;
    i am facing now some different; almost all the tables have same number of columns except in few of tables have some additional columns. As above i am creating a table "TEMP" who has highest column temp(by doing some manual process). The table who has less columns than "TEMP" table : Insert statement will not work. 'INSERT INTO TEMP SELECT * FROM less_columns_table_name'.
    Please let me know , how can i execute proper way.
    Thanks.
    Best Regards
    Arshadmore often than not "TEMP" tables are NOT required & are highly inefficient in Oracle.
    Either only specify explicit column in TEMP to get data,
    or provide value for "extra" column in TEMP

  • Form does not work

    Hi
    I use Adobe Livecycle Designer7.0 English and Acrobat7.0.8 Japanese. I made forms to upload to Workflow Server. One form I made does not work at all when the form is opened in the Form Manager.
    It is strange that the PDF preview of the Designer works well.
    1. Page Counter
    In the master page of the form I set a page counter field from the custom library. In the preview it works well but when the form is opened from Form Manager it does not work. It looks like "Page ##/##".
    2. Font is not shown
    I put a button in the form. The font of the button is set to "MS UI Gothic", but when the form is opened from Form Manager the font of the button is "KozukaMincho".
    3. JavaScript does not work
    I wrote javascript to change the caption of fields like this.
    ----- form1.#subform[0].Button1::click - (Javascript, client)
    FieldA.rawValue = "test";
    FieldB.rawValue = "test2";
    This script does not work too when the form is opened.
    These issues are basic but I do not know where is wrong. Because no error message appears when I test the form in the PC.
    Please advise about these issues.
    Thanks,
    Akira

    Hi Jared,<br /><br />I am very glad to read your reply. <br />I added a button with the script you wrote in previous reply and found that Form Manager changed the root tag. <br /><br />The xsd file I define to the data is like this<br /><br />b <Message>  //rootnode name <br /><br /> <Heade></Header><br /> <Contents><br />  <FieldA></FieldA><br />  ......<br /> </Contents><br /> <Footer><Footer><br /></Message><br /><br />So, I set the structure of the form like this.<br /><br />b <Message>          //This is name of contents area<br /><br /> <Header></Header> //Subform name<br /> <Contents>        //Subform name<br />  <FieldA></FieldA><br />   ......<br /> </Contents><br /> <Footer></Footer> // Subform name<br /></Message> <br /><br />But the saveXML script write out like this:<br /><br />b <fields><br /><br /> <Header></Header><br /> <Contents><br />  <FieldA></FieldA><br />  ......<br /> </Contents><br /> <Footer></Footer><br /></fields> <br /><br />So I changed all of the Javascript using relative path and I upload this form again to the FM, but this form does not work...<br />I am not sure that it must be the same name between the rootnode of the xsd file and the name of the contents area. <br /><br />Jared and all, would you let me know whatever you find about this issues.<br /><br />Best regards,<br />Akira

  • Insert statement is not working for z table.

    Hi experts,
    My insert statement is not working.
    I have used follwing code to update z table .
    INSERT ztable FROM TABLE gt_table.
    here i have checked gt_table and its filled up with all the records properly.
    now the problem is in this table i have 15 fields and it inserts 14  fields of it but
    the last field is never inserted though in gt_table i can see value for last fields also.
    I have added this field in ztable recently . so i also used se14 to adjust table but still i am facing same problem.
    please help me out.
    thanks,
    Neo

    > > Table maintainance will have nothing to do with
    > this
    > > issue.
    >
    > It does sometimes when you are trying to see the
    > values from SM30 instead of SE16. The value may be
    > there, but it may just not seen in SM30 because the
    > table maintenance hasn't registered the addition of
    > new field.
    >
    > Another place to look at is the activation log to see
    > if there are any warnings issued there.
    You shouldn't use SM30 to view table entries. You use this transaction to maintain the table entries. Pure and Simple.

  • Form is not working of multiple form check boxs, source posted. HELP.

    Form is not working of multiple form check boxs, source posted. HELP.
    I'm trying to have golive form be able to check one, two or all of the options in Graphics field.
    As is it will only post results from the last checked box.
    Here's the page
    http://www.perfection-press.com/Pages/ContactForm.html
    Here's where source in golive has scanning,design,filesupplied.
    [code removed to fix forum topic display]

    Since the checkboxes all have the same name, the values are over-writing each other when being passed to the PHP script. The best way to fix that is to add a pair of empty square [] brackets after the checkbox names, so make the names "graphics[]" instead of "graphics". That tells PHP that the values are being passed as a list (an array) instead of a single value. As long as your processing script knows what to do from there (and it does), should solve the problem.
    By the way, I noticed that two of the checkboxes were named "graphics" and the other was "graphic" (singular). You'll want to fix that too so they're all the same.

  • My 'contact' form is not working.  When I send a test contact it returns to my adobe email account this: "Contact Form" has a new form submission.

    My 'contact' form is not working.  When I send a test contact it returns to my adobe email account this:
    "Contact Form" has a new form submission.

    What exactly is not working ? As you have mentioned form submission notification is received in your email account so form process is working I believe but you want the notifications to go to another email account I think.
    Have you added the email address in "Email to" field in form options ? If yes and then also you are not receiving the form , then please provide me the site url and post a screenshot or form with option box open.
    Thanks,
    Sanjit

  • My start and end form is not working .

    My start and end form is not working .
    It showing error that start form in invalid.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
       DIALOG                            = 'X'
       FORM                              = 'YSAMPLE1'
       LANGUAGE                          =  SY-LANGU.
    loop at itab1.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = '525'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'MAIN'.
    endloop.
    CALL FUNCTION 'START_FORM'
    EXPORTING
      ARCHIVE_INDEX          =
       FORM                   = 'ysample1'
      LANGUAGE               = ' '
       STARTPAGE              = 'next'.
       CALL FUNCTION 'END_FORM'.
    Thanks and regards
    Mave
    CALL FUNCTION 'CLOSE_FORM'.

    You should use END_FORM and START_FORM when you want to say to your system:
    - OK! Here document print begins and there it finishes.
    Infact you can print many document opening the sapscript only one time:
    CALL OPEN_FORM
    LOOP MY_DOCUMETS.
    Here the print of document starts:
      CALL START_FORM
      CALL WRITE_FORM
      CALL WRITE_FORM
    Here the print of document finishes
      CALL END_FORM
    ENDLOOP.
    CALL CLOSE_FORM.

  • Forms Personalization not working after R12 upgrade

    Hi,
    We have recently upgraded to R12. We have forms personalizations on the People, Enter and Maintain form and this is not working now after the R12 upgrade.
    I went to one of the form personalizations and Validated and Applied again but it still did not work. I also created a new one but had no success with that either.
    Any ideas how to get this working again ? Is there something extra that needs to be done for R12?
    Thanks
    Regards,
    Shalantha

    Pl indicate which version of R12 and on what form you had the personalization in the previous version. Have you checked FND_FORM_CUSTOM_% tables to ensure that the personalization survived the upgrade ?
    Pl see if these MOS Docs can help
    Forms Personalizations Unavailable After Upgrade To 12.1.x          (Doc ID 1245864.1)
    Forms Personalization Not Working After Upgrade To R12.1.3          (Doc ID 1309458.1)
    Form Personalization Value Field Not Being Retained After Upgrade          (Doc ID 1266265.1)
    Do Personalizations Holdup After A Patch Is Applied? (Doc ID 1286576.1)
    HTH
    Srini

  • Iphone 5 cellular data not working,

    iphone 5 cellular data not working, so i reset the all phone settings and it is showing only apple symbol on the screen afer i switched on the top.How to fix this problem

    Hold the sleep / wake button and the home button down until the phone shuts off and then allow it to reboot again
    Please let us know if that helps

  • HTML 5 Contact Form "Placeholder" instead of label makes form validation not work

    Hi,
    I am trying to implement a HTML 5 contact form which uses a "placeholder" within the field instead of a label. But now the form validation does not work.
    The site is at http://www.partnerrealestate.ch/avenuedefrance23/index.html and it is not using any workflows from BC as the person receiving it is an external person and the process does not require a workflow.
    Would appreciate any input into this.
    Kindest Regards,
    corina

    There is no label on input fields. The form does not work because you have edited the names. BC needs the ID and names to be as it is issue when you create the form so it knows what to use for the validation and what information to pass into the database.
    So where you have edited these, you need to restore those.
    You have some invalid html on some input's as well one has input="" inside of it when rendered so that is not right.
    It is not to do with placeholder use. So fix up your HTML errors, correct the name and ID changes and it will work fine.

  • Insert in Tabular form does not work after the upgrade to APEX 4.0

    Hi all,
    Thx in advance for looking into the issue.
    We are running into following issue when we upgraded APEX 3.2 to APEX 4.02
    1) The Tabular form insert does not work.
    2) We are fatching the value of the Global variable APEX_APPLICATION.g_XXXX in a procedure and we get null for this value after submit for new row to be inserted.
    The tabular form was working fine in APEX 3.2.
    The Update and Delete works just fine.
    Any help in this regard is highly appreciated.
    Thx and regards,
    Mahesh

    Here is my workaround to get the ADDROW/SUBMIT working again if you have a legacy Tabular Form:
    1     PAGE ATTRIBUTES               
              JAVASCRIPT          
              FUNCTION AND GLOBAL VARIABLE DECLARATION          
                   var htmldb_delete_message='"DELETE_CONFIRM_MSG"';     
    2     DELETE BUTTON               
              ACTION WHEN BUTTON CLICKED          
              URL Target          change to
                   javascript:apex.confirm(htmldb_delete_message,'MULTI_ROW_DELETE');     
    3     ADDROW BUTTON               
              ACTION WHEN BUTTON CLICKED          
              Action           
                   redirect to URL     
              URL Target          
                   javascript:addRow();     
    4     PROCESS               
              APPLYMRU (activitated by button ADDROW)          
              CONDITION          
                   never or delete     
    5     PROCESS               
              ADDROWS          
              CONDITION          
                   never or delete     
    6     CHANGE PAGE TEMPLATE to e.g. THEME 13 One Level Tabs.               
    7     IF YOU WANT ADD FUNCTIONALITY TO GOTO BOTTOM OF PAGE AFTER ADDROW               
         1. In the page footer put <a name="bottom_of_page"></a>                
         2. Amend the action when the "ADD" button is clicked to scroll down to the new region by doing the following:               
         - edit "ADD" button               
         - Go to "Action when button Clicked" section               
         - Amend "URL Target" from               
         javascript:addRow();                
         to               
         javascript:addRow();window.location='#bottom_of_page' ;               
    regards
    PaulP

  • Sorting on date (date_popup2) in manual tabular form does not work

    Hi All,
    I created a manual tabular form (based on a collection) with 1 date_popup2 field in it. This field is defined in the query as follows:
    ,      apex_item.date_popup2( p_idx                   => 18
                                , p_value                 => c004
                                , p_date_format           => 'dd-mm-yyyy'
                                , p_item_id               => 'f18_' || lpad (rownum, 4, '0')
                                , p_item_label            => 'Start date'
                                ) as tf_br_start_date
    In the report attributes I marked this column to be sortable.
    However, in the page the sorting is not working. It looks like it's always sorted in the order  of the seq_id.
    Can anyone tell me how to solve this?
    Regards,
    René

    I'd call it a bug/missing feature.
    It appears that within a Basic report, sorting on a column created using APEX_ITEM.DATE_POPUP2() does not sort by date.
    I'd file this with Oracle Support and see what they say.
    Include a link to this thread and your workspace login information.
    I got something to work by: (probably not what you want.)
    using the C004 column directly. (I just added it to the SQL code)
    setting the column's attribute "Display As" to "Date Picker"
    setting the column's attribute "Number /Date Format" to DD-MM-YYYY
    I suspect: since you don't start with p_idx => 1, this column becomes "1" ==> g_f01
    MK

  • Use member on data form does not work

    Hello,
    "Use member on data" option does not work on composite Data Form. Business rule associated with composite form.
    Who is resolve this problem?
    Version hyperion: 11.1.2
    Thanks

    I don't have a solution for you but more steps to solve the problem
    You are ultimately on the right track in some ways but break it down into it's components.
    The problem could like in the business rule, the form connection, the variables, even the order of operations could all be in play.
    So I would strip this baby down to its bare bones then build it back up.
    1) Run the business rule. Each one separately and only after the previous ones is complete without variables and without touching the form
    Is it successful: go to 2
    If it isn't successful: trouble shoot the calc and or try running in EAS natively to see if that gives you ideas
    2) Run the calc outside the form but with variables included. Did it prompt you correctly.
    Is it successful: go to 3
    If it isn't. What is wrong with the variable
    3) Now attach it to the form but don't hide the prompts
    Still good go to 4
    4) hide the prompts and run on save
    And if it fails on step four then it's not picking up the right variables in the prompt. And you need to look at why it wouldn't grab the right item.
    This will isolate your problem for you and give you steps to fix it. Ultimately 99% of the time something did change in the structure for example that is impacting the calc. And when you isolate the problem this will reveal itself quite quickly.

  • HTML multipart form is not working in jsp page

    Hi
    i have jsp page, has a HTML from with file upload field , when i click the send button , nothing happened as if the button did not submit the form. ie the message at line 12 is not printed out.
    can any one help please.
    <%@ page errorPage="..\error\error.jsp" %>
    <%@ page pageEncoding="windows-1256" %>
    <%@ page language="java" import="javazoom.upload.*,java.util.*,java.sql.ResultSet" %>
    <jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
      <jsp:setProperty name="upBean" property="folderstore" value="<%=request.getRealPath("thuraya//uploads")%>"  />
    </jsp:useBean>
    <jsp:useBean id="dbc" class="mypackage.DBConnection" scope="session" />
    <!-- add news-->
    <%
    if(request.getParameter("addBTN") != null){
            out.println("addbtn");
            //do upload file + insert in database
             if (MultipartFormDataRequest.isMultipartFormData(request))
             // Uses MultipartFormDataRequest to parse the HTTP request.
             MultipartFormDataRequest mrequest = new MultipartFormDataRequest(request);
             String todo = null;
             if (mrequest != null) todo = mrequest.getParameter("todo");
                 if ( (todo != null) && (todo.equalsIgnoreCase("upload")) )
                    Hashtable files = mrequest.getFiles();
                    if ( (files != null) && (!files.isEmpty()) )
                        UploadFile file = (UploadFile) files.get("filename");
                        if (file != null)
                                            out.println("<li>Form field : uploadfile"+"<BR> Uploaded file : "+file.getFileName()+" ("+file.getFileSize()+" bytes)"+"<BR> Content Type : "+file.getContentType());
                                            String fileName=file.getFileName();
                                            String ran=System.currentTimeMillis()+"";
                                            String ext=fileName.substring(   ( fileName.length()-4),fileName.length() );
                                            file.setFileName(ran+ext);
                        // Uses the bean now to store specified by jsp:setProperty at the top.
                        upBean.store(mrequest, "filename");
                                            String title=request.getParameter("title");
                                            String content=request.getParameter("elm1");
                                            int x=dbc.addNews(title,content,file.getFileName(),2,1);
                                            if(x==1)
                                                     out.print("New Vedio has been addedd Successfully");
                                                      response.setHeader("Refresh","1;URL=uploadVedio.jsp");
                                                     else{
                                                      out.print("An Error Occured while adding new Vedio");
                                                      response.setHeader("Refresh","1;URL=uploadVedio.jsp");
                    else
                      out.println("<li>No uploaded files");
             else out.println("<BR> todo="+todo);
    %>
    <!-- end of add news-->
    <form action="" method="post" enctype="multipart/form-data" name="upform" >
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
        <tr>
          <td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
        </tr>
        <tr>
          <td width="87%" align="right"><label>
            <input name="title" type="text" class="rightText" id="title">
          </label></td>
          <td width="13%" align="right">9FH'F 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
              </textarea></td>
          <td align="right">*A'5JD 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input type="file" name="filename" id="filename">
          </label></td>
          <td align="right">5H1)</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input onClick="submit()" name="addBTN" type="button" class="btn" id="addBTN" value="  '6'A) .(1 ">
          </label></td>
          <td align="right"> </td>
        </tr>
      </table>
    </form>
    <!-- TinyMCE -->
    <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
            tinyMCE.init({
                    mode : "textareas",
                    theme : "simple",
                    directionality : "rtl"
    </script>
    <!--end of TinyMCE -->

    the problem is not because of java code insdie jsp page
    I have removed all things but the form and it is still not working
    here is the modified code:
    <!-- add news-->
    <%
    if(request.getParameter("addBTN") != null){
            out.print("addBTN");
    %>
    <!-- end of add news-->
    <form action="" method="post" enctype="multipart/form-data" name="upform" >
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
        <tr>
          <td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
        </tr>
        <tr>
          <td width="87%" align="right"><label>
            <input name="title" type="text" class="rightText" id="title">
          </label></td>
          <td width="13%" align="right">9FH'F 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
              </textarea></td>
          <td align="right">*A'5JD 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input type="file" name="filename" id="filename">
          </label></td>
          <td align="right">5H1)</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input name="addBTN" type="submit" class="btn" id="addBTN" value="  '6'A) .(1 ">
          </label></td>
          <td align="right"> </td>
        </tr>
      </table>
    </form>
    <!-- TinyMCE -->
    <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
            tinyMCE.init({
                    mode : "textareas",
                    theme : "simple",
                    directionality : "rtl"
    </script>
    <!--end of TinyMCE -->

Maybe you are looking for

  • Order Status Report (by CO Business Transaction

    Hi All, At present, we are using standard IO Reports that give output of all the Orders (even closed ones). User wants a Report that gives output (or in other words they can select) by "status" of the order (e.g. they don't want to see whatever happe

  • How to restrict access to sub folders (apart from Manual settings)?

    Hi, Is there any method to stop the  group traverse from main Folder to sub folder when user group has access to main folder? So that no need to give no access to sub folders manually for given group. Manual access settings have become tedious due to

  • Checking free space in tables across all the tables in database

    Hello , I have the below script which Gives the Free Blocks , Unused Blocks for the Tables of the Current User ( In which schema the script is run). How can this be modified so that it loops through all the schema tables in the database. ( Got this s

  • Everything is read only after reboot?!

    after installing arch and awesome it worked fine Ive done this before, however I have 4 harddrives 1 internal 3 external, I went to fstab and added the internal, did the uuid=numberwhatever, ntfs default 0 0 and it worked fine, but when I restarted I

  • How to send email with attachment

    Hi friends, I am using soa 11.1.1.7.0 Jdev 11.1.1.7.0 WebLogic:- 10.3 I want to generated email with attachment in BPEL 11g. Below is what i did in my bpel process Create simple hello world bpel process. In email activity below details are given <sco