Need help with session using dreamweaver

have created a login page (php/mysql) with username and
password boxes. when the form is submitted the mainpage loads up.
i want the main page to be specific to that user, so i want
their name to appear in the first line. eg.. Welcome back 'David'
I read a tutorial in the past that tought me to send the
users id in the URL and then create a record set on the mainpage
that was filtered by the URL parameter.
I have forgotten how to do this and the tutorial is no longer
available on Adobe's site.
I tried that with
$_SESSION['MM_Username'] = $loginUsername; \\ in first page
then
echo $_SESSION["MM_username"]; \\in second page, but the
problem is that is not showing user name.
i need help with that please!
can anyone tell me how to do this? Thanks in advance,
AM

IN the second page, you have to make sure that the session
has been started.
Put this at the very top of the page -
<?php if (!isset($_SESSION)) session_start(); ?>
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Alidad" <[email protected]> wrote in
message
news:g184i4$jgf$[email protected]..
> have created a login page (php/mysql) with username and
password boxes.
> when
> the form is submitted the mainpage loads up.
>
> i want the main page to be specific to that user, so i
want their name to
> appear in the first line. eg.. Welcome back 'David'
>
> I read a tutorial in the past that tought me to send the
users id in the
> URL
> and then create a record set on the mainpage that was
filtered by the URL
> parameter.
>
> I have forgotten how to do this and the tutorial is no
longer available on
> Adobe's site.
>
> I tried that with
> $_SESSION['MM_Username'] = $loginUsername; \\ in first
page then
> echo $_SESSION["MM_username"]; \\in second page, but
> the
> problem is that is not showing user name.
>
> i need help with that please!
>
> can anyone tell me how to do this? Thanks in advance,
>
> AM
>

Similar Messages

  • Need help with session sharing in WebCenter Portal

    Hi, How can I share session between a WebCenter Portal application and the portlets it is consuming?
    Basically I want this for authentication. In the portal framework application, I'm setting a user object in the session, How can I get the object in a portlet?
    Regards,
    Navaneet

    IN the second page, you have to make sure that the session
    has been started.
    Put this at the very top of the page -
    <?php if (!isset($_SESSION)) session_start(); ?>
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Alidad" <[email protected]> wrote in
    message
    news:g184i4$jgf$[email protected]..
    > have created a login page (php/mysql) with username and
    password boxes.
    > when
    > the form is submitted the mainpage loads up.
    >
    > i want the main page to be specific to that user, so i
    want their name to
    > appear in the first line. eg.. Welcome back 'David'
    >
    > I read a tutorial in the past that tought me to send the
    users id in the
    > URL
    > and then create a record set on the mainpage that was
    filtered by the URL
    > parameter.
    >
    > I have forgotten how to do this and the tutorial is no
    longer available on
    > Adobe's site.
    >
    > I tried that with
    > $_SESSION['MM_Username'] = $loginUsername; \\ in first
    page then
    > echo $_SESSION["MM_username"]; \\in second page, but
    > the
    > problem is that is not showing user name.
    >
    > i need help with that please!
    >
    > can anyone tell me how to do this? Thanks in advance,
    >
    > AM
    >

  • Need help with spacing in Dreamweaver

    Hi I need help I making a site in Dreamweaver using a box format. I have ever thing done but I have a gap between my header and nav-bar that I can not close. What should I do?

    By default, browsers add their own margins and padding to HTML elements.  Many people use a CSS Reset to remove this default spacing and then add their own values to individual CSS selectors. 
    This quick and dirty reset uses an asterisk (*) as a wildcard selector.  This removes default margins and padding from everything:
    CSS:
         * {margin:0; padding:0}
    Other CSS Reset Methods:
         http://cssresetr.com/
    Nancy O.

  • Need Help with Formula using SQL maybe

    I need help!  I work with Crystal reports XI and usually manage just fine with the Formula editor but his one I think will require some SQL and I am not good at that.
    We are running SQL 2000 I think (Enterprise Manager 8.0)  Our sales people schedule activities and enter notes for customer accounts.  Each is stored in a separate table.  I need to find activities that are scheduled 240 days into the future and show the most recent note that goes with the account for which that activity is scheduled.
    The two tables, Activities and History, share the an accountID field in common that links them to the correct customer account.   I want to look at dates in the Startdate.Activities field more than 240 days in the future and show the most recent note from the History table where the accountid's match. I figure my query will contain a join on AccountID.Activities and AccountID.History used with Max(completedate.History) but I do not understand how to word it.
    I would like to perform all this in crystal if possible.  I humbly request your help.
    Membery

    You SQL would look something like this...
    SELECT
    a.AccountID,
    a.BlahBlahBlah, -- Any other fields you want from the Activities table
    h.LastComment
    FROM Activities AS a
    LEFT OUTER JOIN History AS h ON a.AccountID = h.AccountID
    WHERE (a.ActivityDate BETWEEN GetDate() AND DateAdd(dd, 240, GetDate()))
    AND h.HistoryID IN (
         SELECT MAX(HistoryID)
         FROM History
         GROUP BY AccountID)
    This method assumes that the History table has a HistoryID that increments up automatically each time a new comment is added... So a comment made today would always have a higher HistoryID that one made yesterday.
    If I'm wrong and there is no HistoryID or the HistoryID doesn't increment in a chronological fashion, it can still be done but the code is a bit more complex.
    HTH,
    Jason

  • Need help with passcode using the "Remote" app

    Hello and thanks in advance. I can't find a place on iTunes to enter the passcode from the Remote app.

    PLEASE READ!!!
    I have a HP Pavilion - Windows XP
    I need help as well with the passcode. I went to Networking and Sharing center and clicked customize and changed the name to NetGear because that is what it says next to my WiFi on my iPhone but with my iPhone under Settings it says WiFi NETGEAR > but when I click on it, it says choose a Network. Is NETGEAR a network? How do I find or change to a Network? is this the problem?

  • Need Help with timing using multiple clips

    I am in need of some help. I am trying to have a total of 16 video clips appear to slide across the screen from the right to the left, all while being equally spaced apart, going the same speed without them crossing over one another. I am using the center and anchor point in the motion tab, but once i get the the third clip i just cant seem to get the time right. I basically want them to come into the screen from the left and out of the screen from the right, all while scrolling acrossed. Please let me know if you have any suggestions.
    I even trued manipulating idvd and imovie themes in Quartz Composer, ended up starting fresh and new, and then again got into the mess with timing. Please help!!!!
    Thanks so much,

    Try this:
    Copy one clip that works OK and use Paste Attributes on the shonky one.
    Al

  • Need help with IQ02 - using a FM do update a value in this transaction

    Hi,
    I am trying to change the Aquisition value (as in transaction  IQ02) using either of following FM:
    ITOB_SERIALNO_MODIFY_SINGLE
    SERIALNUMBER_LIST_UPDATE
    However the changed value of field (ANSWT) is not getting reflected in database.
    I tried ABAP4_COMMIT_WORK, but it didnt work.
    I also tried, BAPI_TRANSACTION_COMMIT but getting a express document message 'Update was terminated.'
    Kindly help me with this. The only thing I need to do is to change the ANSWT (Aquisition value) field.
    Thanks.
    Sanjay
    PS: Help will be rewarded

    It's a bit dangerous to use SAP function modules that are not released to the user to update SAP data because they may not be a complete LUW. IE you may have to run other FMS either before or after. Try to find a BAPI. Maybe BAPI_MATERIAL_MAINTAINDATA_RT is what you need.
    Rob

  • Need help with URLs (Mamp/Dreamweaver/Apple Lion)

    I'm in the midst of a major upgrade - Apple Leopard > Lion and MAMP 1.x to 2.0.5. I also installed CS3, with Dreamweaver, on my new laptop.
    Anyway, everything seems to be falling in place, except for one major snag - I can't view my web pages in a browser.
    On my old laptop, I have it set up so that I can view each of my websites at a simple URL, like this: http://SL. My sites are stored in a top level folder named Sites.
    I used the settings in my old computer as a guide in setting up a site in Dreamweaver and MAMP/Hosts on my new laptop, but I can't view a page at http://SL. http://localhost/SL and http://localhost don't work, either, whereas http://localhost:8888 prompts a "Forbidden" message.
    However, I can access phpMyAdmin at http://localhost:8888/phpMyAdmin/?lang=en-iso-8859-1&language=English
    When I was setting up the site in Dreamweaver, I got the following error message:
    "Dreamweaver cannot use the prefix you entered to displaly live data. Please double-check your site configuration or click on Help for more information on how to correct this problem. (HTTP Error: 0)." I didn't explore the Help menu immediately, and I can't recreate the error message now.
    I read somewhere that I should put my html folders in the htdocs folder so I tried that with one site, with the same result.
    Anyway, can anyone tell me what I have to do to make a website located at Users > (Me) > Sites > SL display at http://SL?
    Thanks.

    In MAMP Pro setup ports for Apache/MySQL to 80/3306 then setup virtual host in Hosts tab. MAMP doesn't allow extending virtual hosts, only MAMP Pro does that. Are you using MAMP or MAMP Pro?
    best,
    Shocker

  • Need Help With Query Using Aggregation

    If I have a table, defined like this:
    CREATE TABLE range_test
    range_id NUMBER(20) NOT NULL,
    grade CHAR(1) NOT NULL,
    lower_bound_of_range NUMBER(5,2) NOT NULL,
    upper_bound_of_range NUMBER(5,2) NOT NULL,
    received_date_time_stamp TIMESTAMP DEFAULT SYSTIMESTAMP NOT NULL
    And I wanted to query the table to find the range associated with the last inserted row for each 'grade' (e.g. 'A', 'B', 'C', etc), how would I go about that?
    I want something like the following, but I know that this won't work right:
    SELECT
    grade,
    lower_bounding_of_range,
    upper_bounding_of_range,
    max(received_date_time_stamp)
    FROM
    range_test GROUP BY received_date_time_stamp;
    Thanks for your help. . .I'm frustrating myself with this one and I think it should be possible without having to use PL/SQL (i.e. SQL aggregate functions or sub-queries should work).

    Perhaps something along the lines of...
    SQL> ed
    Wrote file afiedt.buf
      1  select deptno, empno, ename, hiredate
      2  from emp
      3* order by deptno, empno
    SQL> /
        DEPTNO      EMPNO ENAME      HIREDATE
            10       7782 CLARK      09-JUN-1981 00:00:00
            10       7839 KING       17-NOV-1981 00:00:00
            10       7934 MILLER     23-JAN-1982 00:00:00
            20       7369 SMITH      17-DEC-1980 00:00:00
            20       7566 JONES      02-APR-1981 00:00:00
            20       7788 SCOTT      19-APR-1987 00:00:00
            20       7876 ADAMS      23-MAY-1987 00:00:00
            20       7902 FORD       03-DEC-1981 00:00:00
            30       7499 ALLEN      20-FEB-1981 00:00:00
            30       7521 WARD       22-FEB-1981 00:00:00
            30       7654 MARTIN     28-SEP-1981 00:00:00
            30       7698 BLAKE      01-MAY-1981 00:00:00
            30       7844 TURNER     08-SEP-1981 00:00:00
            30       7900 JAMES      03-DEC-1981 00:00:00
    14 rows selected.
    SQL> ed
    Wrote file afiedt.buf
      1  select deptno, empno, ename, hiredate
      2  from (
      3        select deptno, empno, ename, hiredate
      4              ,row_number() over (partition by deptno order by hiredate desc) as rn
      5        from emp
      6       )
      7  where rn = 1
      8* order by deptno, empno
    SQL> /
        DEPTNO      EMPNO ENAME      HIREDATE
            10       7934 MILLER     23-JAN-1982 00:00:00
            20       7876 ADAMS      23-MAY-1987 00:00:00
            30       7900 JAMES      03-DEC-1981 00:00:00
    SQL>

  • Need help with tables in dreamweaver

    So I can insert a table in dreamweaver but fine tuning it is
    a problem.
    I cannot find how to access individual cell properties to
    apply borders on only the sides of the cells I want. Also I can
    configure the width of the columns only by dragging the divider
    left and right. It does not allow me to input figures anywhere to
    set column widths.

    To set the widths in the HTML, look in the properties panel
    and find the "cell" area near the bottom left. You can enter a
    pixel value there.
    To set borders for individual sides you should use CSS. Read
    up in the help section about external style sheets. You can also
    set your widths there if you like.

  • Need help with integrating a dreamweaver file and an edge file

    Alright so I have been trying to do this for far to long so I am asking for some help this is for a web design class.
    I am trying to either import a edge composition to a dreamweaver file or use the publish file from the edge file to make a completed website by adding a css navigation bar from an external css file. I want to have the css menu to the left of the logo. I have tried this numerous times but either the menu doesn't show up and is either behind the edge stage or its not there at all. When I tried it from a fresh html page and imported it from an oam file the images from the stage never showed up and I am unsure how to fix that.
                                                                ^right there.
    Here are the files
    Dropbox - Archive.zip
    Thanks for the help.

    I found the z-index for the edge animate code and it was set to 0 and i set the menu div to 40 but nothing happened and it didn't show up. This where i set the menu to a higher value and I'm not sure if this is correct, I also tried it in the css file but that also didn't work.
                <div id='cssmenu' style="z-index:40;">
      <ul>
       <li><a href='index.html'>Sell Cards</a>
          <ul>
             <li><a href='#'>Pricing Guide</a></li>
             <li><a href='buyList.html'>Buy List</a></li>
          </ul>
       </li>
       <li><a href='#'>Sealed Product</a>
          <ul>
             <li><a href='Promotional Items'>List of Sets</a></li>
             <li><a href='#'>Promotional Items</a></li>
          </ul>
       </li>
       <li><a href='#'>Other Games</a></li>
       <li><a href='supplies.html'>Gaming Supplies</a></li>
    </ul>
    </div>

  • Need help with problem using sound and vibration examples. question repost

    I am generating a wav file using the sound and vibration example vi "SVXMPL_Wav Recorder(DAQmx)" using a ni 7422 board.  Then, using the example vi SVXMPL_Getting started with SVT(Simulated)" attempting to play back that file.  the wav file will load and play back on the graphs fine but when I click the "Play Wav File" which sends the audio to the computers speaker,  I get the error "Cannot recognise sound Format".  It plays the shipped example files fine.  I can also play the wav files I generate on a Windows audio player.  Don't know a lot about the sound and vibration toolkit or wav file formats but need to get these two to work together.  Using LV 8.5 and sound and vibration toolkit 4.0.  This is a bit of a repost of the same question ask last week but not answered.  Thanks

    Did you see Coq Rouge's reply in your original thread? Which thread are you going to continue?

  • Need help with session state/item refresh

    I have an application that allows users to record productivity information for our employees. There are different types of work they have to do, so the form is in header/multiple-detail form and uses collections to handle all processing. In the header portion are the fields that record the time of work. Though this is stored in the database as a single field for start of shift and single field for end of shift, in the entry it is split up into 9 fields: 3 for day, month, and year, and three more each for start hours, start minutes, AM/PM, end hours, end minutes, and AM/PM, which I then concatenate to get the dates to store. The update part works fine. When I go in to display each of these, I have to use an SQL query to retrieve only that section of the time.
    The problem I am having is that if the user pulls up several timecards to edit them, it retains these time values from the previous timecard, and due to the way the collections refresh, I can't seem to get either item session state parameter (Only when Null/Always from Source) to achieve the desired result. If I use the Only When Null option, I retain the values from the previous timecard. If I use the Always from Source, the user can't update any of the time-related input.
    Can anyone suggest a solution? I've tried a session state process that fires on entry to clear those items and ran into the same problem as using the Always From Source option. There has got to be a way to handle this, but it's got me stumped and my users are clamoring for a fix.
    Page initial load
    A. Before Header process populates job collection and other collection (not header info), which comes straight from DB table.
    B. Data displays for Header (from table) and two detail sections (from collections)
    User presses Submit to save changes
    1. On Submit Before Processing: updates job and other collections (to preserve changes in case validation fails)
    2. Validations check to make sure job codes are valid, date is valid, employee is valid, etc.
    3. On Submit After Processing: Writes changes to header from input form, writes changes to job and other from collections to appropriate DB tables
    I also have two On Submit After Processing processes to add blank lines - one for each collection. These are triggered via buttons.

    Blair:
    Does creating a 'before header' process to populate these fields make a difference ? The sql could be something like
    select TO_CHAR(TC_START_TIME,'HH') into :P1115_TIME_IN_HH from TC where TC_ID = :P1115_TC_ID;You should set the 'Source Used' back to 'Only when current value in session is null' and the 'Source Type' to 'Static Assignment(....)' and clear out the 'Source value or expression' field.
    varad

  • I need help with Lightning using Exchange and Postbox

    Hello,
    I have Postbox for Mac v 3.0.11 and I would like to use Lightning for Exchange.
    I cannot find any support for v 3.0.11.
    Can anyone help?
    Regards
    SD

    Did you see Coq Rouge's reply in your original thread? Which thread are you going to continue?

  • Need help with java uses or overrides a deprecated API.

    i have some issues and have not clue where the issue is this is the error that i receive
    Note: C:\Documents and Settings\Adam\My Documents\JCreator LE\MyProjects\Pokemon\src\Pokemon.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    here is my code

    public void boundry()
                   int i;
                   //System.out.println("y is "+  (y+23) );
                   //System.out.println("x is "+ (x+17) );
                   //X10=wall[1].getX();
                   //System.out.println("wall[1]X is" + X10);
                   //check to see if over boundary
                   rightflag=2;
                   leftflag=2;
                   downflag=2;
                   upflag=2;
              for(i=0; i<=8; i++)
                   System.out.println("i is" +i);
                    //left side
                    if ( ( (x+17) > (wall.getX() ) )
                   && ( (y) < (wall[i].getY() + wall[i].getHeight()-5) )
                   && ( (y+23) > (wall[i].getY()+5 ))
                   && ( (x) < (wall[i].getX() + (wall[i].getWidth()/2) )) )
                        rightflag=1;
                        System.out.println("left");
                   else
                        rightflag=2;
                   //right side
                   if ( ( (x) < ((wall[i].getX() + wall[i].getWidth() )))
                   && ( (y) < wall[i].getY() + wall[i].getHeight()-5 )
                   && (y > (wall[i].getY() ))
                   && ( (x) > ((wall[i].getX()+(wall[i].getWidth()/2))) ) )
                        leftflag=1;
                        System.out.println("right");
                   else
                        leftflag=2;
                   //top side
                   if ( ( (y+23) > wall[i].getY() )
                   && ( (y+23) < ( wall[i].getY() + (wall[i].getHeight()/2-5) ))
                   && ( (x+17) > wall[i].getX())
                   && ( (x) < (wall[i].getX()+(wall[i].getWidth() ))) )
                   upflag=1;
                        System.out.println("top");
                   else
                        upflag=2;
                   //bottom boundry
                   if(
                   (y < (wall[i].getY()+wall[i].getHeight() ))
                   && (y > (wall[i].getY() ))
                   && ((x+17) > (wall[i].getX()))
                   && (x < (wall[i].getX()+wall[i].getWidth() ) ))
                        downflag=1;
                        System.out.println("bottom");
                   else
                        downflag=2;
                   System.out.println("test");
                   //stop them from being over boundary
                   if (rightflag==1)
                   x=x-10;
                   else if (leftflag==1)
                   x=x+10;
                   else if (upflag==1)
                   y=y-10;
                   else if (downflag==1)
                   y=y+10;
                   //draw the player
              public boolean handleEvent (Event e)
                   //Get the scroll bars to work
                   Y2 = indicatestrength.getValue();
                   Y3 = X2.getValue();
                   Y4 = Width2.getValue();
                   Y5 = height2.getValue();
                   repaint();
                   return true;
              public void save ()     
                   File dataFile = new File ("Users/jeffrey/Server/Test.rtf");
                   FileWriter out;
                   BufferedWriter writeFile;
                   //sample data to write
                   double testnumber = -34.454;
                   String testname="this is a string";
              try{
                   out =new FileWriter (dataFile);
                   writeFile = new BufferedWriter(out);
                   //write all data as strings
                   writeFile.write(testname);
                   writeFile.newLine();
                   writeFile.write(String.valueOf(testnumber));
                   writeFile.newLine();
                   //Close file
                   writeFile.close();
                   out.close();
                   System.out.println ("data written to file");
                   catch (IOException e)
                        System.out.println("there was a error writing to the file");

Maybe you are looking for

  • What exactly are the updates good for on an ipod

    I ask because mine is windows format, and im having trouble transferring all the metadata off my ipod with senuti to a back up so that i can reformat the ipod to mac and then sync in my senuti backed up library. I was wondering if anyone knows what e

  • Highest Quality Export - 720p

    Hello all, I am somewhat new to Adobe Premiere and definitely new to CS5.  I have some uncompressed source footage that is recorded at 720p using the FRAPS codec (I recorded it from some PC games).  When this source footage is played back, it looks e

  • LOOPING THROUGH THE BLOCK

    Can anybody help me with an example or materail which explains how can we loop through a block in Forms 6i? Also how we can loop through the details block pertaining to the master block and process those records also? Thanks

  • No Icon to drag and drop

    I have a PC with Windows 7.  After installing the ADE the icon to drag and drop to my Ereader did not appear in the window pane.  I re-installed the download but the Icon still does not appear.  I had to copy and paste purchased Ebooks to my Nook

  • Catch Client IP address

    Hello all i am trying to make page include table for users logs - login time , logout time , if he online or offline , last visit - , i viewed the data of table ( WWV_FLOW_USER_ACCESS_LOG1$ ) and saw the IP ADDRESS for user login from it , so how can