Help with Tabular form

Hi
I am using Apex 4.01 in Oracle 10g
I need a solution for tabular form issue.
I am creating a tabular form for a table with 5 colums.
col1: Primary key
Col2: seqnumber
col3: Varchar
col3: date
col4: Date
its a kind of time scheduling.
I created a tabular form with 3 updatable fields. col 3,4,5
since its a tabular form the user can add a new row and submit to insert the new row into the table,
so the primary key (Col1) is automatically doing its seq generator and inserting the key.
But what I have to do is with col2,
if the col3 value is not in the table then col2 should insert 1
if col3 value is already in the table then col2 should insert 2 (incremnt by 1) and so on..
so this value of col2 should be determined basedon col3.
How to do that for Tabular form in Apex.
Thanks,
Rik

It doesnt matter how you add a row in APEX application. Internally APEX issues INSERT or UPDATE statements when you submit the page. This in turn triggers your DB triggers and you can do your stuff in the DB trigger. If there is no need to refer page item you don't have to as long as all the fields are DB fields.
I hope I answered your question.
Sukarna
Edited by: Sukarna on Jul 19, 2011 12:21 PM

Similar Messages

  • Field Level Help on Tabular forms

    Hi,
    Is there any easy way I can add field level help to tabular forms?
    If I create a form on a table I can add help for each field, however if I create a tabular form there seems to be no way I can associate field level help with a column.
    I know that I can add page level help and could describe all of the columns there, but it would be nicer to add individual help to each column.
    Any ideas?
    Thanks,
    Martin

    Hi Martin!
    Take a look at these sites which will provide you more information about your problem.
    [http://apex-at-work.blogspot.com/2008/10/apex-select-list-with-dynamic-help-text.html|http://apex-at-work.blogspot.com/2008/10/apex-select-list-with-dynamic-help-text.html]
    TRICK: Dynamic Item Help Text as Tooltip
    [http://apex.oracle.com/pls/otn/f?p=11933:121|http://apex.oracle.com/pls/otn/f?p=11933:121]
    Regards,
    Tobias
    [http://apex-at-work.blogspot.com/]

  • Help needed with tabular form

    hello,
    I have a table with an flag_indicator whose default value is 0 which is of number datatype.
    and I am displaying the column falg_indicator it as a standard report column in my tabular form with value 0.
    but the thing is that now I want to display te column as " NO" in my tabular form (shouldn't be editable column)
    jst want to display as "NO" in my column instead of 0.
    can anyone help me out with this.
    thanks.

    Hi,
    If you change your column in select use decode function ?
    Something Like this
    DECODE(your_column,'0','NO',your_column) AS your_column_nameBr, Jari

  • AJAX with tabular form

    Hi,
    Can anyone help me ..
    I need to implement the AJAX with select list in a tabular form but I am not able do it . It is possible to do it in a normal form , but while implementing the same thing in a tabular form i am getting error (here it uses 2 dimensional arrays to identify a cell).
    The problem is I am not able to get the value from the select list .
    Can anyone help me..
    My application is "http://apex.oracle.com/pls/otn/f?p=23480:6" . The thing I need is when I select the 'Product name' corresponding 'List price need to be displayed.
    Thanks

    Hi Carl,
    Sorry for that..
    I requirement is in my application (http://apex.oracle.com/pls/otn/f?p=23480:6) , When I select the 'Product Name' from the select list the value should be populated automatically in the 'List Price' according to the product name.
    Hope the reqirement is clear ,
    My javascript is as follows
    ==============================================
    <script language="JavaScript1.1" type="text/javascript">
    var g_table;
    function va_GetCellPos(p_cell,p_what)
    for (var j=0;j<g_table.rows.length;j++) {
    var column=g_table.rows[j]
    for (var k=0;k<column.cells.length;k++)
    if (column.cells[k]==p_cell) return p_what=="row"?j:k
    function f_getfetch (p_input)
    var td=html_CascadeUpTill(p_input,'TD');
    if (!g_table) g_table=html_CascadeUpTill(p_input,'TABLE');
    var rownum=va_GetCellPos(td,"row");
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=getfetch',0);
    get.add('PRODUCT_NAME',g_table.rows[rownum].cells[va_GetCellPos(html_GetElement('PRODUCT_NAME'),"column")].getElementsByTagName('input')[0].value);
    gReturn = get.get();
    if(gReturn)
    {   g_table.rows[rownum].cells[va_GetCellPos(html_GetElement('LIST_PRICE'),"column")].innerHTML = gReturn }
    else
    {  g_table.rows[rownum].cells[va_GetCellPos(html_GetElement('LIST_PRICE'),"column")].innerHTML = 'null' }
    get = null;
    </script>
    ===============================================
    Here I am not able to get the value from the select list , its taking null (g_table.rows[rownum].cells[va_GetCellPos(html_GetElement('PRODUCT_NAME'),"column")].getElementsByTagName('input')[0].value) )
    If u need to have a look into the application ,I can give you my login details.
    with regards,
    Dilip.

  • Help with Dynamic Form Input

    Hello,
    I'd like to generate a form with a PL/SQL script.
    Basically I'd like to ask the user to rank a set of items.
    I have two tables one, ITEMS [ID (Primary Key), NAME (VARCHAR2)] and one PREFERENCES [ID (Primary Key), ITEM_ID (Foreign Key),PREFERENCE (Number), USERNAME (VARCHAR2)]
    From what I understand Collections and APEX_ITEM would be useful here.
    What should I do next?
    Should I read all of the ITEMS ( there will only be 7-13) into a collection and then use APEX_ITEM to generate rows in the form?
    Should I first create rows in Preferences, containing only the ITEM_ID and the USERNAME, and then use multiple row update in APEX_ITEM to generate a tabular form to update the rows?
    Any input would be greatly appreciated.
    Thanks,
    Sam

    I would like one form on one page for creating multiple rows. A tabular form would be fine.
    the page would look like
    Item 1 , Choose a Preference (LOV)
    Item 2, Choose a Preference (LOV)
    Item n, choose a Preference (LOV)
    I know that this could probably be done more easily one row at a time, but I am concerned about making it easy for the end user.
    A tabular form could be appropriate, however it seems like most of your example tabular forms, have already generated records. (ie http://htmldb.oracle.com/pls/otn/f?p=31517:170:4031429456413649::NO ).
    Would it make sense to prepare the form by inserting values into the table just before displaying the form.
    something like (in psudocode)
    select ID from ITEMS into l_items;
    INSERT INTO PREFERENCES (ITEM_ID)
    VALUES (l_items)
    I have a trigger on Preferences that inserts v('APP_USER') into the USERNAME column.
    If I did this the form could display
    select     "ITEMS"."NAME" as "NAME",
         "PREFERENCES"."PREFERENCE" as "PREFERENCE"
    from     "ITEMS" "ITEMS",
         "PREFERENCES" "PREFERENCES"
    where "PREFERENCES"."ITEM_ID"="ITEMS"."ID"
    NAME would be displayed as TEXT
    PREFERENCE would be an LOV
    USERNAME would be hidden
    Thanks for your help.
    -Sam

  • Help on tabular forms

    Hi all,
    I am new apex. I have couple of questions on tabular form
    1. How to add user selectable no of rows display drop down list box on a tabular form (same type of display list box comes default when you create report and form)
    2. How to add text search on multi row tabular form.
    3. How to call pl/sql procedure when you press button.
    4. How to change the query of tabular form when we you click on check box.
    5. How to popup a new window when you press a button.
    Please help me.
    Thanks,

    Hi James,
    1 - In the Report Attributes for the tabular form, you have an option "Number of Rows (Item)" in which you can specify a page item name (eg, "P1_ROWS"). Obviously, you will also need such an item on your page - typically, this is a Select List with Submit (but could be a normal select list if you intend to reload the page using a button click).
    2 - Do you mean a search across all fields on a displayed tabular form or a filter to restrict the rows displayed?
    3 - A Process (which is what I think you mean) has a "When Button Pressed" option which allows you to pick the button that triggers your process.
    4 - This depends on the checkbox and whether or not you have more than one checkbox. A simpler solution would, perhaps, be to have a select list with the required values (even if that is just "Yes" and "No")
    5 - This depends on what the popup page is designed to do. You could look at the following as a starting point:
    http://www.oracle.com/technology/products/database/application_express/howtos/how_to_create_custom_popups.html
    If 2 and 4 are both to do with filtering the data, then you need to add a WHERE clause to the underlying SQL statement. Something like:
    SELECT...
    FROM ...
    WHERE FIELDX := :P1_PAGE_FIELD
    OR FIELDY LIKE '%' || :P1_STRING_SEARCH || '%'
    The exact format would depend on the data type of the field being filtered.
    You also need to have something on the page that will trigger the page refresh which is required so that the filter can be applied. Normally, this is an unconditional branch (ie, a branch that is not triggered by a button) that branches back to the same page. In the branch definition, you also need to set the "Set these items" and "With these values" to pass back to the page the values in the search fields (eg, P1_STRING_SEARCH needs to be passed back into itself otherwise the field's value is lost when the page reloads and the filter won't be applied). If you are performing a filter using multiple fields, then you would normally apply the filter using a button on the page, so you would select this button as the trigger for the branch - again, this is a "When Button Pressed" setting on the branch definition.
    Regards
    Andy

  • Help with PDF form responses

    Hey there!
    I have two issues with online form data collection and am completely stumped. It's a real struggle to find useful documentation for Acrobat forms!
    #1 - I have created a form uploaded it to Acrobat.com, and have been able to collect test form data. In the local responses portfolio, I'm able to use the 'Update' button to bring the latest form data into the portfolio. But I would like to have a colleague be responsible for monitoring the form data and we're running into problems. He's able to open the portfolio and has full access, however the 'Update' button is greyed out so he is unable to bring in new form data. We've already updated his 'Acrobat.com' username/password in Acrobat preferences to match mine, but still no luck. Any help?
    #2 - Some computers are having issues with electronic submission. My best guess is that this is to do with Acrobat versions, as the issues all seem to come from computers where the form is completed using Acrobat Reader 8. The form was created with Pro 9, and form submission works for both Pro 9 and also Reader 9. Is there something I can do here? (And yes I know that it's a free upgrade to 9, but 8 is still in the official build for our organisation and I don't really have time to wait for them to complete an upgrade!)
    Thanks in advance for any help you can give.
    Jarrod

    Hello Paul,
    Thank you for your reply.
    I use Ipower for my hosting.  I see they use sendmail and the path on the server is - /usr/sbin/sendmail.  Would this work?
    The way I would like this to work would be:
    1) I e-mail the PDF form to the client
    2) Client opens and fills in the form
    3) They hit submit and the form information eventually gets e-mailed to my business e-mail
    I chose to use the HTTP method instead of e-mail because the PDF form says it can not be saved and if the client uses an internet beased e-mail like Yahoo it gets kind of messy.
    But, does the HTTP delivery method make it more difficult since this is not embedded in a website?
    Sorry, I did not realise this would be as involved as it is.  Your help would be greatly appreciated.

  • Livecycle design 8 Help with PDF forms

    I am new to Livecycle 8. I have created a simple PDF form in Livecycle 8 which was orignally an excel form. I set it up with a submit button to submit by email to a designated person. The form is housed on an internal web site for viewers with adobe reader to open and fill out and then submit by email. The goal is for the designated receiver to receive the the same PDF form with the information filled out by the previous viewer. I was successful with the form being emailed to the designated person as long as the peson submitting the form was using adobe professional. If the viewer only has adobe reader, the form would not submit to the designated receiver. Please help? 

    Reader does not allow a local save of the form and data by default. To be able to add the attachment o an email message a local save must occur. You can Reader Extend your form to allow for this. Open th eform in Acrobat Pro. Under the Advanced menu choose the "Extend Features in Adobe Reader". Follow the wizard and save the result PDF as a different name ....I like to put RE in the name so I know it is Reader Extended. Try the new file.
    paul

  • Bug Report: Static LOV's and PDF Printing with Tabular Forms

    I have a tabular form, which acts as an editable report. Some columns are 'Standard Report Column' and some are Select Lists, using Static LOV's with the contents of
    Yes;Y,No;NThe purpose of the page is to allow users to edit yes/no attributes of a row. Then, they can print the report.
    To make the current sort of the report reflect what is being printed to PDF, I've used a Report Layout associated with the report region, as oposed to a report query. A report query in this case would not reflect the sort of the report (all columns are sortable asc/desc).
    Anyway, I link my report with the layout created, and go to run it. I get this message.
    ORA-06550: line 1, column 50: PLS-00103: Encountered the symbol "," when expecting one of the following: := . ( @ % ; The symbol ":= was inserted before "," to continue.
         Error      ERR-1000 Unable to determine LOV from "declare function x return varchar2 is begin Yes;Y,No;N return null; end; begin wwv_flow_utilities.g_query := x; end;".
    OK      
    report error:
    ORA-20001: Error fetching column value: ORA-01403: no data foundI'm guessing the product is trying to take my static LOV and place it in a function to be able to generate which value is being displayed as text, from the select lists. However, it doesn't work.
    I've been able to get around it - by adding a YES_NO domain to my domain_codes table (a table which associates abreviations with full meanings), I can set by select lists to be query based select lists using the SQL select code_meaning, code from domain_codes where domain = 'YES_NO_CODE'. This still allows the user to dropdown Yes/No fields, and the PDF printing doesn't break.
    It is just me, or can't the PDF printing handle static LOV's in tabular forms/reports?

    Hi Patrick.
    I've tried STATIC:Yes;Y,No;Nwhile stating it is a Select List (static LOV). The values that are rendered on the page are
    [STATIC:Yes]
    [No        ]
    ----------I tried the same thing with STATIC2 instead of STATIC, and the same thing happened.
    It also broke if I tried STATIC or STATIC2 under Select List (query based LOV). This is within a report where there is no hyperlink to say 'Create/Edit static list' or 'Create Dynamic List', as there is under select list items.
    However, I am finding that for some reason, the values being sent to the PDF are not the values in the database (Y/N), but the showing values (Yes/No). This happens when I use the domain_code select query as the query based LOV.
    Furthermore, I cannot get any columns not rendering on the page to be generated in the PDF. I have a column that groups items depending on values, and I want this grouping to display in the PDF instead on the original value, ideally.
    Cheers,
    K.

  • Help With Registration Form

    Hi
    I have created a registration form, where on the first page
    the user enters a user name and password, then they go to the next
    page where they enter their name. This then goes to the next page
    where they enter their address, then there contact details.
    But I want all these details to go on to a page where they
    can review their details, then press a submit button which inserts
    the data into a mysql db.
    But I need help with how I do this?
    I have created the following Java script in the body. Or
    should it be in the header? Or on another form? to insert their
    details:-
    <% Insert Data %>
    <jrun:sql datasrc="regift">
    INSERT INTO account VALUES ('<%=
    request.getParameter("User_Name").trim() %>',
    '<%= request.getParameter("Password").trim() %>',
    INSERT INTO name VALUES ('<%=
    request.getParameter("First_Name").trim() %>',
    '<%= request.getParameter("Last_Name").trim() %>'
    INSERT INTO address VALUES ('<%=
    request.getParameter("House_Number").trim() %>',
    '<%= request.getParameter("Street").trim() %>',
    '<%= request.getParameter("Town").trim() %>',
    '<%= request.getParameter("County").trim() %>',
    '<%= request.getParameter("Postcode").trim() %>'
    INSERT INTO contact_details VALUES ('<%=
    request.getParameter("Email_Address").trim() %>',
    '<%= request.getParameter("Telephone_Number").trim()
    %>'
    </jrun:sql>
    Is this correct?
    Thanks for all your help, Lou.

    Your code is correct only for the first page. What you need
    to do after the
    initial record is entered is grab its ID and then on
    subsequent pages you
    would use and UPDATE sql statement
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "LoobieLouLou" <[email protected]> wrote in
    message
    news:emggvv$q67$[email protected]..
    > Hi
    >
    > I have created a registration form, where on the first
    page the user
    > enters a
    > user name and password, then they go to the next page
    where they enter
    > their
    > name. This then goes to the next page where they enter
    their address, then
    > there contact details.
    >
    > But I want all these details to go on to a page where
    they can review
    > their
    > details, then press a submit button which inserts the
    data into a mysql
    > db.
    >
    > But I need help with how I do this?
    >
    > I have created the following Java script in the body. Or
    should it be in
    > the
    > header? Or on another form? to insert their details:-
    >
    > <% Insert Data %>
    > <jrun:sql datasrc="regift">
    >
    > INSERT INTO account VALUES ('<%=
    request.getParameter("User_Name").trim()
    > %>',
    > '<%= request.getParameter("Password").trim() %>',
    >
    > INSERT INTO name VALUES ('<%=
    request.getParameter("First_Name").trim()
    > %>',
    > '<%= request.getParameter("Last_Name").trim() %>'
    >
    > INSERT INTO address VALUES ('<%=
    > request.getParameter("House_Number").trim()
    > %>',
    > '<%= request.getParameter("Street").trim() %>',
    > '<%= request.getParameter("Town").trim() %>',
    > '<%= request.getParameter("County").trim() %>',
    > '<%= request.getParameter("Postcode").trim() %>'
    >
    > INSERT INTO contact_details VALUES ('<%=
    > request.getParameter("Email_Address").trim() %>',
    > '<%= request.getParameter("Telephone_Number").trim()
    %>'
    > </jrun:sql>
    >
    > Is this correct?
    >
    > Thanks for all your help, Lou.
    >
    >

  • Help with Parameter Form

    Hello, I have a somewhat complicated Report and I am hoping that I can create the Parameter Form in Reports (I would rather not use Forms because I don't know it as well)
    Here's my problem:
    Right now I have 2 fields that I need help with.
    The first one is called "Report Name" and I have it coded to a bind variable that will search for a series of "work units" such as 02% or 03%
    This works as coded, the problem comes with the other "Work Unit" field. What I have right now is a LOV that queries for work units that start in either 02 or 03. This variable will narrow down the report findings to the specific work unit selected. What I want is for this list to be dependant on what the user choses for report name.
    For example if the user choses ReportName1 the report query finds work units with 02%, but the "work unit" field still displays the list of work units 02% and 03% and the user must know to only chose the certain work units for the specific "Report Name" selected.
    If there is a way to somehow have the "Work Unit" field be dependant on the "Report Name" field please give me soem ideas of how to do it.

    Thats what I was worried about.
    Well I have been trying to learn forms for some time now but I can't quite get the hang of it yet.
    I don't really have anyone who knows it here, so I'm kind of learning on my own.
    Thanks for the response.
    Arin

  • HELP WITH A FORM

    Ok here is the problem,
    I am trying to make a form in my existing fla document and
    the form will not function.
    I have created the form and used the exact same php script in
    a seperate flash movie and the form worked fine but I can not get
    it to work in my existing fla.
    I would reall appreciate any help with this issue.....
    I need my file
    (download my file at
    http://66.70.213.43/testsite/main3.fla
    to have a working email submission form.
    this file has no working form on it now and the existing form
    can be modified but I would like to keep the submit and the reset
    buttons as is if possable.
    I would like to use the php email style that is in the lesson
    on gotoandlearn.com ( the lesson is listed as sending mail with php
    but I am willing to accept other methods if needed.
    The Movie clip symbol of the actual form with the submit and
    reset button is call P5_s7
    The Movie clip symbol of the page which contains the form is
    called PAGE 5
    I will edit the php and the flash script after you send the
    file to me to reflect the email addresses that I want to use so for
    testing purposes you can use any email that you want.
    I would really appreciate it if someone with more flash
    experience could help me out and post a working copy of my file and
    the php script that the form links to so that I could re download
    then.
    Thank you in advance
    Please note that there may be some $$$ in it for you if you
    can help me.......

    Don't think you're going to find anyone here who will just be
    willing to do the work for you. You might want to check out the
    Flash and PHP Integration sample file that comes with Flash 8 for
    some pointers on how to get this started.
    If you have specific questions later, write back! Good luck!

  • Help with Login Form (JSP DB Java Beans Session Tracking)

    Hi, I need some help with my login form.
    The design of my authetication system is as follows.
    1. Login.jsp sends login details to validation.jsp.
    2. Validation.jsp queries a DB against the parameters received.
    3. If the query result is good, I retrieve some information (login id, name, etc.) from the DB and store it into a Java Bean.
    4. The bean itself is referenced with the current session.
    5. Once all that's done, validation.jsp forwards to main.jsp.
    6. As a means to maintain state, I prefer to use url encoding instead of cookies for obvious reasons.I need some help from step 3 onwards please! Some code snippets will do as well!
    If you think this approach is not a good practice, pls let me know and advice on better practices!
    Thanks a lot!

    Alright,here is an example for you.
    Assume a case where you don't want to give access to any JSP View/HTML Page/Servlet/Backing Bean unless user logging system and let assume you are creating a View Object with the name.
    checkout an example (Assuming the filter is being applied to a pattern * which means when a resource is been accessed by webapplication using APP_URL the filter would be called)
    public doFilter(ServletRequest req,ServletResponse res,FilterChain chain){
         if(req instanceof HttpServletRequest){
                HttpServletRequest request = (HttpServletRequest) req;
                HttpSession session = request.getSession();
                String username = request.getParameter("username");
                String password = request.getParameter("password");
                String method = request.getMethod();
                String auth_type  = request.getAuthType();
                if(session.getAttribute("useInfoBean") != null)
                    request.getRequestDispatcher("/dashBoard").forward(req,res);
                else{
                        if(username != null && password != null && method.equaIsgnoreCase("POST") && (auth_type.equalsIgnoreCase("FORM_AUTH") ||  auth_type.equalsIgnoreCase("CLIENT_CERT_AUTH")) )
                             chain.doFilter(req,res);
                        else 
                          request.getRequestDispatcher("/Login.jsp").forward(req,res);
    }If carefully look at the code the autherization is given only if either user is already logged in or making an attempt to login in secured way.
    to know more insights about where these can used and how these can be used and how ?? the below links might help you.
    http://javaboutique.internet.com/tutorials/Servlet_Filters/
    http://e-docs.bea.com/wls/docs92/dvspisec/servlet.html
    http://livedocs.adobe.com/jrun/4/Programmers_Guide/filters3.htm
    http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html
    http://www.servlets.com/soapbox/filters.html
    http://www.onjava.com/pub/a/onjava/2001/05/10/servlet_filters.html
    and coming back to DAO Pattern hope the below link might help you.
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html
    http://java.sun.com/blueprints/patterns/DAO.html
    http://www.javapractices.com/Topic66.cjp
    http://www.ibm.com/developerworks/java/library/j-dao/
    http://www.javaworld.com/javaworld/jw-03-2002/jw-0301-dao.html
    On the whole(:D) it is always a good practice to get back to Core Java/J2EE Patterns.and know answers to the question Why are they used & How do i implement them and where do i use it ??
    http://www.fluffycat.com/java-design-patterns/
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html
    http://www.cmcrossroads.com/bradapp/javapats.html
    Hope that might help :)
    REGARDS,
    RaHuL

  • Help with xfa-form

    Hello,
    I am a developer (VB6 ASP),
    Please, I need to know, What I need to populate/read an xfa-form, that was created for another company.
    I do not know what is the tool that I need to investigate, or a component. (the pdf form it was created with liveCycle)
    The original empty pdf form is in xfa-form and I need fill in and the resulted file is delivered to another person that stamp digital signature,
    I can fill this pdf form manually with adobe reader 9, but i need this task programmatically.
    has any idea for this?
    Thank you in advance!
    (sorry for my english)
    Clarisa

    Thank you Hodmi!
    Another question, I new in adobe Technologies, and I am lost in the family of LiveCycle products,
    I need pre-populate the pdf that I have attached, xfa-form1.pdf
    for example,
    1- I download this pdf from an external site,
    2- I have to pre-populate with 2 Fields that I obtain from my Database,
    3- I embed this pdf file in aspx page(ASP.NET)
    4- the user 1 must put their signature.
    4- the user 2 must put their signature.
    End
    I saw code that manipulate programmatically .xdp files with pdf forms, but I do not know if I can manipulate this pdf that I have attached, please, could you help me, If in theory I Can do that?
    (I have to do with ASP.NET)
    Best Regards!
    Clarisa

  • Help with web form script. PHP, CGI, Perl???

    anyone willing to help with a web form script? I have a form built, but cant seem to figure out the scripting! Should I be using Perl, CGI, PHP... What do I need to enable? I am a complete novice when it comes to scripts. Looking for a little friendly help.

    Here is a simple bit of PHP to stick in the page your form posts to. You would need to edit the first three variables to your liking, and add the html you want to serve afterwards:
    <pre>
    <?php
    $emailFrom = '[email protected]';
    $emailTo = '[email protected]';
    $emailSubject = 'Subject';
    $date = date('l, \t\h\e dS \o\f F, Y \a\t g:i A');
    $browser = $HTTPSERVER_VARS['HTTP_USERAGENT'];
    $hostname = $HTTPSERVER_VARS['REMOTEADDR'];
    $message = "$date\n\nAddress: $hostname\nBrowser: $browser\n\n";
    foreach ($_POST as $key => $value) {
    $message .= $key . ": " . $value . "\n";
    $mailResult = mail($emailTo,$emailSubject,$message,"From: $emailFrom");
    ?>
    </pre>
    This script will grab the server's date and the submitter's address and browser type. It will then list the name and value of each form field you have put on your form.
    Also, this script expects your form method="post".
    Lastly, you can offer alternate text later on in your html page based on the success of the above script with a snippet like this:
    <pre><?php
    if ($mailResult) {
    echo "Your comments have been received thank you.";
    } else {
    echo "There was an error. Please try again or contact us using an alternate method.";
    ?></pre>

Maybe you are looking for

  • IMac 27" Video Output

    I currently have an iMac 27" Intel Core 2 Duo model (November 2009) and whenever I connect to my HDTV via VGA I cannot set a resolution higher than 1600x1200 @ 60Hz. I know the TV is capable of doing so. My MacBookPro 13" with the integrated Nvidia 9

  • Error compiling single ejb using appc/ejbc (long)

    This may be related to my earlier post ("no longer able to build ejb using appc (WLS 8.1)", posted this morning), but the error and the way I encountered it were different enough that I thought I'd post as a new topic. I've been trying to build a pro

  • ADF SelectInputDate skin questions

    Hi everyone, i'm creating a skin for my adf project and i have some questions about the selectinputdate component: - Can i change the navigation icons in calendar with the af|selectInputDate::nav-link selector (and how)? - How can i changed de backgr

  • NFS on Solaris

    Hi Everybody.... Please let me know the answer of this question..... Suppose in NFS two client are using a shared file, then if one client make any updation on that file then what is the time limit to reflect that updation in the second client means

  • HELP converting non-drop to drop frame

    Hi all, I accidentally edited footage on a non-drop frame sequence. I know the sequence settings can not be changed at this point, but even if I create a new drop frame sequence and copy and paste my edited footage there are gaps/inconsistencies, etc