Problems in passing a parameter through a button, php

Hi all

I'm new to the forum and web design and Dreamweaver, please go a little easy on me!

I am currently doing a fantasy football website in Dreamweaver and phpmyadmin. When a user visits the site and wants to enter the competition, he clicks on record that brings to the top of registration page. There they can complete the form containing the information, username, password etc. When they click the button Save at the bottom of the form, their details are inserted into the users table in the database, and they passed on the next page, where they are called upon to choose their team. Details of the team are kept in a separate table in the database.

What I'm trying to do is to pass the user name that is created in the form of registry to the team page choose as a parameter.

Currently, my button code is as follows:

< input type = "submit" value = "Insert file" / >

and after sql code inserting goto is currently?

$insertGoTo = "pickteam.php";

In another section of the site, I spent a parameter with a link as follows:


< a href = "editgoalkeeper.php? gkid_gk = <?" PHP echo $row_rs_viewgks ["gkid_gk"];? > ">"

but I'm not sure about how to pass a parameter by using a "submit" button, can someone help me please?

You should use PHP sessions and store the username as a session variable.

Start page that registers the user with session_start();. You can then save the username to a session variable:

session_start();
if (isset ($_POST['username'])) {
  $_SESSION['username'] = $_POST['username'];
}

Subsequently, $_SESSION ['username'] will be available on any page that begins with session_start();

Tags: Dreamweaver

Similar Questions

  • passing the parameter through links page (navigation)

    Hello

    suggest me the way to pass the parameter through links in the page navigation.

    I tried it in EL, I'm not able to get on the page.

    is it a right approach or any other.

    Thank you

    A

    After showing the steps in the similar thread, I found this thread then re-post here.

    Pass the connection parameter to connected in portal Builder page


    Here are the steps to pass the parameter in a URL to another page:

    OR

    Sign in to your personalized Portal (say MyPortal1)

    http://127.0.0.1:8888 / webcenter/Portal/MyPortal1

    Click the settings (e.g. Pages & portals Actions)-> manage-> all settings

    It will take you to the page view of all of the current portal (i.e. MyPortal1).

    Then click attributes in the left pane, and you can create/edit/delete the custom attributes for the current portal on the right side.

    • Click Add an attribute and specify the following information:

    Attribute name = myvar

    This is the attribute that we will refer to any page using the EL "MyVar".

    Attribute value = #{param.myvarval}

    "Myvarval" is the name of the query parameter (i.e. suffix query param & myvarval = TestSuccess will be passed as part of the URL later)

    • Now, create a new page "TestPage" and add the element of HTML markup on the page using the composer.
    • In the Properties window, change the HTML markup element.

    Replace the existing value

    #{componentExtensionBundle.OUTPUT_TEXT_TEXT}

    with

    #{spaceContext.currentSpace.metadata.customAttributes ['myvar']}

    • Click apply and then click OK to close the pop-up window.
    • Click on save and view Portal


    • CHECK: Replace/change the URL the following OR open in a new tab in the browser

    Http://127.0.0.1:8888 / webcenter, portal, MyPortal1, TestPage ? myvarval = TestSuccess

    and you will see "TestSuccess' message in the"TestPage"rendered using the HTML markup component.

    This confirms passing the parameter to a page URL works as expected.

    Now, to add a link to the "TestPage" passing a parameter in the URL of the page in another page (Home Page say).

    • Now goto homepage, correct it in composer and add the hyperlink element. Click change to set the hyperlink in the Properties window.
    1. Set the title to display (i.e. the value of the title TestPage)
    2. Set the Destination URL by clicking on the search icon and choose "TestPage".

    Destination is defined with values that resembles

    /faces/Oracle/WebCenter/page/scopedMD/sf5926dd1_9e6a_45ab_a99c_d79fabb362c0/Page1.JSPX

    Add a suffix '& myvarval = TestWorks' to him.

    • Click apply & OK.
    • Click on save and view Portal
    • CHECK: Since your home portal or the home page, click on the link "TestPage" which brings you to the TestPage and you will see "TestWorks' message in the"TestPage"rendered using the HTML markup component.

    I hope it helps.

    References:

    How to pass a parameter of argument the query URL to a parameter input workflow? (Doc ID 1545808.1)

    https://mosemp.us.Oracle.com/epmos/faces/DocumentDisplay?ID=1545808.1

    Works with the global attributes in portals

    http://docs.Oracle.com/CD/E29542_01/WebCenter.1111/e27738/wcadm_ps_attrib.htm#WCADM11701

  • How to pass the parameter of workflow

    As being new owb, I'm still trying to figure out how to pass a parameter through workflow.

    I have this map with an input parameter, and I included this mapping in this workflow. I wonder how to pass a parameter value for this workflow and bind it to the mapping?

    ~ Prabha

    Prabha,
    Select the activity start then in the Explorer window (in the left upper corner of the process editor) on green sign more for adding parameter processflow.
    Enter the name of the parameter and specify the type of data (perhaps by default).
    Select your map, and then in the Exporer window click parameter mapping entry.
    now the object details window, you can bind the input parameter to the parameter processflow with change of binding property

    Kind regards
    Oleg

  • a problem in passing multiple values in the loop settings for

    Hi all

    I am facing a problem in passing multiple values in the loop settings for.


    EX:

    CREATE or REPLACE PROCEDURE (pr_id OUT NUMBER) HAVE


    tab type is table of NUMBER;

    TEMP_TAB TAB;

    BEGIN

    Select the COLLECT LOOSE pr temp_tab pr_id;

    I'm in 1.TEMP_TAB. loop of COUNTING

    PR_ID: = temp_tab (i);

    end loop;

    END TEST;

    OUTPUT:-

    pr_id = 234578


    in the example above, I'm only a value as an out parameter. but I send you PR_ID of the loop.
    why I don't get all the values that the parameters.please offer a solution for me.

    Thank you my friend.

    More clarification, let's look at your code...

    -- create a procedure and have a single numeric out variable
    CREATE OR REPLACE PROCEDURE TEST ( pr_id OUT NUMBER ) AS
      -- declare a type as an array of numbers
      type tab is table of NUMBER;
      -- declare a varianble of that array type
      TEMP_TAB TAB;
    BEGIN
      -- query all the values from the table into the array
      select pr_id BULK COLLECT INTO temp_tab from pr;
      -- loop through each value in the array
      for i in 1..TEMP_TAB.COUNT loop
        -- set the value of the single OUT parameter, OVERWRITING any previous value it has
        PR_ID := temp_tab(i);
        -- loop around to the next value
      end loop;
      -- end the procedure with the final value of PR_ID
    END TEST;
    
  • pass the parameter in PL/SQL on UNIX "such what."

    Hello
    I need the 4 parameters of Oracle procedure through Unix Shell script...
    procedure signature :-
    PROCEDURE Builder(csvFileName OUT VARCHAR2,pdfFileName   OUT VARCHAR2, fileId IN NUMBER, csvresult OUT VARCHAR2,pdfresult OUT VARCHAR2);
    UNIX Shell script:
    BudResult=$(exec_Builder $fileId)  
    echo $BudResult | read csvfileName pdfFileName csvresult pdfresult
    Problem: 1 suppose pdffile pdfresult has Null values in the procedures of the Oracle, and unix shell will read parameters with spaces so
    I am incorrect parameter values in UNIX script.
                   
    Oracle Procedure result:                   Unix Shell Result
    csvfile = ABC.csv                         csvfile = ABC.csv
    pdfFile = NULL                            pdfFile = Success
    csvresult = Success                       csvresult = 
    pdfresult = NULL                          pdfresult = 
                   
    2. suppose csvresult has value "Userdefined Exception" in oracle procedure but Unix reads it as following
    
    Oracle Procedure result:                 Unix Shell Result
    csvfile = ABC.csv                         csvfile = ABC.csv
    pdfFile = XYZ.pdf                         pdfFile = XYZ.pdf
    csvresult = Userdefined Exception         csvresult = Userdefined
    pdfresult = Success                       pdfresult = Exception Success
    In nut shell how to pass the parameter "like what" PL/SQL in UNIX...

    Thank you
    Sandy

    So, what kind of problem you know now? What output do you get it?

    echo oenResult=$oenResult
    
  • Pass the parameter to the functions called from a dll

    Hi all

    I am interfacing a motor controller for PMC - 100 through the Protocol of Performax using labwindows.

    I need to explicitly link the PerformaxCom.dll and call functions with him. I'm calling this function

    BOOL fnPerformaxComOpen (DWORD IN dwDeviceNum, OUT HANDLE * pHandle);

    Faithful:

    If you want to link explicitly, you can consult this article: http://zone.ni.com/devzone/cda/tut/p/id/8503

    It has a code snippet that shows passing two parameters to a DLL function.

    But as for your statement that "I don't know how to pass parameter to him", in the example, you reference, you pass a parameter: it's just a constant string rather than a variable.

  • Problem of passing parameters to commandLink in a column

    Hello.

    I use JDeveloper 11.1.1.7.0

    I have this problem and I do not understand what I am doing wrong.

    I have a table like this:

    <af:table value="#{bindings.myView.collectionModel}"
                var="row"
                rows="#{bindings.myView.rangeSize}"
                emptyText="#{bindings.myView.viewable ? 'No data to display.' : 'Access Denied.'}"
                fetchSize="#{bindings.myView.rangeSize}"
                rowBandingInterval="0"
                binding="#{backingBeanScope.myBean.t1}"
                id="t1" 
                rowSelection="single"
                contentDelivery="immediate">
        <af:column sortProperty="#{bindings.myView.hints.PrId.name}"
                   sortable="false"
                   headerText="Nro. Proc."
                   id="c2" width="50">
          <af:outputText value="#{row.PrId}" id="ot5"/>
        </af:column>
        <af:column id="c8" headerText="Check" align="center" width="70">
          <af:commandLink text="rowCheck" id="cl1" partialSubmit="true">
            <f:attribute name="rowKey" value="#{row.rowKey}"/>
    
            <af:serverListener type="serverAction" method="#{backingBeanScope.myBean.linkEvaluacionServerAction}"/>
            <af:clientListener type="action" method="clientAction"/>
          </af:commandLink>
        </af:column>
    </af:table>
    

    After a lot of tests, serverListener + clientListener is the only way to run code after clicking on the link. I don't know why, but actionListener in the link doesn't work the first time. The second time and so on, actionListener doesn't not fire.

    My problem is how to pass rowKey parameter to the linkEvaluacionServerAction method:

      public void linkEvaluacionServerAction(ClientEvent ce){
        Object key1 = ce.getComponent().getAttributes().get("rowKey");
    
         // actions with key1
    }
    

    I don't know why, but the link rowKey attribute takes the value associated with the first time I clicked on a link.

    The second and so on, key1 null values

    How can I solve this? Any help is very appreciated.

    Concerning

    Well, I think (yet) the approach and solve it in this way:

    
                      
                    
    

    Setting of setCurrentRowWithKey is #{row.rowKeyStr}

    In my linkEvaluacionAction method I do additional checks.

    I hope this helps. Concerning

  • Passing the parameter to bounded taskflow with setPropertyListener

    Hi, OTN,.

    I can't get how to pass a parameter of ADF defined taskflow entry while I'm trying to follow the dev guide.

    On my JSF page in an area, I have a command button with setPropertyListener. Him his "code:"
    <af:commandButton text="newInformation" id="cb14"
                                      action="newInformation">
                      <af:setPropertyListener type="action"
                                              from="Hello"
                                              to="#{pageFlowScope.inputValue}"/>
                    </af:commandButton>
    JDev warns me that "inputValue is an unknown property.
    action "newInformation" navigates the region to a taskflow bounded, which has input parameter:
    <input-parameter-definition>
          <name>inputParm1</name>
          <value>#{pageFlowScope.inputValue}</value>
          <class>java.lang.String</class>
        </input-parameter-definition>
    Taskflow call activity has input parameter:
        <task-flow-call id="new-inf-tfd">
          <task-flow-reference>
            <document>/WEB-INF/new-inf-tfd.xml</document>
            <id>new-inf-tfd</id>
          </task-flow-reference>
          <input-parameter>
            <name>inputParm1</name>
            <value>#{pageFlowScope.parm1}</value>
          </input-parameter>
        </task-flow-call>
    On the default view of taskflow activity I want to display the parameter:
    <p>
        Here's your param:<af:outputText id="ot1" value="#{pageFlowScope.parm1.inputValue}"/>
    </p>
    And I don't see anything there.
    What did I miss?

    JDev 11.1.1.1.0. Thank you.

    Hi ILya Cyclone,

    I think you're confused. I think it should be like this:

    On my JSF page:


    action = "newInformation" >

    from = 'Hello '.
    to = "#{pageFlowScope.inputValue}" / >

    in stubborn taskflow, which has input parameter:


    inputParm1
    #{pageFlowScope.inputParam}
    java.lang.String

    Taskflow call activity has input parameter:



    /Web-INF/new-INF-TFD.XML
    new-inf-tfd


    inputParm1
    #{pageFlowScope.inputValue}

    On the default view of taskflow activity:


    Here are your settings:

    Sameh Nassar

  • Quote from passing in parameter

    Hello

    I have a query that I migrated from the sql server database. She is given below. I'm passing an apostrophe as a parameter to this request, but it always retrieves number of 0. But I have 1 table insert. As a solution to this, I solved this problem for sql server passing two quotation mark (single quote by replacing double quotes). This same solution also applies here. When passing a parameter with apostrophe in there, it will replace the single quote with double quotes and then pass it to the below given procedure. But still, it does not work properly. I have a similar query to retrieve this record and it works very well. No idea why the query below does not work properly?

    PROCEDURE GetEntUserGroupCountWithOther
    (
    ppGroupName IN VARCHAR2 DEFAULT '% ',.
    CP1 IN OUT SYS_REFCURSOR
    )
    AS
    BEGIN

    OPEN FOR Cp1
    SELECT COUNT (*) TotalRecords
    (SELECT ID, EnterpriseUserGroupId,
    Name of NAME,
    Description DESCRIPTION,
    IsDefault
    OF EnterpriseUserGroup) T1
    WHERE UPPER (NAME) LIKE + UP ('%' | ppGroupName |) '%');

    END;

    Thank you

    Published by: user10768079 on July 14, 2009 22:56

    user10768079 wrote:
    Sorry I forgot to mention that I'm passing parameters of .NET. It works very well for SQL Server and procedure in oracle that retrieves the record. But he doesn't get number for the query I posted.

    As you can see on my demo, it is show a County...

    >

    If I replace the value of the parameter whose I am the concatenation in query to hardcode ' demo "is then it works very well for me.

    Then you have confirmed what I just said, it works... should be the way you spend your settings in this case

  • Problems with passing parameters to a dynamic theme

    Hello experts,

    I have been struggling with this for days now and can't seem to understand what is happening here. I don't think that it is difficult to understand and I don't know I'm not the only one who came through it, I just feel like I'm missing something.

    In short - I have a predefined theme called TEST_DYNAMIC_THEME_NEW2. Its styling rules are as follows:
     
    <?xml version="1.0" standalone="yes"?>
    <styling_rules caching="NONE">
        <rule>
            <features style="C.RED"> select geom, :1 FROM TRACT_CURRENT_GEO </features>
      </rule>
    </styling_rules>
    I try of course to pass a parameter to this theme, representing a column name. Maybe this is not possible, but I don't know why not.

    The error message that I do not get in Firebug is as follows:
    <?xml version="1.0" encoding="UTF-8" ?> <oms_error> MAPVIEWER-06009: Error processing an FOI request.
    Root cause:SQLException: ORA-01722: invalid number
    </oms_error>
    On the other hand, when I'm in mapbuilder and I saw the theme it works fine. He asks for a parameter value for: 1, I give him a column name, and a large red card is displayed in the preview screen (this is what I want to see [at least for now]).

    Ideas, people?


    Thank you all very much for your time,

    John

    The binding settings should be used for parameter values in your query condition. It is not intended to define column names in your selection list.
    Although it seems to have worked for you in MapBuilder, there is no guarantee that you will get good results with the server of the FAITH.

  • Dynamically Open VI and him pass a parameter to the dynamically open VI

    I want to open a vi dynamically, at the same time I have to pass a parameter to the dynamically open VI. Is it possible to do?

    Thank you

    Chrystelle Roy

    Passionate about LabVIEW

    Check here https://zone.ni.com/reference/en-XX/help/371361M-01/lvconcepts/dynamic_loadcall_vis/

  • "When try to turn on my computer: Windows did not start because of the following ARC firmware boot configuration problem: the ' osload partition ' parameter setting is invalid

    Original title: configuration of the CRA

    Hi, I got this message then try to turn on my computer:

    "Windows did not start because of the following ARC firmware boot configuration problem: the ' osload partition ' parameter setting is invalid. "Please check the Windows documentation about the configuration option BOW and your reference manuals of the equipment for more information.

    can someone help me?

    Hi sugenghariyono,

    ·         Did you do changes on the computer before the show?

    ·         What is the brand and model of the computer?

    ·         Are you able to boot to the desktop?

    Follow the steps in the article.

    Error message: "Windows did not start because of a configuration of the disk of the computer problem.

    For reference:

    Advanced Troubleshooting for General startup problems in Windows XP

  • I have problems in trying to get through my music files to W M P burn, I have them on my hard drive of diving, pro, cool edt and I can't bring them to burn, I need help :)

    I have problems in trying to get through my music files to W M P burn, I have them on my hard drive of diving, pro, cool edt and I can't bring them to burn, I need help :)

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    I have problems in trying to get through my music files to W M P burn, I have them on my hard drive of diving, pro, cool edt and I can't bring them to burn, I need help :)

    ========================================
    Can you navigate to the actual file stored music files
    in and add it to the WMP library?

    File / add to library... or enter... F3

    Then, create a Playlist...

    File / create a Playlist... or type... CTRL + N

    Maybe the following will help:

    Windows Vista-
    Add items to the windows
    Media Player library
    http://windowshelp.Microsoft.com/Windows/en-us/help/60fc17d8-7924-4600-93e8-39873ee2d5e91033.mspx

    Windows Vista-
    Create or change a regular playlist in Windows Media Player
    http://Windows.Microsoft.com/en-us/Windows-Vista/create-or-change-a-regular-playlist-in-Windows-Media-Player

    Windows Media Player 11 for Windows Vista
    Burn a CD or DVD in Windows Media Player
    http://Windows.Microsoft.com/en-us/Windows-Vista/burn-a-CD-or-DVD-in-Windows-Media-Player
    (Expand the section: "Burn audio CD")

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • How to pass the parameter to the script for interface/Package in ODI

    Hello

    Yesterday I asked a question how to pass a parameter to run the script interface or the procedure?

    I don't know if it's possible.

    Any clarification will help you.

    Kind regards

    Mahesh

    Mahesh, why not try this in your machine? This will give you more clarity and confidence.

    ODI has always check if there is any variable used inside an object regardless of the interface or procedure or package. So whenever you generate the script, you will be asked to select the boot parameters. She's. Whenever you use this scenario, make sure you that you add the variables in the additional variables section of the Properties tab.

    So answer is that it is possible.

    Bravo!

  • Pass a parameter to a function to use AS the operator in

    I'm trying to pass a parameter to a function that uses the LIKE '% name_in % ',.
    I don't know how to use...

    the setting is called "name_in".


    Thanks in advance,
    M

    Hello

    Mehrdad says:
    I'm trying to pass a parameter to a function that uses the LIKE '% name_in % ',.
    I don't know how to use...

    the setting is called "name_in".

    Your code should say:

    ... LIKE '%' || name_in || '%'
    

    If name_in is inside the single quotes, it will mean the 7 characters literals 'n', 'a', ', 'e', '_', 'i' and 'n'.
    You want to refer to the variable named name_id, in order to keep the name of the variable outside of the quotation marks.

Maybe you are looking for

  • Cannot install driver LAN on Satellite M100-221

    I have reinstalled the OS on my Satellite M100 - 221 PSMA0E. HE has already used Windows XP Home Edition, and now I have installed Windows XP Professional SP2. I have an error in my DEVICE MANAGER with ethernet, mass storage controller, SM bus contro

  • Fix said block

    WhenI try to join a photo etc to my e mail I have place a word block above attach or see that will not produce the Word set only & clicking. I managed to not send no problem yesterday, but today he's back for the word block. It does so not. I tried t

  • Internet sharing question

    I can very well on computer Z (the one that is not directly connected to the internet). But whenever I'm disconnected from the internet on computer Z (unplugged example) we must restart Y computer with direct connection to the internet, just so that

  • Blue Screen of Death help please error "0x0000000a IRQL_NOT_LESS_OR_EQUAL"

    Hello I have a desktop HP H8 1280t with Windows 7 working perfectly until security missed a month ago. Now I can not connect to Windows except on safe mode, or I get a BSOD. I tried the system restore and a number of other things without success. I m

  • Error IBR with Webcenter content cluster

    Hi all.I am using oracle webcenter content 11.1.1.6.When I configure single IBR with content unique webcenter work but error with webcenter content cluster.It generate the image but image not found link and nolog access.  I don't know why.Thank you a