Sorting in Folder block of customer entry form

In Customer Entry form, the folder block ORG_NS_FIND_FOLDER is being sorted on org_per_number,customer_number.
We are customising this form and would like to override the default sorting and use our sort columns.
Can anyone please let me know where is the code that is doing this sorting on org_per_number,customer_number. I want to replace it with mine.
Thanks in advance
Murthy

It would be good if anyone atleast let me know how to provide the column names for sorting my folder block

Similar Messages

  • Folder Functionality in custom form

    Does anyone know the exact steps to add Folder functionality to a registered custom form in Oracle OE? I see all the folder items in the appstand.fmb but don't what steps to take. Is it even possible to do this?
    Also, how do I add a "folder set" in the application.
    Thanks
    null

    Hi,
    APPFLDR contains all the packages that enable folder blocks.
    But Oracle Applications does not support use of this library for custom development.
    You can go through the Oracle Applications user guide under the topic called
    "Customizing the presentation of data" for adding the folder set.
    Bye
    Srinivasalu.
    null

  • OAM In Custom Login Form: Is there a way to get the user that was blocked?

    Hi
    I'm creating a custom login form and I need to capture which user was blocked if I get an OAM-5 error code. There is no parameter that specifies which user was filled and I can't capture it before because the login page post directly to the OAM Server.

    Hi
    I'm creating a custom login form and I need to capture which user was blocked if I get an OAM-5 error code. There is no parameter that specifies which user was filled and I can't capture it before because the login page post directly to the OAM Server.

  • Clicking on LinkTitle in list opens allitems instead of custom application form

    Hello, This question is pertaining to SharePoint 2010.
    I have one list which has two content types. We have modified the detault forms (new,edit and display) of each content type to its individual custom application pages. We have done this through coding.
    SPContentType CT1= requestsList.ContentTypes["CT1"];
    //Change Edit and edit URL to custom application page
    CT1.NewFormUrl = "_layouts/folder/customnewapplicationpage.aspx;
    CT1.EditFormUrl = "_layouts/folder/customeditapplicationpage.aspx;
    CT1.DisplayFormUrl = "_layouts/folder/customdisplayapplicationpage.aspx;
    //Delete the default from to enable custom application pages.
    CT1.XmlDocuments.Delete("http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url");
    web.AllowUnsafeUpdates = true;
    CT1.Update();
    list.Update();
    And same update for the other content type. Everything works well.
    When we click on new, custom new form opens, when we click on edit, custom edit form opens, when we click on view item, custom view form opens for respective content type. The problem is when we click on linktitle field value in allitems.aspx, it opens up
    allitems.aspx page instead of opening display form as model dialog which is does when we click on view item by either selecting in ECB menu or from ribbon.
    On custom application pages, I am using SharePoint:SaveButton to save values so that I do not need to write down the code.
    I just tested one thing that, if we have our custom button and if we write traditional way to inserting list item into the list with specifying ContentTypeId in list item, then this problem does not appear. This is when SharePoint:SaveButton is clicked and
    item is saved, at this time problem appears. I prefer going with SharePoint:SaveButton as I have more than 70 fields on the form and do not want to write a code to set values for 70 fields by doing SPList.AddItem()
    According to me, SharePoint:SaveButton is saving list item inside folder because when we update the view and set to show items without folder, I cannot see list items saved using SharePoint:SaveButton click. But when i switch back to show items with
    folder, all items appear. This may be the reason when I click on LinkTitle directly on that hyperlink, it opens up AllItems.aspx with FolderCTId={} as one of the query string.
    Any pointers would be highly appreciated.

    Hi,
    We can do as follows:
    1. Change the URL of Title field to the URL of custom application page using JavaScript.
    2. Create a calculated column and set formula: ="<a href='"&UrlFieldName&"'>"&Title&"</a>", then we can use it as a “Title” column.
    http://sharepoint.stackexchange.com/questions/58954/link-title-in-list-to-value-in-url-column
    3. If you want to customize list form and use  SharePoint:SaveButton control to save the data, the following articles for your reference:
    http://ariwibawa-sharepoint.blogspot.com/2012/12/make-addeditview-custom-form-and-custom.html
    http://thesharepointdive.wordpress.com/2012/03/20/list-forms-deployment-for-sharepoint-2010-part-1-of-4/
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Non-Database Item Sort Using Multiple Block Values

    I need to sort the result set of a block based on a calculated item. I found several messages addressing this, however they all speak to using the columns from within the same block as input variables to the function used to calculate the non-database column value.
    My problem is that I need to use values from a different block as input variables. I have not found a way to use them since I need to use the full block.column syntax. Forms does not like this and always thows an error right at the period(.). I need to do this because the column names are the same in each block. the function compares the column values and changes the record instance background a different color based based on how many of the column pairs match. Each block is mutually exclusive from each other and doing a accurate join is not really possible.
    I tried renaming the block column name to something unique, however I get a variable not bound error when I try to use it in the order by function even though their values are in the top most block.
    For Example:
    First Block. Contains a list of cases that need to be worked because the automated process could not find a valid provider based on the values received. This list is created by a background process.
    Table: CASE_MAIN
    TIN
    CASE_ID
    FCLTY_CM
    MEDICARE_CM
    Unrelated Second Block (i.e., no join). It uses the TIN value in the first block to get a list of all of the providers for the TIN associated with the Case so that a person can assign the correct Provider to the case (A TIN has a provider and address associated with it). As a result there is no link to the results of this table and the CASE_ID. That's what the users needs to do manually
    Table: PROVIDER_MAIN
    FCLTY
    MEDICARE
    I need to take the values in the first block and compare them in the second block so that I can recolor the background based on matching logic in the function below.
    order by clause = get_vals( ''||:FCLTY_CM||''
    ,''||:MEDICARE_CM||''
    ,fclty
    ,medicare) desc
    I am able to do the coloring within the form easily, however I need to order them by how many values match exactly so the ones that match to most value pairs show at the top. Hence ordering by the result of the function. I return a 0,1, or 2 based on the matches. 0 for none and 2 for both.
    I cannot create a view because the sources of the information I need to compare are NOT related to each other, yet. that is what the application is designed to do. I have a case without a
    provider assigned, but I have a tax id number that possible identifies the provider. I use this TIN to query the provider table for all of the possible providers under that TIN. As a result there is no link between the case information and provider information. The goal is to get this list compare the values from the target information and put the most likely matches on top, with
    the ones with the most matches first. I can create a function many ways that takes in various parameters. For example Case ID and Provider Id and query the records in subselects
    individually like so;
    select count(*)
    from (select fclty, medicare from case_main where case_id p_case_id) cm
    ,(select fclty, medicare from provider_main where prv_id = p_prv_id) pm
    where cm.fclty = pm.fclty
    and cm.medicare = pm.medicare
    If the number is greater than zero I know I have a match with that provider and I can sort accoringly. I can also pass in the target information from case_main and the provider inforation from provider_main and then do an if/then statement for comparing. Then I can use this function to create a column value for each record and then use the same reference to the function in the order by clause to order by that value.
    The problem comes in trying to reference the case_id or target information from a different block than where the fucntion needs to be used. I get a variable bound not error message. What am I missing here. Why can I not reference a uniquely named block item as a input variable to a function in a different block? Does Forms first figure out what it needs to retrieve and then executes the SQL for each block in isolation, or does the first block's result set get retrieved, then the second, third, etc. Based on the message i am getting I would suspect the former since it appears their is no value in subsequent blocks. If so is there anyway around this? thanks.

    Don't quite understand your problem completely. But this might help. I sure hope your Provider_Main is a single-record block ...otherwise, how would you supply a list of values of FCLTY and MEDICARE to the function that does the sorting? Be awere, too, that the order-by is processed by the server, and NOT by Forms.
    Assuming it is a single-record block, you can put the values into parameters:
    :Parameter.Fclty := :Provider_Main.Fclty;
    :Parameter.Medicare := :Provider.Medicare;
    Execute_Query;
    And your order-by clause would be
    get_vals( ''||:FCLTY_CM||'',''||:MEDICARE_CM||'',
    :Parameter.Fclty,
    :Parameter.Medicare) desc
    By the way, the first line of your order-by looks strange. Shouldn't it be:
    get_vals( FCLTY_CM || ',' || MEDICARE_CM,
    or even better, get_vals should take in 4 parameters:
    get_vals(Fclty_cm, Medicare_cm, :parameter.Fclty, :parameter.Medicare)

  • How to populate new record on data entry form based on search results?

    Hello,
    I'm new to jdeveloper im using version 11.1.2.1.0.
    Usually Im using forms 10g.
    I created search panel with table and its working but problem is how to transfer/populate all the field value according to that search result to New data Entry Form
    by clicking the table record or a button.
    Given :
    TABLES,EO
    1. PatientMasterIndex
    2. PatientTransactionMaster <<---- master
    3. PatientTransactionDetail <<-- detail relation
    Here the scenario,
    After Search of any patient, when i clicked one or more patient (which Jdeveloper allow multi select on jtable) on the table record it should automatically transfer or copied to the text field, i want to show on the form of PatientTransactionMaster like PatientNumber,PatientInsuranceNumber etc. to be save on db as new record, also non database field for view only like patient Name,address,age.
    IN forms i can do that by :PatientTransactionMaster.PatientNumber := :blocksearch.PatientSearchNumber ,etc.....
    or an item trigger to populate the said PatientTransactionMaster block. ( select .... into :PatientTransactionMaster.PatientNumber,etc....)
    Any suggestion,links,sample is highly appreciated.
    Sorry for my english.
    Thank you very much

    Hi,
    Do you want to create a detail record that will include some values from your master record??
    Or do you want to create a record with values from your Search criteria, only in the case you do not have any results?
    if it is the second case.
    When do you want to do that? After a press of button? or immediately?
    In general you have to handle the values from search criteria.
    Additionally, if you use ViewCriteria, you have to have bind variables for your search criteria that you will want to use.
    So in general, you have to know the values by using bind variables, understand that the query has no results (This can be done in many ways, depending on your implementation. if you are using a button, you could make a disable condition with iterator.estimatedRowCount property.)
    Perform the insert operation with the values from the bind variables.
    Regards,
    Dimitris.

  • Custom tabular form for multi-row not saving data

    Ok, before anyone asks, yes, I did read the how-to:-)
    I have a custom tabular form, which I did cause I need to use popups and the popups that you can use in the wizard tabular form does not display the text but rather the value underneath it.
    It returns data rather nicely and when I go and update values I can tell it is changing the fields underneath. I put a process in that will display the values in text fields on the form (for one row only) and I see them changing from what is already there and with the proper values.
    However, when I do that the data that is displayed then gets reverted back to what it was previous to the update but reports that the process was successful.
    I have also tried to insert but that is basically doing the same thing. Can anyone guide me.
    SQL to generate the tablular form...
    SELECT x.sak_release_db
    , x.sak_object
    , x.sak_release
    , x.sak_participant
    , x.sak_csr
    FROM
    (SELECT htmldb_item.hidden(1,sak_release_db) sak_release_db
    , htmldb_item.popupkey_from_query(2, sak_object,
    'SELECT b.nam_schema||''.''||a.nam_technical as table_name , b.sak_object
    FROM system_object a
    , database_table b
    WHERE a.sak_object = b.sak_object') as sak_object
    , htmldb_item.hidden(4,sak_release) sak_release
    , htmldb_item.popupkey_from_query(5, sak_participant,
    'SELECT nam_first || '' '' || nam_last as name, sak_participant FROM co_participant') sak_participant
    , htmldb_item.popupkey_from_query(7, sak_csr,
    'SELECT external_id|| ''-''||id_split as co, sak_csr FROM co') sak_csr
    FROM release_db_xref
    UNION ALL
    SELECT htmldb_item.hidden(1,NULL) sak_release_db
    , htmldb_item.popupkey_from_query(2, NULL,
    'SELECT b.nam_schema||''.''||a.nam_technical as table_name , b.sak_object
    FROM system_object a
    , database_table b
    WHERE a.sak_object = b.sak_object') as sak_object
    , htmldb_item.hidden(4,NULL) sak_release
    , htmldb_item.popupkey_from_query(5, NULL,
    'SELECT nam_first || '' '' || nam_last as name, sak_participant FROM co_participant') sak_participant
    , htmldb_item.popupkey_from_query(7, NULL,
    'SELECT external_id|| ''-''||id_split as co, sak_csr FROM co') sak_csr
    FROM dual) x
    Process to verify that I have the correct global fields: (Type: PL/SQL anonymous block, Process Point: On Submit - After Computations and Validations)
    begin
    :P3_2 := replace(htmldb_application.g_f02(1),'%'||'null%',NULL);
    :P3_5 := replace(htmldb_application.g_f05(1),'%'||'null%',NULL);
    :P3_7 := replace(htmldb_application.g_f07(1),'%'||'null%',NULL);
    end;
    Process to do the insert/update. Note, I hardcoded the value in the where clause but I was originally using the global value for g_f01 (i also tried putting a commit in there for fun) (Type: PL/SQL anonymous block, Process Point: On Submit - After Computations and Validations):
    -- Update the RELEASE_DB_XREF table
    FOR i IN 1..htmldb_application.g_f01.count
    LOOP
    IF htmldb_application.g_f01(i) IS NOT NULL THEN
    UPDATE release_db_xref
    SET sak_object = replace(htmldb_application.g_f02(i),'%'||'null%',NULL)
    , sak_participant = replace(htmldb_application.g_f05(i),'%'||'null%',NULL)
    , sak_csr = replace(htmldb_application.g_f07(i),'%'||'null%',NULL)
    WHERE sak_release_db = 22;
    ELSE
    IF htmldb_application.g_f02(i) IS NOT NULL THEN
    INSERT INTO release_db_xref
    (sak_object
    ,sak_release
    ,sak_participant
    ,sak_csr)
    VALUES
    (replace(htmldb_application.g_f02(i),'%'||'null%',NULL)
    ,htmldb_application.g_f04(i)
    ,replace(htmldb_application.g_f05(i),'%'||'null%',NULL)
    ,replace(htmldb_application.g_f07(i),'%'||'null%',NULL));
    END IF;
    END IF;
    END LOOP;

    Florian,
    Checkboxes are different from other HTML form items. When you have a text box for example, there's always a value send to the server when submitting. Even if that value is NULL. When you have a checkbox however, you only get the value if the checkbox is checked. It's not posted to the server when it is not checked. That's the general behavior of HTML forms and not specific to Oracle HTML DB.
    When working with tabular forms in HTML DB, you can access your form values using the htmldb_application.g_f0x arrays. Now if you have for example 10 rows in your form, then you'll get ten elements in your array for text boxes, select lists, etc. For checkboxes however you'll only get as many elements as you have rows checked. If I read your update and insert code correctly, you're trying to use the checkbox arrays the same way you use the arrays based on other item types. My recommendation would be to use Yes/No select lists instead of checkboxes or at least use select lists initially to get it working and then work on properly processing the checkboxes.
    Some general information about working with checkboxes in tabuar forms can be found here:
    http://www.oracle.com/technology/products/database/htmldb/howtos/checkbox.html#CHECKBOX_IN_REPORT
    Hope this helps,
    Marc

  • Error in Oracle Sample Custom Element Form FORM_LINK_URL

    Hi All,
    I've found the Oracle Sample Sites project very helpful in quickening the process of building new sites.
    http://blogs.oracle.com/ecmalerts/entry/site_studio_10gr4_sample_site
    However, the Element Definition ELDEF_CUSTOM_LINK (which calls the Custom Element Form FORM_LINK_URL) seems to have a problem with 11g which I've not yet worked out.
    When trying to use in Contribution Mode, the Custom Form locks the whole Contribution page and no elements are able to be accessed.
    There are no JavaScript errors and no resource loading errors (I've checked everything in Firebug).
    I suspect that possibly the API has changed since these were written... Has anyone a working version of this Custom Form, or can point me in the direction of a solution to resolve this as I am keen to look at and use the custom URL picker it enables.
    Thanks

    Hi Check these -
    1. Check these URL's are working
    http://pptaw0054.lotte-ppta.com:8889/forms/frmservlet
    http://pptaw0054.lotte-ppta.com:8889/forms/lservlet
    2.If Webutil installed? Then do proper configuration for "WebutilArchive"
    WebutilArchive=frmwebutil.jar,jacob.jar
    3.If Jinitiator is used,check if all corresponding jar files are downloaded onto user machine.Because all required class as shown in the error are there in jinitiator jar files.Also check all jar files that you have mentioned in archive_jinit are downloaded onto user machine.
    DO like this if using webutil archive_jini=frmall_jinit.jar,colorpicker.jar,keyfilter.jar,my_icons.jar,frmwebutil.jar,jacob.jar
    4.Enable all activex settings of your browser and do a proxy bypass setting in the browser as well..
    5. Check if you have download rights for downloading JAR files mentioned in archive_jini
    Edited by: anandk on Jul 24, 2012 1:18 PM

  • Primary key issue with adf Entry Form.

    Hi All,
    i'm using jdev version 11.1.1.5.0
    use case: i have create simple entry form based on Eo and Vo using database table like student(enrollment no,name address)
    where enrollment no is primary key.
    so when i have create a record i have set enrollment no in entity impl class of this eo create method using some logic based on my need like(20130001)
    for that i have read highest no from database field and assign to enrollment no field when user create record.
    so when user create record second time then enrollment no is 20130002. and other detail like name and address user fill and commit record. and it is fine.
    but problem is that when two user access same form at a time and create record so both have get same primary key like 20130003 because in current time in database maximum value is 20130002.
    so which user  commit record first it record will save on database and second user get error message because of primary key violation.
    so my question is that where we generate primary key value for record so when multiple user access form have get different primary key value. and in my use case i can't use sequence and any autoincrement no
    because i have patter for primary key.
    Thanks in Advance
    Manish

    Hi,
    Dimitar and Frank
    thank for reply.
    How can i apply non-concurrent DB lock can you please explain.(because lock method on entity impl not work when user create new row as per documentation)
    http://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/jbo/server/EntityImpl.html#lock__
    i have write following line of code in entity impl class to set primary key value(reqid)-
        @Override
        protected void prepareForDML(int i, TransactionEvent transactionEvent) {
             super.prepareForDML(i, transactionEvent);
            this.setReqid(genReqid());
        public String genReqid() {
            String reqby = this.getReqby();
            String qry =
                "SELECT nvl(MAX(TO_NUMBER(SUBSTR(REQID,7))),0)+1  FROM STM_REQHDR WHERE REQBY=? AND REQTYPE<>'M' and substr(reqid,1,2)<>'MT' AND SUBSTR(REQID,1,3)<>'PAY'";
            PreparedStatement ps = null;
            String no = "";
            try {
                ps = getDBTransaction().createPreparedStatement(qry, 0);
                ps.setString(1, reqby);
                ResultSet rs = ps.executeQuery();
                if (rs.next()) {
                    no = rs.getString(1);
                ps.close();
            } catch (Exception e) {
                System.out.println("Exception in Gen req id ==>" + e);
            String reqno = reqby + String.format("%6s", no).replace(' ', '0');
            return reqno;
    but when i run form in debug mode and two user commit concurrent manner only one time code block is executed who first commit. and second user got error message.
    thanks
    Manish

  • How to create exchange grid in web entry form...

    Hi to all,
    I am new to HFM..my query is How to create exchange grid in web entry form...i try it a lot but it didn't get the solution...
    i did this exchange grid in web grid..any one can share the document or ppt or video clip related to this..which will be helpful for me...
    Thanks

    Hi...
    Its better to create the Exchange Rates in a Data Form than in an Data Grid, so that you can easily Import and Export the form and even can feed the values easily....
    Select the POV like in Scenario-Actual,Year-Your particular year,Period-In Period Dimension do not choose any option so that it can be selected in Columns and Rows,View--the same as Period Dimension,Entity-[None],Value-<Entity Currency>,Account-Do Not select ,ICP- [ICP None],Custom 1-[None], Custom 2-[None], Custom 3-[None], Custom 4-[None]...
    In Columns Select Scenario -Actual,Period-{[Fourth Generation]},Currency-#USD(Default Currency)
    In Rows Select-Account-A#AVGRATE,View-w#Periodic,Currency-C2#EUR
    A#AVGRATE.w#Periodic.C2#CFA and so on for rest of the currencies....
    and same in the below rows for the Closing Rates---- A#CLORATE.w#Periodic.C2#EUR
    A#CLORATE.w#Periodic.C2#CFA
    This might help you.....

  • Order Entry Form

    Hi,
    if I need to populate and display a date value output from a customized stored procedure into the Order Entry Form.
    how to do that?  Appreciate someone can advise me.
    Thanks and Regards.

    Luko wrote:
    Hello,
    I do not know what do you mean "into Order Entry form" but you can use default rule or personalization.
    Look at: Re: Defaulting warehouse in shipping tab within Sales Order
    Regards,
    LukoYes as Loko detailed...you can set defaulting rules...
    For example set request date in order header to use always sysdate..
    so whenever you create a order..sysdate defaults..
    You can use other 7 source type also..like pl/sql API..etc..
    HTH
    Mahendra

  • ADF Master Detail entry form issue

    Hi All,
    I am new to JDeveloper and I am creating a Master Detail entry form. I have separate buttons to create master records and detail records in Master and Detail sections respectively. After completing data entry in Master portion, when I hit the create button to create a line in detail, it removes data from the last field of master which is a "description" field. I haven't write any custom code yet. How can I fix this?
    Help will be appreciated.
    Thanks,
    CAH

    Hi,
    Thanks for your reply and links to the tutorials.
    I have changed the default binding to CreateInsert from Create. Unlike in the sample application in the links, my form is editable at both the levels. Apart from the clearing out the description field, it clears out the list items I have defined at Detail level when I create second or greater record. It works fine for the first record at Detail level. And as I mentioned, I have not written any custom code anywhere.
    Any clue will be a great help.
    Thanks,
    CAH

  • Custom tax form 1099R overlayed by SAP new tax form with stack changes

    We are implementing stack updates and with these were notes with 2008 Tax Reporter changes.  SAP created a new form under HR_F_1099R, new form HR_F_945-08 (sequence #0006).  We had a custom form zhr_F_1099R_cust that was sequence #0006.  Our custom 1099R form was overlayed.  What is the best way to customize a form, but protect it form being overlayed.  Is there a custom sequence number or something I'm missing that will protect the customized form.  We have had this happen with previous stack updates. 
    What do I need to do when copying the delivered PDF HR_F_1099R_mult to create a new custom 1099R to ensure that the customized form will not be at a sequence number that will be used by SAP with future form additions and overlay my form?
    Thanks!

    In the U.S. Tax Reporting Guide - That identifies using a sequence number of 99, then 98....the higher up the lower the probablility that your entry will be overwritten by a subsequent new SAP form.

  • Creating data entry form/screen dynamically

    How does one create web application data entry form/screen dynamically? One part of screen will have the option to bring up forms so that users can create forms. DO i need any sort of markup language?
    Examples please.

    use javascript. use the buttons on one panel and forms on another panel.
    for buttons onclick events change the form "action" and send the hidden parameters you want.

  • Customer registration form won't display in testing environment.

    Hi everyone,
    I am using DWCS3 with the free version of MAMP.
    I have put a customer registration form together and have just started to add the php $mailSent code.
    In design view everything seems to be o.k the three gold shields are displayed at the top of my page.
    However when I try to view the page in my local testing environment, the page doesn't display at all I just get a white screen. I was also getting an error message suggesting my site url's weren't mapped properly, or, my server wasn't serving pages with a .php extension.
    I checked my datetest page and that is displaying today's date, I also checked my phpinfo page and that is also displaying.
    I also checked that my site url's are mapped properly, I would say they are because my other site pages e.g. index page, links page, about page ect are opening up in my testing browser.
    I have added my code for anyone to take a look at;
    the 1st block of code I added at the top of the document before the <!DOCTYPE> (suggested in The Essential Guide to Dreamweaver CS3)
    the 2nd block of code is added just after the page's main heading.
    the 3rd line of code is added to the form action in the opening form tag.
    Could someone please help, as I am stumped.
    Thankyou.
    <?php
    if (array_key_exists('send', $_POST)) {
    //mail processing script
    $to = '[email protected]';
    $subject = 'Customer Registration from HLPhotography';
    //process the $_POST variables
    $name = $_POST['name'];
    $email = $_POST['email'];
    $postcode = $_POST['postcode'];
    //build the message
    $message = "Name: $name\n\n";
    $message .= "Email: $email\n\n";
    $message .= "Postcode: $postcode";
    //limit line length to 70 characters
    $message = wordwrap($message, 70);
    //send it
    $mailSent = mail($to, $subject, $message);
    ?>
       <?php
    if ($_POST && !$mailSent) {
    ?>
        <p class="warning">Sorry there was a problem sending your message, please try later.</p>
        <?php
    elseif ($_POST && $mailSent) {
    ?>
        <p><strong>Your message has been sent thankyou for registering your details.
        </strong></p>
        <?php } ?>
    <form id="formcusrg" name="formcusrg" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?">

    Sorry, I can't help with your question, I'm not a php guru  :-)   but you may want to edit out that email address if it's a live one - it will get hit by the bots if left here too long !
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    http://csstemplates.com.au/
    http://twitter.com/nadiap

Maybe you are looking for