Run the report with parameters when, select the Radio button

HelloW Guys

I run my report with the report parameter form now, I want to when I select a radio button and then check if my only the list value = 1 then run A report if my only the list value = 2 then launch report B

Report A and B contain the same parameter

What can I do?

I am writing this trigger button
DECLARE+.
al_button NUMBER; +
pl_id PARAMLIST; +
pl_id2 PARAMLIST; +
START to+.
IF: type = 'A' THEN+.
IF: RepType = "1" THEN+.
* pl_id: = Get_parameter_list ('repPara'); -create a parameter list * +.

IF not Id_null (pl_id) THEN+.
Destroy_parameter_list (pl_id); +
END IF; +

pl_id: = Create_parameter_list ('repPara'); +

Add_parameter(pl_id,'PARAMFORM',text_parameter,'NO'); +

* Add_parameter(pl_id,'style_from',text_parameter,:style_from); -passing style ano parameter * +.

* Add_parameter(pl_id,'style_to',text_parameter,:style_to); -passing style not as parameter * +.

* Add_parameter(pl_id,'date_from',text_parameter,:date_from); -passing date as parameter * +.

* Add_parameter(pl_id,'date_to',text_parameter,:date_to); -by the way that date as parameter * +.

* Add_parameter(pl_id,'category',text_parameter,:category); -passing as the parameter category * +.



Run_product (rapports,'E:\inventory\Dispatch\d_style_wise_dispatch_Stitching_report.rdf ',+)
asynchronous, runtime, the file system, pl_id, NULL); +
ELSIF: Reptype = "2" THEN+.
pl_id2: = Create_parameter_list ('repPara2'); +

Add_parameter(pl_id2,'PARAMFORM',text_parameter,'NO'); +

* Add_parameter(pl_id2,'style_from',text_parameter,:style_from); -passing style not as parameter * +.

* Add_parameter(pl_id2,'style_to',text_parameter,:style_to); -passing style not as parameter * +.

* Add_parameter(pl_id2,'date_from',text_parameter,:date_from); -passing date as parameter * +.

* Add_parameter(pl_id2,'date_to',text_parameter,:date_to); -by the way that date as parameter * +.

* Add_parameter(pl_id2,'category',text_parameter,:category); -passing as the parameter category * +.


Run_product (rapports,'E:\inventory\Dispatch\d_style_wise_dispatch_Delivery_report.rdf ',+)
asynchronous, runtime, the file system, pl_id, NULL); +
END IF; +
END IF; +
END; +

Need help


Concerning


Wasim Ismail

Dear Shahzab,

As the parameters except a report type are the same, you can accomplish this task by comparing the type of report just before Run_product.

You need to re - write the code as below:

DECLARE
al_button NUMBER;
pl_id PARAMLIST;

BEGIN
IF: type = 'A' THEN
IF: RepType = "1" THEN
* pl_id: = Get_parameter_list ('repPara'); -create a parameter list *.

IF this is Id_null (pl_id) THEN
Destroy_parameter_list (pl_id);
END IF;

pl_id: = Create_parameter_list ('repPara');

Add_parameter (pl_id, 'PARAMFORM', text_parameter, 'NO');
Add_parameter(pl_id,'style_from',text_parameter,:style_from);
Add_parameter(pl_id,'style_to',text_parameter,:style_to);
Add_parameter(pl_id,'date_from',text_parameter,:date_from);
Add_parameter(pl_id,'date_to',text_parameter,:date_to);
Add_parameter(pl_id,'category',text_parameter,:Category);

IF: type = 'A' THEN
IF: RepType = "1" THEN
Run_product (rapports,'E:\inventory\Dispatch\d_style_wise_dispatch_Stitching_report.rdf ',)
asynchronous, NULL to run, the file system, pl_id,);
ELSIF: Reptype = '2'
Run_product (rapports,'E:\inventory\Dispatch\d_style_wise_dispatch_Delivery_report.rdf ',)
asynchronous, NULL to run, the file system, pl_id,);
END IF;
END IF;
END;

Concerning
Fassi Fihri

Tags: Oracle Development

Similar Questions

  • form of execution of report with parameters in oracle 10 g

    DB and dev rel2 10g, xp
    Hi all
    I can run Report Builder of forms with this code:
    DECLARE
     
    v_repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    v_rep_status VARCHAR2(100);
    v_param VARCHAR2(200) := NULL;
    v_valor VARCHAR2(200);
    v_url VARCHAR2(2000);
    v_repserver varchar2(20) := 'myserver';
     
    v_report varchar2(100) := 'D:\REPORT_NAME.REP';
    v_PARAMETRO varchar2(100) := '';
     
    BEGIN
     
    v_repid := FIND_REPORT_OBJECT('MYREPORT'); -- report is an element from object navigator report
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_FILENAME, v_report);
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESTYPE, cache);
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESFORMAT, 'pdf' );
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESNAME, v_report);
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_SERVER, v_repserver);
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_OTHER, 'paramform=no '||v_PARAMETRO);
    v_rep := RUN_REPORT_OBJECT(v_repid);
    v_rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE v_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
    v_rep_status := REPORT_OBJECT_STATUS(v_rep);
    END LOOP;
    IF v_rep_status = 'FINISHED' THEN
    message(v_rep);
    message(v_rep);
    WEB.SHOW_DOCUMENT(v_url||'/reports/rwservlet/getjobid'||
    SUBSTR(v_rep, INSTR(v_rep,'_', -1)+1)||'?'||'server='||v_repserver, '_blank');
    END IF;
     
    END;
    but I want to run a report with the parameter, that's my problem.

    which I think is to create a list of parameters 'tmp' and add a 'p_ename' parameter that contains the value of a text element ": t_ename" who I want to do my report, then add the parameter list parameter to the
    run_report_object (myreport, "parameter list");
    then
    Adds a user setting with the name "p_ename" to my report in Report Builder and test it, but I did it and nothing happens, it runs the report with the data set, not only with the data from the text value of the element?

    How to solve this problem?
    Thank you

    SET_REPORT_OBJECT_PROPERTY (v_report_id, REPORT_OTHER, 'p_deptno =' |:dept.deptno |' paramform = no "");

    Change the line preceding with a bellows

    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no p_deptno='||QT||:dept.deptno||QT); --- remember to add QT at your declaration
    QT char(1):=''''; -- only at declaration section if you want to add single quote(')
    

    and place it just place of

    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_OTHER, 'paramform=no '||v_PARAMETRO);
    

    your first code posted

    I hope this works... :)

    Hamid

  • Dynamic action: need to refresh the area when changing value radio button

    Hello

    I use Apex 4.2 worm.

    I need to apply a dynamic action with the refreshment area.

    I need to refresh the area when I change the value of the radio button.

    To do this, I created dynamic action on the changes and select the refresh option to update the region.

    But it does not.

    If you want to check, then see below for workspace:

    Workspace: APEX_ISSUE

    User name: [email protected]

    Password: kaushik1@34

    Please use Page no 5.

    Thank you

    Hi Maxence,

    CORINE wrote:

    Hi Kiran

    Thank you very much.

    It works very well.

    One more I need help, I need to scroll in the radio button because I'm showing type of booking successively from top to bottom.

    How can I set scrolling in the option box.

    Thank you

    What do you mean by scrolling in the option button?

    I applied a horizontal scrolling for the region containing radio buttons by using the suite in the attributes of the region:

    style="overflow-x:scroll;"
    

    If you apply the change just of vertical scrolling x to y.

    I hope this helps!

    Kind regards

    Kiran

  • Firefox crashes in typing or by clicking check box or the radio button, even with all the plugins / extensions removed. Check with many types of malware scanners.

    Firefox crashes in typing or by clicking check box or the radio button, even with all the plugins / extensions disabled, then deleted. Sometimes it hangs for five minutes. I checked the PC with several types of scanners of evil-ware, but none to be found. All hidden and deleted cookies, all DELETED & extension plugins. Remove all instances of Firefox PC and registry, then restored to bookmarks. The only thing that I did not is to remove and reinstall not my favorites.
    Windows Vista (yes I know) and FF 13.0.1

    Try disabling hardware acceleration in Firefox.

  • Average of the radio button selections, but exclude the equation 0

    This should be simple.  I've seen a lot of posts which should have led me to a Twitter.com response, but I still have trouble.

    Here we go:

    (1) I have 9 groups of radio buttons named: GMR1. 1_Score; GMR1. 2_Score; GMR1. 3_Score; GMR1. _Score 4; GMR1. 5_Score; GMR1. 6_Score; GMR1. 7_Score; GMR1. 8_Score; GMR1. 9_Score

    (2) each group of option buttons buttons 4 with the same values in each group:

    • "NA" where I put the Radio button choices under the Options tab = 0
    • "Fair" where I put the button choice Radio under the Options tab = 1
    • 'Good' where I put the Radio button choices under the Options tab = 2
    • 'Great' where I put the Radio button choices under the Options tab = 3

    Thus, the shape looks like a little at:

    GMR1. 1_Score

    • NA
    • Just
    • Good
    • Large

    GMR1. 2_Score

    • NA
    • Just
    • Good
    • Large

    and so on.  The user chooses a 1 option for each question.

    My goal is to get an average that excludes the selections of NA.  Compared with this average, I want to assign the specific text to appear.

    If I did it in 2 steps in excel, my formulas could look like:

    C7 = SUM (range) / COUNTIF (range, "> 0")

    = IF (C7 < 2, "overall score is fair, IF (C7 < 3, 'Overall rating is good', IF (C7 > = 3,"overall score is great!")))

    I think to that the following should work to count all selections does not match "NA" by excluding getField ("GMR1." + i + "_Score") .value == 0 a counter like the one below, but it is not!

    (The here's how I'm playing the part of the excel formula COUNTIF)

    ****************************

    var counter = 0;

    for (i = 0; i < = 9; i ++)

    {

    If (getField ("GMR1." + i + "_Score") .value == 1) counter ++;

    If (getField ("GMR1." + i + "_Score") .value == 2) count ++;

    If (getField ("GMR1." + i + "_Score") .value == 3) counter ++;

    }

    If (counter > 0) {}

    Event.Value = counter;

    } else event.value = "";

    ****************************

    The Sum (range) is simple enough using the "value is the sum "on the calculation of the properties of the text box tab.» But if I wanted, it's all happening in a block of code, then that won't work for me.

    ****************************

    The assignment of text based on the value average; I haven't got there yet.

    ****************************

    Help, please.  There must be a way to do all this in a fairly simple code that is simply eluding me.

    See if to change this instructs the following assistance:

    for (i = 1; i< 10;="" i++)="">

    It should have been an error in the JavaScript (Ctrl + J) console which provides clues as to what is wrong.

  • Multiple choice quiz slides - long delay when you click on the radio button

    Using Captivate 5.5 and slides of quiz of multiple choices, when previewing the project, sometimes there is a delay after clicking on a choice. The delay is sometimes so long that the learner may feel like they are not able to select a radio button option. Does anyone know a way to speed up the appearance of the dot that appears when a learner clicks on a radio button?

    Hi Jay,.

    I would have asked to see the chronology. In a blog I explains the features of the glide of the Question and think that you can't find the answer here:

    Question Question slides

    Short answer: on the timeline, you'll see a suspension point, which is used twice for the slides in question (see the two-step process in blog). Default setting is to have only one break point at 1, 5secs for a default slide duration of 3secs. The actions on the success and after the last attempt (see properties Quiz, accordion Action) are both set to "continue". This means that after the second stage when you expect to proceed immediately to the next slide, the reading head is just to continue until the end of the slide (length by default = 1.5secs). Wondering if you perhaps make longer editing.

    What is possible: drag the point of suspension on the Timeline, close to the end of the chronology of the question slide. Or set the action to 'Go ├a next page' instead of continue.

    Not sure if it will help because I do not see the timeline.

    Lilybiri

  • How to check if the radio button is selected?

    Hi, I know how to select the radio button, but the question is - how to check if this radio has been selected?

    to select the option button, I use:

    _root.rb_choice_1.selected = true;

    And I thought that checking its status should be similar, but it does not;

    {if (_root.rb_choice_1.Selected)}
    trace ("delivering choice 1");

    }

    and this does not work, too:

    if(_root.rb_choice_1.Selected == true) {}
    trace ("delivering choice 1");

    }

    What I am doing wrong?

    This will work.  Just change allowed to selected if you are using the correct property.

  • How to intercept the radio button was selected and its data?

    Good day everyone,

    Need help on this one. This is my first post about components, specifically radio button.

    Here goes my problem, I have several groups of option button. And I want to follow the radio button on each group chose, and I'm going to get the data and pass it to a function loadVariablesNum.

    Thank you

    Any help is appreciated.

    You did not answer to my second question.  Is the button in the same timeline as the mc of content?  And now that you mention the function of the buttons, where you use this code of mine you said gives 'undefined '?

    It will be to your advantage to create a new file to resolve this problem when you have just a few radio buttons and another normal button that uses this code blue.  Once you have that working, you should be able to adapt more easily in your scenario.

  • code to select the radio button according to requirement

    I need a code that selects a certain radio button according to requirement...
    also how disable the option button using codes...

    Hello

    To select a particular option button, assign the value of this radio button in the Radio button group.

    And to disable a particular option button, write,

    SET_RADIO_BUTTON_PROPERTY('', '', ENABLED, PROPERTY_FALSE);
    

    Kind regards

    Manu.

    If my answer or the answer to another person has been useful or appropriate, please mark accordingly

  • Deactivation / activation of the Radio buttons

    Hi all

    I develop application in Oracle Application Express 5.0.0.00.31.

    In my page, I created a tabular form by using the query

    SELECT

    "ROWID",.

    'EMPNO ',.

    'ENAME ',.

    'STATUS ',.

    "ACCEPT."

    FROM "EMP".

    STATUS and ACCEPT two columns are type of radio button with a static query as

    STATUS: STATIC2: new; N, entitled; A, completed; D

    ACCEPT: STATIC2: accept; F, rework; R

    My requirement is

    1. When STATUS =has ' this time then ACCEPT column boxes must be activated. (I)

    2. another in('N','A') of STATUS then ACCEPT column buttons Radio must be turned off

    Note: Later I hide status column. Accept that column must be specified. Based on the value of the STATE Accept column column

    Radio buttons work

    I put my sample application in

    https://Apex.Oracle.com/pls/Apex/f?p=28020

    workspace: myspace77

    user: comments

    password: apex_demo

    -What someone will help me in this regard?

    Thanks in advance.

    Kind regards

    Colette

    Hi Colette.

    Check your Application-> Page 1 28020. I've implemented the toggle the radio button.

    Here are the steps to accomplish the toggling the buttons in table form:

    • Added STATUS column with alias STATUSD in the form of your table.
    • Added real action "Run the Code JavaScript" in your dynamic action "updating of the form: turn radio buttons:

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $('th#STATUSD').hide();
    $('td[headers="STATUSD"]').hide();
    $('td[headers="STATUSD"]').each(function() {
        var row_val = $(this).text();
        var row = $(this).closest('tr');
        if (row_val == 'N' || row_val == 'A') {
          row.find('td[headers="ACCEPT"] input[type="radio"]').attr("disabled", true);
        } else {
          row.find('td[headers="ACCEPT"] input[type="radio"]').removeAttr("disabled");
        }
    });
    

    Assigned items: no

    Kind regards

    Kiran

  • How to show or hide the region of the shuttle during the click on the radio buttons?

    Hello

    I'm new to JDeveloper. Here is my requirement.

    1. create 2 radio buttons: Yes and no and default displays "" selected radio button.

    2. create a region of shuttle with select query in VO.

    Query is:

    Select 'No group' for_user, for_pkg double null

    Union

    Select "Company" for_user, for_pkg "SEGMENT1" double

    Union

    Select 'Rental' for_user, for_pkg 'SEGMENT2"double

    Union

    Select 'Cost center' for_user, 'SEGMENT4' double for_pkg

    Union

    Select 'Project' for_user, 'SEGMENT5' double for_pkg

    Union

    Select "Intercompany" for_user, "SEGMENT8" for_pkg of the double

    order by nulls first for_pkg

    3. initially hide the region of the shuttle during the loading of the page.

    4. click on the radio button 'yes', display area of the shuttle with values at the head of list of query VO and empty list leak.

    5. new click on the 'no' radio button, he must hide region and so screen shuttle shuttle dynamically according to the selected option button.

    But my problem is I am able to hide area shuttle when the page loads at the beginning and after that, when I'm clicking 'Yes' radio button, is just to display area shuttle empty without value in the main list and once when I'm clicking 'No' radio button, it should hide area shuttle but he's not hiding. I used the RPP to show or hide the area Shuttle under certain conditions. I use JDev 10.1.3.3.0 version as we Oracle EBS version 12.1.2 in our society.

    Please find the attached draft and suggest me proper with examples of sample approach.

    Monika,

    I tried to get this working in the lower version of Jdeveloper and looks like it works.

    Can you make the change below and see what happens.

    1. modify your query to VO as below: (I replaced null with SEGMENT0)

    select 'No Grouping' for_user, 'SEGMENT0' for_pkg from dual
    union
    select 'Company' for_user, 'SEGMENT1' for_pkg from dual
    union
    select 'Location' for_user, 'SEGMENT2' for_pkg from dual
    union
    select 'Cost Center' for_user, 'SEGMENT4' for_pkg from dual
    union
    select 'Project' for_user, 'SEGMENT5' for_pkg from dual
    union
    select 'Intercompany' for_user,'SEGMENT8' for_pkg from dual
    order by for_pkg
    

    2. place VO execution to the processFormRequest:

        public void processFormRequest(OAPageContext pageContext,
                                       OAWebBean webBean) {
            System.out.println("In process Form Request");
            super.processFormRequest(pageContext, webBean);
            OAApplicationModuleImpl appModule =
                (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
            String eventParam = pageContext.getParameter(EVENT_PARAM);
            System.out.println("eventParam: " + eventParam);
            if ("showHideShuttle".equals(eventParam)) {
                //  appModule.invokeMethod("deletetrailing");
                System.out.println("Inside If");
                OAMessageCheckBoxBean messageCheckBoxBean = (OAMessageCheckBoxBean)webBean.findChildRecursive("checkBoxBean");
                System.out.println("messageCheckBoxBean : " + messageCheckBoxBean);
                String messageCheckBoxBeanVal = (String)messageCheckBoxBean.getValue(pageContext);
                System.out.println("messageCheckBoxBeanVal: " + messageCheckBoxBeanVal);
    
                if ("Y".equals(messageCheckBoxBeanVal)) {
                    OAViewObjectImpl shuttleVO1 =
                        (OAViewObjectImpl)appModule.findViewObject("ShuttleVO1");
                    if (shuttleVO1 != null) {
                        shuttleVO1.setWhereClause(null);
                        shuttleVO1.setWhereClauseParams(null);
                        shuttleVO1.executeQuery();
                        System.out.println("Executed Query : " + shuttleVO1.getQuery());
                    }
                    OAViewObjectImpl shuttleVO2 =
                        (OAViewObjectImpl)appModule.findViewObject("ShuttleVO2");
                    if (shuttleVO2 != null) {
                        shuttleVO2.setWhereClause("1=2");
                        shuttleVO2.setWhereClauseParams(null);
                        shuttleVO2.executeQuery();
                        System.out.println("Executed Query1 : " + shuttleVO2.getQuery());
                    }
                }
                String[] name = { "RenderAttr1" };
                String[] val = { messageCheckBoxBeanVal };
    
                Serializable[] params = { name, val };
                Class[] paramTypes = { String[].class, String[].class };
                appModule.invokeMethod("setXXCustomPVOValues", params, paramTypes);
    
            }
    
        }
    

    3. move Spel link shuttle Bean for the region of header above.

    Some useful links for the shuttle Bean:

    Technology blog based in Java of Sushant: 13. Area of application OFA shuttle

    Framework OA Blog: control of the shuttle as part of OSTEOARTHRITIS

    See you soon

    AJ

  • Simple form: just 1 text field and the radio button 2...

    I have a question about the Muse Widgets when it forms.  I have a very simple interface, I want to try to apply an additional tax of an amount of entry; I want to give the user the ability to select Add fresh or not.

    The only widget I found on current Muse was a Simple Contact form emails. I've stripped down to 1 input text, group 1 radio. I exported html code, added in the onclick event in the HTML for the radio buttons perform the calculation of the additional tax.  On the action of the form = "xxx", muse creates a few php files for validation and finally sending the form as an email, I have a test in the form e-mail address.  I can stub out that php and put in my own actions to waive the sending of the email.  I have 2 questions: ONE QUESTION) on the level of code there is a control of the syntax form fields (corresponds to the entered text input, is a selected radio button, etc.). SimpleContact form comes with 3 < p > < / p > due to the action of the form = "xxx" statement. The 3 lines correspond to the errors, which is a generic "server has encountered a problem." (something like that).  Does anyone know what code is to identify the error and how it is returned to the call statement? MuseUtils.js?  It is not in the action = "xxx" php referenced file.  It maybe too much, I'm interlacing syntax, semantic validation on a form after the muse html export.  Second QUESTION) is before all this... it all simple forms of 3rd party, I can use (Group 1 radio 1 text, drop-down list), which I can integrate Muse?  Looked at Muse-themes.  Don't have a complete package of e-commerce, yet.  (This is for a non-profit and trying to reduce recurrent costs).  Sorry, this is so wordy, appreciated by any direction.

    Answering the second question, you can check out these alternatives:

    http://musewidgets.com/search?q=form

    Thank you

    Sanjit

  • Text in the radio button field triggers?

    I'm sure it is a simple and I just have a moment on Monday, but I can't seem to find it by searching on the forum...

    I have created a pdf form and I want an option button to automatically check when someone types the text in a certain area - how can I do this?

    I would be put in place so that none of the fields in each section can be filled-in unless one of the radio buttons is selected. If space fields are displayed if this option button is selected and the same thing with the hull of the Pre-Built program fields. You can do it in show/hide fields, and you would also want to reset the fields when they are shown/hidden. Coding can be greatly simplified if you use a field hierarchical naming system for the two groups. For example, fso.width, fso.depth, fso.area, fso.a$, etc. and pss.width, pss, depth, etc.

    You can then hide all fields selection of pre-designed Shell Scheme programs and reset and display all the fields only area and reset them with the following:

    Hide all fields selection of pre-designed Shell Scheme programs and reset the

    getField("pss").display = display.hidden;

    resetForm (["SSP"];

    Hide all fields only space floor and to reset

    getField("fso").display = display.visible;

    resetForm (["Fos"];

    This is not complete, but should help you get started. Note that you can set up A$ fields so that they are automatically calculated according to the value of the Total m2 field, so that the user doesn't have to come in and maybe make a mistake. You can also configure the computed fields to display a value only if the width and depth fields are completed.

  • How to use the Radio button

    Hello

    In my form, I want the radio button.

    On the selection of this radio button user can change the status of "QC" for "STOCK".

    Initially, when he disabled status should be "QC".

    How to put this in my form guide me please.


    Maury

    Make a group of Radio (say RADIO_GROUP16) with 2 buttons radio (mean RADIO_BUTTON17 and RADIO_BUTTON18).

    Specify the initial value of Radio group to U
    Specify the value of Radio to R and U buttons

    and in the status field to write after outbreak.

    If: block. RADIO_GROUP16 = 'U' then
    message ("can not update status '");
    raise FORM_TRIGGER_FAILURE;
    end if;

    I guess that when you select the second radio button (with the 'R' value) then only you would be allowed to change the status.

    Please check the answer correct/useful if th answer was helpful

  • check the radio button does not submit the form?

    Hello


    Your name:
    E-mail address:
    Contact no.:
    Topic:


    Message:




    Can not read the image? Click here to refresh

    I have a form on my site,

    and all his work.

    But I noticed that the information of the radio button

    is not sent?

    may an advise why?

    Also, can someone suggest how I can configure the name where the email?

    as when the email is downloaded, it come with my Web Host/Server name?

    Thank you

    < Center > < form name = 'contact' method = "POST" action = "form_process.php" >

    < table width = "306" border = "0" cellpadding = "0" cellspacing = "0" >

    < b >

    < td width = "93" height = "28" valign = "top" > your name: < table >

    < td width = "213" > < input name = "name" type = "text" >

    < table >

    < /tr >

    < b >

    < td height = "28" valign = "top" > Correo electronico: < table >

    < td > < input name = "email" type = "text" > < table >

    < /tr >

    < b >

    < td height = "28" valign = "top" > Contact No.: < table >

    < td > < input name = "contact" type = "text" size = "24" > < table >

    < /tr >

    < b >

    < td height = "85" valign = "top" > subject: < table >

    < td > < label > < input name = "category" type = "radio" value = "Appointment" / > appointment < / label > < br / >

    < label > < input name = "category" type = "radio" value = "Schedule" / > opening hours < / label > < br / >

    < label > < input name = "category" type = "radio" value = "Products" / > Products < / label > < br / >

    < label > < input name = "category" type = "radio" value = "Other" / > other < / label > < table > < /tr >

    < td height = "28" valign = "top" > Message: < table >

    < td > < textarea name = "message" = "24" cols rows = "5" > < / textarea > < table >

    < /tr >

    < tr > < td > < table > < td height = "85" valign = "top" >

    < br / > < img src = "captcha_code_file.php? rand = <?" PHP echo rand();? ' > '.

    ID = "captchaimg" >

    < br / > < label for 'message' = > enter the above code here: < / label >

    < br / > < input id = "6_letters_code" name = "6_letters_code" type = "text" >

    < br / > < small > can not read the image? Click on < a href = "" javascript: refreshCaptcha(); "> here < /a > to update < / small >"

    < table > < /tr >

    < b >

    < td > < table >

    < br / > < td valign = "top" align = "center" > < input type = "submit" value = "Submit" name = "submit" > < table >

    < /tr >

    < /table >

    < / form > < / center > < br / > < table >

    OK - I see what is happening. The script that determines the content of captcha also sets the session variable. To read this variable on the processing page, you need to enable sessions there too. -Change

    If (isset($_POST['submit']))

    on this subject.

    {if (! isset($_SESSION))}

    session_start();

    }

    If (isset($_POST['submit']))

    If there is an error of Captcha, you will also need to print that the visitor sees an indication that they do not have this right. There are several ways to do it, but probably the easiest is just to send them to the test to white form with an error message, so change that-

    Header ('Location: thank_you.html "");

    }

    on this subject.

    Header ('Location: thank_you.html "");

    } else {header('Location:captcha_error.html') ;}

    then create the captcha_error.html page that explains what that went wrong, with a link to the page of the form.

    See if that helps.

Maybe you are looking for