Many copies of very similar pages

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Many copies of very similar pages

    There is probably a trivial answer to this question, and I will look stupid,
    but here goes.

    I have a login screen. I test for (1) allowable username, (2) matching
    passwords, existance of data in aother field. What I want to do is have the
    same module run, but have a different message added each time. The brute (and
    ugly) force way is to have four five *.php files, with one actually doing the
    php stuff and the other four including this file but having either no message
    or one of the three messages.

    A second way is to have one file which calls itself on error, but first sets a
    login_error session variable and insert a <? some code ?> at the proper
    place(s). Depending upon the value of that session variable which is set when
    the error occurs it would write to the page different messages. This is
    cleaner.

    Is there an easier way to do this? I think there is, but since I am a web
    coding novice, I haven't yet learned how to add data to a URL and to extract
    it. I think would be the cleanest way.

    Can someone point me in the proper direction?

    Shelly

    sheldonlg Guest

  2. Similar Questions and Discussions

    1. Contributor's Copies
      I just want to validate after reading through the books it appears that every user (contributors) must have a full version of Contribute installed...
    2. AdobePDFPDE700 with a line marked through itin the copies and pages drop down bar
      This is the first time that I have seen this before. The customer is using Quark 7.02 on a Intel Mac 10.4.8 and is being told to use the Acrobat PPD....
    3. Multiple copies of the same file
      If I add a link to a .pdf file on html file and then publish this html file, after i open the pdf file from that link in Contribute, it appends the...
    4. Can I run two copies of Cs in OSX ?
      OSX.3.3 Dual 800 G4 1.5 G (RAM) First, can I install CS twice, in different folders of course? Or do I have to do it using two users? My reason...
    5. Using md5 to verify file copies
      Would using md5 to verify backed up archive logs be feasible? What I would do is take the md5 hash of the file before copying and then take the...
  3. #2

    Default Re: Many copies of very similar pages

    I am having some problems.

    If I use session variables, and I followed the instructions to ronly use
    $_SESSION, I accurately create the session variables but they don't get passed
    to the called page.

    If I create the "/?username=$loginUsername" attachment to the called URL, it
    gets passed but two new problems appear. First, it ignores the stylesheet and
    second, an error appears if there is no username passed. I used the <?php
    echo $_GET['username']; ?> to get the value.

    Shelly

    sheldonlg Guest

  4. #3

    Default Re: Many copies of very similar pages

    Are you using session_start() at the very top of every page that uses
    session variables?


    --
    Gareth - TMM Dreamweaver
    [url]http://www.dreamweavermxsupport.com/[/url]
    [url]http://www.garethdp.com/[/url]

    PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.
    [url]http://www.phploginsuite.co.uk/[/url]

    Co-Author: Dreamweaver MX: Instant Troubleshooter - Apress
    Co-Author: Practical Intranet Development - Apress
    Co-Author: Dreamweaver MX: Advanced PHP Web Development - Apress
    Co-Author: Dreamweaver MX: PHP Web Development - Wrox


    gareth Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139