FORMS: Insert to the DATABASE + email

I recently chose to recreate a site that was removed from the use of our home owner Association. This site has been able to do the two things that I've been able to accomplish a. These two things:

(1) insert form user data into a database (I CAN DO THIS RIGHT!)
(2) send an email containing the data of the form to the user (and group)

Is there a way to accomplish both of these tasks using a DW coding (again, I said, I can INSERT data into the database)

Thanks for ANY help here!

Glen the computer guy

MD...

Through the use of forms To Go, you have responded with the answer to my question (to solve in BOTH cases).

I think it's true (that you offered the solution)... I go to their website, but does not see that the added value on Forms To Go mentioned anything on the database insertion process. I sent a query to ask this question even (such as presented here by me at the get-go)... I'll see what they respond with. And, given that a FREE TRIAL of forms To Go, I'll do this and investigate on the spot.

Thanks also to mock me with your hope of do not jump me on you...

Funny, inherently we all know where we are 'on the topic' and helping to resolve the problem indicated. Most likely, read you my first response "jump" and determined that I was reacting to the loss of time since I said I had resolved on tasks, but wanted a solution to both... then again, maybe that I could have written it more clearly?

In any case, for now (and I'll be followed on that as soon as I tried it - forms to go), it's the answer that seems more 'right on!' me.

Thank you!!

Glen the computer guy

Tags: Dreamweaver

Similar Questions

  • How to filter the form entries before inserting into the database?

    Hello Adobe Forums,

    This is my first post and im a beginner with dreamweaver. I have created two forms on my site, one for messages (contact form) and the other for the testimony. I used the server behavior record insert to insert the record into the database, and then display the record in my administration area. What I want to do is to make sure that nobody can put the code in one of the entries, and if they do then to strip out code before its insertion in the database. Anyone know how I can do this? I'm not a coder I just use dreamweavers Insert menu, but I can change the code if somone told me what to do and where.

    Thanks in advance

    Dang - sorry-

    foreach ($_POST as $key-online $value) {}

  • CFIF to the boxes being inserted into the database field car_make.

    Hello, I need help on CFIF for the boxes being inserted into the database field car_make.

    At this point, several values is inserted in the car_make field. I would like to only have one value depending on what is checked in the box.

    Thank you

    Here's what I mean. I would like to know if it is is not clear.

    CFIF
    If Honda is checked then Honda value is inserted in the field car_Make

    If if Toyota is checked then Toyota value is inserted in the field car_Make


    If If Subaru is checked then Subaru value is inserted in the field car_Make


    You CAN, of course, but not without being fluent in javascript. Is there a particular reason you want to use checkboxes versus radio buttons?

    From an interface point of view, its generally not a good idea to change the behaviours expected of HTML form elements. If users see an option button, they assume generally that it will allow only 1 choice. If they are presented with a box, they could very easily be expected they could select more than 1.

  • Insert in the database

    Hello
    I'm a product of the table and the table structure is
    prod_id  varchar2(50),
    prod_name varchar2(1000)
    I have a form based on this table

    and a button on the form and there is a checkbox on the form

    check box value when unchekced = NULL
    If it is enabled = SMALL

    and the code for my button is
    When button pressed
    SELECT prod_id_seq_blank.NEXTVAL INTO :product.prod_id FROM DUAL;
    and I have a backup button on this form, the code is commit;

    I want when I press the button and then I want to enter two codes in the database a sequence like 1010 and the second is 1010Small

    Please guide me

    Thanks and greetings
    Vikas Singhal

    Vikas,

    To do this, as I said in the previous post, write in the WHEN BUTTON PRESSED trigger

    SELECT PROD_ID_SEQ_BLANK.NEXTVAL INTO :PRODUCT.PROD_ID FROM DUAL;
    

    And to relax WHEN--BUTTON of the Save button, write.

         IF UPPER(:PRODUCT.) = 'SMALL' THEN
              INSERT INTO PRODUCT(PROD_ID, PROD_NAME) VALUES(:PRODUCT.PROD_ID || 'small',  :PRODUCT.PROD_NAME);
         END IF;
         COMMIT;
    

    Now the second record will insert only when the box is checked. +(I forgot to Write the If statement in the pervious post) +.

    Kind regards

    Manu.

    If my response or response from another person was helpful, please mark accordingly

  • PROCEDURE IN A FORM INSIDE OF THE DATABASE

    Hello
    I have a form procedure

    PROCEDURE get_city_data
    IS

    file_handle text_io.file_type;
    seperator VARCHAR2 (1): = ', ';
    city_row VARCHAR2 (32767).
    skip_first_row BOOLEAN: = TRUE;


    NUMBER OF S_NO;
    N_BRANCH VARCHAR2 (50);
    N_PROVINCE VARCHAR2 (50);
    N_ADD_DEPOSITOR VARCHAR2 (50);
    ACC_NO VARCHAR2 (50);
    NATURE_ACC VARCHAR2 (50);
    DATE OF DATE_WITHDRAWAL;
    REASON_OPERATE VARCHAR2 (50);
    NUMBER OF BALANCE_OUTSTANDING;
    AMOUNT_31_DECEMBER NUMBER;


    BEGIN


    file_handle: = text_io.fopen (would be: \UDMS.csv', 'R');

    BEGIN

    LOOP
    TEXT_IO.get_line (file_handle, city_row);
    IF skip_first_row
    THEN
    skip_first_row: = FALSE;
    ON THE OTHER

    S_NO: = Split (city_row, 1, ',');
    N_BRANCH: = Split (city_row, 2, ',');
    N_PROVINCE: = Split (city_row, 3, ',');
    N_ADD_DEPOSITOR: = Split (city_row, 4, ',');
    ACC_NO: = Split (city_row, 5, ',');
    NATURE_ACC: = Split (city_row, 6, ',');
    DATE_WITHDRAWAL: = Split (city_row, 7, ',');
    REASON_OPERATE: = Split (city_row, 8, ',');
    BALANCE_OUTSTANDING: = Split (city_row, 9, ',');
    AMOUNT_31_DECEMBER: = Split (city_row, 10, ',');


    INSERT IN THE TEST. UDMS)
    S_NO,
    N_BRANCH,
    N_PROVINCE,
    N_ADD_DEPOSITOR,
    ACC_NO,
    NATURE_ACC,
    DATE_WITHDRAWAL,
    REASON_OPERATE,
    BALANCE_OUTSTANDING,
    AMOUNT_31_DECEMBER
    )
    VALUES)
    S_NO,
    N_BRANCH,
    N_PROVINCE,
    N_ADD_DEPOSITOR,
    ACC_NO,
    NATURE_ACC,
    DATE_WITHDRAWAL,
    REASON_OPERATE,
    BALANCE_OUTSTANDING,
    AMOUNT_31_DECEMBER
    );
    END IF;
    END LOOP;

    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    END;

    TEXT_IO.fclose (file_handle);

    COMMIT;

    EXCEPTION
    WHILE OTHERS THEN
    message ('Error!');
    ROLLBACK;
    RAISE FORM_TRIGGER_FAILURE;
    END;



    I want to say about procedure database...
    When I do that



    CREATE OR REPLACE PROCEDURE get_city_data
    IS
    file_handle text_io.file_type;
    seperator VARCHAR2 (1): = ', ';
    city_row VARCHAR2 (32767).
    skip_first_row BOOLEAN: = TRUE;
    NUMBER OF S_NO;
    N_BRANCH VARCHAR2 (50);
    N_PROVINCE VARCHAR2 (50);
    N_ADD_DEPOSITOR VARCHAR2 (50);
    ACC_NO VARCHAR2 (50);
    NATURE_ACC VARCHAR2 (50);
    DATE OF DATE_WITHDRAWAL;
    REASON_OPERATE VARCHAR2 (50);
    NUMBER OF BALANCE_OUTSTANDING;
    AMOUNT_31_DECEMBER NUMBER;
    BEGIN
    file_handle: = text_io.fopen (would be: \UDMS.csv', 'R');
    BEGIN
    LOOP
    TEXT_IO.get_line (file_handle, city_row);
    IF skip_first_row
    THEN
    skip_first_row: = FALSE;
    ON THE OTHER
    S_NO: = Split (city_row, 1, ',');
    N_BRANCH: = Split (city_row, 2, ',');
    N_PROVINCE: = Split (city_row, 3, ',');
    N_ADD_DEPOSITOR: = Split (city_row, 4, ',');
    ACC_NO: = Split (city_row, 5, ',');
    NATURE_ACC: = Split (city_row, 6, ',');
    DATE_WITHDRAWAL: = Split (city_row, 7, ',');
    REASON_OPERATE: = Split (city_row, 8, ',');
    BALANCE_OUTSTANDING: = Split (city_row, 9, ',');
    AMOUNT_31_DECEMBER: = Split (city_row, 10, ',');
    INSERT IN THE TEST. UDMS)
    S_NO,
    N_BRANCH,
    N_PROVINCE,
    N_ADD_DEPOSITOR,
    ACC_NO,
    NATURE_ACC,
    DATE_WITHDRAWAL,
    REASON_OPERATE,
    BALANCE_OUTSTANDING,
    AMOUNT_31_DECEMBER
    )
    VALUES)
    S_NO,
    N_BRANCH,
    N_PROVINCE,
    N_ADD_DEPOSITOR,
    ACC_NO,
    NATURE_ACC,
    DATE_WITHDRAWAL,
    REASON_OPERATE,
    BALANCE_OUTSTANDING,
    AMOUNT_31_DECEMBER
    );
    END IF;
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    END;
    TEXT_IO.fclose (file_handle);
    COMMIT;
    EXCEPTION
    WHILE OTHERS THEN
    NULL;
    END get_city_data;
    /



    It gives an error


    SQL > show err
    Errors in PROCEDURE GET_CITY_DATA:

    LINE/COL ERROR
    -------- -----------------------------------------------------------------
    3/17 PLS-00201: identifier ' TEXT_IO. Type_de_fichier ' must be declared
    3/17 PL/SQL: ignored element
    18/3 PLS-00320: the declaration of the type of this expression is
    incomplete or incorrect

    18/3 PL/SQL: statement ignored
    21/2 PL/SQL: statement ignored
    21/19 PLS-00320: the declaration of the type of this expression is
    incomplete or incorrect

    66/2 PL/SQL: statement ignored
    66/17 PLS-00320: the declaration of the type of this expression is
    incomplete or incorrect

    Anyone can fix the code...
    Thanks in advance
    concerning
    Sajid

    You can use the path directly in the FOPEN
    file_handle: = UTL_FILE.fopen('D:\','UDMS.csv','R');

    You must create a DIRECTORY FIRST

    Try

    Create or REPLACE directory D_DRIVE as "D:\". » ;

    GRANT READ, WRITE TO USER_NAME;

    MODIFY: file_handle: = UTL_FILE.fopen('D:\','UDMS.csv','R');
    To: file_handle: = UTL_FILE.fopen ('D_DRIVE', 'UDMS.csv', 'R');

    Make sure you have "UDMS.csv" placed on the D drive of your machine which Actuall DB is installed.

  • Send form data to the database with scripted button

    I know not how to connect the form to an Access database. However, I do not want the form to connect to the database until the user clicks a button. When the user completes the form and clicks the button, I need the form to connect to the database and save form data in a new record. How script button to do this?

    Any help is appreciated.

    I think that you will need to use a layer between the two.  For example, LC, you can do a process that takes your data and stores it in your database.  Your form may submit to this process through SOAP and REST.

  • Dyanamic form generation using the database Table

    I have a very difficult to explain the problem with the symbol # in a cfinput tag. Please bare with me while I try to explain.


    I have a form of update that has about 50 entry fields, types, ranging from 'text', 'text area', 'select', to hidden.

    Rather than hardcode the cfml use 50 different cfinputs, I have decided to hold the input names, labels, types and values in a table SQL server.

    My code reads as follows:
    < cfform >
    < cfloop query = "myformquery" >
    < b >
    < cfoutput >
    #myformquery.input_name # < td > < table >

    < cfif #myformquery.input_type # EQ "TEXT" >
    "< td > < cfinput type =" "#myformquery.input_type #" name = "#myformquery.input_name #" value="##mysavedrecords.#myformquery.input_name###"/ > < table >


    < cfelseif... for the text box / select / and hidden

    < / cfoutput >
    < /tr >
    < / cfloop >
    < cfform >


    myformquery is an application declared before the construction of this form. It reads data from a table 'INPUTS', which holds information on the entries in forms.

    mysavedrecord is a query declared before this form and read the table "RECORDS". This table contains the names of columns that correspond to the input names. DOCUMENTS IE. ADDRESS corresponds to the ENTRIES. Nom_entree = 'address '.

    You will probably see, the problem is that the value attribute is not analysis (code in italic).

    The desired output would be something like this
    < td > < input name = "address" type = "text" value = "123 Street" / > < table >

    Instead is the result I get
    < td > < input name = "address" type = "text" value = "#mysavedrecords.address #" / > < table >

    First of all, in this kind of situation, a switch/case statement would be probably much more effective than an if / ifelse / else statement:

    i.e.

    manage the type of text field
    manage the type of text box
    hidden type handle
    malleable unknown types

    regarding the syntax you, you cannot dynamically evaluate coldfusion variables in the way that you want. Try:

    #Evaluate ("mysavedrecords" & myformquery.input_name) #.

    Hope that helps.

  • An incorrect Date is insert in the database...

    Hi to you all,.

    After a very long time, I came back with a small problem, I need your help to solve this problem.

    The problem is when I update date of database using the viewobject setter method
    row.setAttribute("UpdatedDate",getCurrentDateString());
    where
        public String currentDateString = "";
        private Timestamp time = new Timestamp(System.currentTimeMillis());
        public String getCurrentDateString() {
            System.out.println("********************In Get Current Date ************************");
            SimpleDateFormat  sdf2=  new SimpleDateFormat("MM-dd-yyyy"); 
            currentDateString = sdf2.format(time);
            System.out.println("Time : " + currentDateString);
            
            return currentDateString;
        }
    I'm wrong in the database value as if I update date 05/01/2009 I get date in the database as of October 30, 2006...

    in my viewobject I use the date format is YYYY-MM-DD.

    but still I don't know how to track the problem.

    I need your help

    Thank you very much
    FIZZZ...

    Fizz,

    Why you set an attribute called "UpdatedDate" (guess it must be a date) to a string value? If UpdatedDate is a date, assign a date.

    ([url http://forums.oracle.com/forums/thread.jspa?messageID=1639196] this is the answer to the question will probably then ask ;)))

    John

  • How to create a data base so that PDF forms will populate the database, because they are submitted?

    I am trying to create PDF forms that will be filled by several members of an organization. I want to be transmitted electronically and then complete a database so that the data does not have to be reintegrated into a database.

    I usually use Microsoft access but certainly know how to use the values separated by comma (CSV) or Microsoft Excel.

    Currently, I use Acrobat X Pro.

    Acrobat has a built-in feature that will create a CSV file for a range of responses that you receive, full PDF or data files (FDF). In Acrobat 10 you would select: Tools > forms > more shape Options > manage form data > merge data files into spreadsheet

    If you have distributed the form so that you receive responses in the Tracker, there is an option export to CSV so when displaying answers.

  • Failed to insert in the database after the upgrade to 10.1.3.4

    We have recently improved our environment to SOA 10.1.3.4. And have deployed the same code in the new environment. But the DB adapter fails to insert saying:
    A technical error has occurred. Please contact the SCRATCHES Helpdesk.DOE_WSClient.RequisitionRequest.ReqOut: ERROR SOAP; ESB:///ESB_Projects/ESB10134App_ValidateRequisition/PopulateFinancialTransaction.WSDL [PopulateFinancialTransaction_ptt::insert (FinancialTransactionLogCollection)] - SISM JCA Execute of operation "insert" has no reason to: could not create/access the TopLink Session. This session is used to connect to the data store. [Caused by: jdbc/IManageESBDataSourceGlobal not found]. nested exception is: ORABPEL-11622 could not create/access the TopLink Session. This session is used to connect to the data store. [Caused by: jdbc/IManageESBDataSourceGlobal not found] See the first exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml), and then restart the server. Created by Exception [TOPLINK-7060] (Oracle TopLink - 10g Release 3 (10.1.3.4.0) (Build 080602)): oracle.toplink.exceptions.ValidationException Description of the Exception: could not acquire the data source [jdbc/IManageESBDataSourceGlobal]. Inner exception: javax.naming.NameNotFoundException: jdbc/IManageESBDataSourceGlobal not found.

    We have our environment as:

    We have entries in j2ee/home/config/data-sources.xml as follows,

    <? XML version = "1.0" encoding = "UTF - 8"? >
    <-sources of data xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: noNamespaceSchemaLocation = http://xmlns.oracle.c «»
    OM/OracleAS/Schema/Data-sources-10_1.xsd' schema-major-version = '10' schema-minor-version = "1" >
    < managed-data-source-pool-connection name = 'Example Connection Pool' jndi-name = "jdbc/OracleDS" name = "OracleDS" / >



    We have entries in $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml as follows,
    < location connector-factory = "ist/DB/IManageESBDataSourceGlobal" connector-name = "DbAdapter" >
    < config-property name = "xADataSourceName" value = "jdbc/IManageESBDataSourceGlobal-XA" / >
    < / connector-factory >


    Do you see not a problem with that?
    Our environment is down for more than a week because of this problem.

    Really approeciate any help in this regard.

    Thank you

    Published by: user582595 on April 27, 2009 10:39

    Also I don't have access to an advanced install and I can't remember just on top of my head. But you can load the j2ee/home/config/data-sources.xml file into j2ee/oc4j_soa/config/data-sources.xml.

    When you have tested in EM you have tested the data to the right source?

    see you soon
    James

  • Insert multiple form fields into the table DB 1.

    Hey everybody. I'm having this problem by inserting several products in the products table by using a form. Here's the form.

    = Start of form =.

    < name cfparam = "URL. Default BusinessID"=" "/ >"

    < cfquery name = "qBusiness" datasource = "wyi2" >
    SELECT BusinessID, last
    Business
    WHERE BusinessID = #URL. BusinessID #.
    < / cfquery >

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    " < html xmlns =" http://www.w3.org/1999/xhtml ">
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    < title > < cfoutput query = "qBusiness" > #BusinessName # events < / cfoutput > < / title >
    < link href = "css/wyi.css" rel = "stylesheet" type = "text/css" / > "
    < / head >
    < body >
    < action = "events_process.cfm cfform? "BusinessID = #BusinessID #" method = "post" >
    < table border = "0" cellspacing = "0" cellpadding = "2" >
    < b >
    < td > < table >
    < td align = "center" > < table > BusinessID
    < td align = "center" > < table > Discription
    < td align = "center" > < table > price
    < /tr >
    < b >
    < td > sale 1 < table >
    < td > < cfinput type = "text" name = "BusinessID_1" size = "5" value = "#URL. BusinessID #"> < table >"
    < td > < cfinput type = "text" name = "Discription_1" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_1" size = "5" > < table >
    < /tr >
    < b >
    < td > sale 2 < table >
    < td > < cfinput type = "text" name = "BusinessID_2" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_2" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_2" size = "5" > < table >
    < /tr >
    < b >
    < td > sale 3 < table >
    < td > < cfinput type = "text" name = "BusinessID_3" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_3" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_3" size = "5" > < table >
    < /tr >
    < b >
    < td > < table > 4 sale
    < td > < cfinput type = "text" name = "BusinessID_4" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_4" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_4" size = "5" > < table >
    < /tr >
    < b >
    < td > sale 5 < table >
    < td > < cfinput type = "text" name = "BusinessID_5" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_5" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_5" size = "5" > < table >
    < /tr >
    < b >
    < td > sale 6 < table >
    < td > < cfinput type = "text" name = "BusinessID_6" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_6" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_6" size = "5" > < table >
    < /tr >
    < b >
    < td > sale 7 < table >
    < td > < cfinput type = "text" name = "BusinessID_7" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_7" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_7" size = "5" > < table >
    < /tr >
    < b >
    < td > sale 8 < table >
    < td > < cfinput type = "text" name = "BusinessID_8" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_8" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_8" size = "5" > < table >
    < /tr >
    < b >
    < td > sale 9 < table >
    < td > < cfinput type = "text" name = "BusinessID_9" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_9" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_9" size = "5" > < table >
    < /tr >
    < b >
    Sale10 < td > < table >
    < td > < cfinput type = "text" name = "BusinessID_10" size = "5" > < table >
    < td > < cfinput type = "text" name = "Discription_10" size = "50" > < table >
    < td > < cfinput type = "text" name = "Price_10" size = "5" > < table >
    < /tr >
    < b >
    < td > < table >
    < td colspan = "3" align = "center" >
    < cfinput type = "submit" name = "eButton' value = 'Add all' >
    < table >
    < /tr >
    < /table >
    < / cfform >

    < / body >
    < / html >

    = End of form =.

    The database table 'Products' has BusinessID, ProductDiscription, ProductPrice, ProductID (primary key, auto-numbering).

    I wanted to add the products form how many ranks when filled. I tried a lot of cfif tag to insert only if a cert form field is defined and not empty, but no go. I looked in the forums to find someone with the same problem... no go. Everyone can see what I am doing wrong or am I doing more work so much that the CF is going?

    Without doubt, if one of the three fields for a given insertion is empty, you won't want to insert this straight line?

    If so, you can simply wrap your query to insert with conditional logic:

    ... your query goes here...

    Of course, you could better served by including also the validation of form, either in the form itself, with the help of JavaScript and/or CFFORM, or in your action before executing this code page.

    Dave Watts, CTO, Fig Leaf Software

    http://www.figleaf.com/

    http://training.figleaf.com/

    Read this before posting:

    http://forums.Adobe.com/thread/607238

  • Redirect to different URLS depending on the entry in the database.

    I have a login page that I want to redirect my mysql database to the user based on the value in my "Auth" category.  I'm trying to figure out how to get the login to redirect if he sees the 'HE' in the 'Auth' that he goes to indexil.php, "IA" goes to indexia.php and I also FL and NV to redirect to their corresponding pages.  Hoping someone can help me with that.  Here's the code that Dreamweaver created.

    Login page

    <? php require_once('.. / Connections/Users.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($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 "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    ? >

    <? PHP

    Validate request to connect to this site.

    If (! isset {})

    session_start();

    }

    $loginFormAction = $_SERVER ['PHP_SELF'];

    If (isset($_GET['accesscheck'])) {}

    $_SESSION ['PrevUrl'] = $_GET ['accesscheck"];

    }

    If (isset($_POST['username'])) {}

    $loginUsername = $_POST ['username'];

    $password = $_POST ["password"];

    $MM_fldUserAuthorization = "";

    $MM_redirectLoginSuccess = "... / Members / ';"

    $MM_redirectLoginFailed = 'login.php ';

    $MM_redirecttoReferrer = false;

    @mysql_select_db ($database_Users, $Users);

    $LoginRS__query = sprintf ("SELECT Uname, Pword OF USERS WHERE Uname = %s AND Pword = %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $Users) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    If {($loginFoundUser)

    $loginStrGroup = "";

    Declare two session variables and assign them

    $_SESSION ['MM_Username"] = $loginUsername;

    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    If (isset($_SESSION['PrevUrl']) & & false) {}

    $MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];

    }

    Header ("Location:".) $MM_redirectLoginSuccess);

    }

    else {}

    Header ("Location:".) $MM_redirectLoginFailed);

    }

    }

    ? >

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = ISO-8859-1 ">"

    <? PHP include ('inc_title.php')? >

    < link href = "styles.css" rel = "stylesheet" type = "text/css" > "

    < / head >

    < body > < div id = "banner" > < / div >

    < div id = "container" >

    < div align = "center" >

    < p > < / p >

    < p > < span class = "largebold" > forms connection </span > < / p >

    < name of the form = "form1" method = "POST" action = "<?" PHP echo $loginFormAction;? > ">"

    < p > user name:

    < name of entry = "username" type = "text" id = "username" >

    < /p >

    < p > password:

    < name of entry = "password" type = "password" id = "password" >

    < /p >

    < p >

    < input type = "submit" name = "Submit" value = "Login" >

    < /p >

    < / make >

    < p >

    <!--right end-->

    < /p >

    < / div >

    < div id = 'Clear' > < / div >

    < / div > <! - container end - >

    < / body >

    < / html >

    index page

    <? PHP include ('inc_auth.php')? >

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = ISO-8859-1 ">"

    <? PHP include ('inc_title.php')? >

    < link href = "styles.css" rel = "stylesheet" type = "text/css" > "

    < / head >

    < body > < div id = "banner" > < / div >

    < div id = "container" >

    < div id = "left" >

    <? PHP include ('inc_formselector.php')? >

    < / div > <! - end left - >

    <!--right end-->

    < div id = 'Clear' > < / div >

    < / div > <! - container end - >

    < / body >

    < / html >

    inc_auth page


    <? PHP

    If (! isset {})

    session_start();

    }

    $MM_authorizedUsers = "";

    $MM_donotCheckaccess = "true";

    Restrict access to Page: grant or deny access to this page

    Function isAuthorized ($strUsers, $UserGroup, $strGroups, $UserName) {}

    For safety, first assuming that the visitor is NOT allowed.

    $isValid = false;

    When a visitor is connected to this site, the MM_Username of Session variable value equal to their username.

    So, we know that a user is NOT logged if this Session variable is empty.

    If (! empty ($UserName)) {}

    In addition to being connected, you can restrict access to only certain users based on a created ID when they connect.

    Analyze the channels in the tables.

    $arrUsers = explode (",", $strUsers);

    $arrGroups = explode (",", $strGroups);

    If (in_array ($UserName, $arrUsers)) {}

    $isValid = true;

    }

    Or, you can restrict access to only certain users based on their user name.

    If (in_array ($UserGroup, $arrGroups)) {}

    $isValid = true;

    }

    If (($strUsers == "") & & true) {}

    $isValid = true;

    }

    }

    return $isValid;

    }

    $MM_restrictGoTo = 'login.php ';

    If (!) {(((isset($_SESSION['MM_Username']))) & & (isAuthorized ("", $MM_authorizedUsers, $_SESSION ['MM_Username'], {$_SESSION ['MM_UserGroup']})))}

    $MM_qsChar = ';?

    $MM_referrer = $_SERVER ['PHP_SELF'];

    If (strpos ($MM_restrictGoTo, "?")) $MM_qsChar = "&";

    If (isset ($QUERY_STRING) & & strlen ($QUERY_STRING) > 0)

    $MM_referrer. = « ? ». $QUERY_STRING;

    $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar. "accesscheck =". UrlEncode ($MM_referrer);

    Header ("Location:".) $MM_restrictGoTo);

    "exit";

    }

    ? >

    I hope this is all to help me on this.  I worked on this NCB for a few weeks now.  I can't get one of the 4 redirects to work.   Thanks in advance

    It works very well.

    What it does is to select 'Auth' from the 'users' table that corresponds to the "Username" and "Password" and assigns the name of the page (indexil.php) that must be inserted into the database field 'Auth' to a variable named $Auth

    Connect to the database server

    mysql_connect ("xxxxxxx", "xxxxx", "xxxxxxx") or die (mysql_error ());

    Select database

    @mysql_select_db ("XXXXXXXXXXX") or die (mysql_error ());

    Select the url

    $strSQL = "SELECT authentication OF USERS WHERE Uname = '$loginUsername' AND Pword ="$password "";

    $rs = mysql_query ($strSQL);

    While ($row = {mysql_fetch_array ($rs))}

    $Auth = $row ["Auth"];

    Header ("Location:".) $Auth);

  • Navigation in the adf part form workflow causes the validation of active in WebCenter

    Experts,

    We use WebCenter 11 g.  We created a workflow with a shape on the first page.  There are a few required fields on the form.  We have deployed the taskflow and it run within the WebCenter portal.  There are three tabs: "Home", "About Us" and "request for information".  The "request for information" tab of the workflow we have problems with.

    Here's what's happening.  When we landed on the portal page, the home page tab is where we land.  So let's say that the user clicks on the 'Request information' tab, a form appears.  It is the form of the ADF.  On the form, we ask the name, email, phone, etc. Name and Email fields are required. We have a mailing and a reset button on the page of the form.  Assume that the user has clicked on this tab, realized that they did not want to provide information and wants to click on the Home tab.  When they click on the Home tab, in the form "Request for information" form validation fires and displays an error indicating to the user that the name and email address have not been provided.

    It's very annoying and we would like some suggestions on how to overcome this problem.

    Thank you.

    Sam.

    Have you tried to make all your links from the immediate tab

    Try to change the immediate attribute to true, it should solve your problem!

  • is it possible to return a figure to the database from a web service

    I have a REST web services configuration that has 4 values

    Is it possible to use a db call to enter these 4 values that can be used in an insert in the database?

    Thank you

    Yes it is available: [url http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/t_dburi.htm#i1007928] 10.2 documentation packages and Types.

    You must copy my blog instead: my answer was typo with a T too much ;-)

    Edit: Fixed the URL

    Published by: Kim Berg Hansen on October 19, 2012 10:00

  • Inserting a new record in the database using a form empty ADF

    Hello

    I'm trying to insert a new record into the database using a form.

    I have an Employee table and its corresponding entity object and the view object. The table has an id that is used as the primary key and is filled using a sequence in the comic book.

    Data controls, I dragged and dropped at the sight of the employee as a form of ADF and checked the submit button include. Then I dragged and dropped the validation on submit button operation.

    When I connect to the app and go to the page used to create, I have 2 problems:
    1 - the form is filled with the logged in user info.
    2. If I try to change the news and validation, the user info is changed in the database and no new record is created.

    It makes a little sense to me, but I would like to know if there is a way around it (get an empty form and insert a new record).
    NB: the employee id is not part of the form, I want to be filled using the sequence.

    Kind regards
    MB

    User, please tell us your jdev version!

    To do this, you must create a new record before going to the display of the form page. In a stubborn workflow (btf), you drag the operation createInsert of the VO on the btf and it will generate a link method, add a view to the btf and put a navigation of the binding of the method of the page. Mark the method as 'Activity by default'. Now, ren, you call the workflow, you create a new record that will show your blank form.

    Timo

Maybe you are looking for

  • Custom iPad OS Pro and more 3rd Party Vendor involvement - Apple should do a

    The IPad Pro is a very capable camera (especially with the faster processor and more RAM) but he is very embarrassed by international organizations. IOS, in its current form, is more suited for casual users - not power users. Here are some things tha

  • I can't sign in iMessage since upgrading to El Capitan - Suggestions?

    I can't sign in iMessage (Macbook Pro, early 2011) after upgrade to El Capitan 10.11.1 OS x 10.8.5. I have reset the passwords for my two Apple ID, out of the iCloud, signed and still cannot connect in iMessage. Diagnosis: "year error occurred during

  • Structure of case based on a parameter

    Hello world! So I was wondering if we could set up a business in a structure of the case, which is based on a parameter. So here's what I mean: I have a case structure inside a loop for (i = 0,..., N-1). I would like to deal structure for 3 cases: by

  • Download Skype 5

    I'm unable to download Skype 5. First of all, I get the error Code 1603. "error 1603: a fatal error occurred during installation" error message when you try to install a Windows Installer package. So, I get a message telling me that I have an older v

  • Update Windows 10 progresses don't step forward

    Try to download windows 10 on my laptop with windows 7.  All I get is the turning points.