I have an HTML login form which is checked by login.cgi. If they're clear, it redirects to www.page.com/username/ otherwise it fails like a good little login script. *pets script on head*

Each folder will have a script which reads in and displays particular files found in their specific folder.

The problem/question is from this..

The admin sets up all the login data for all users in his own admin panel. He includes some text which must be included for each individual user (each user has their own welcoming message or account details displayed on screen).

So each user will essentially have their own script to read directory files and post a custom message to them. Unless you can think of a way to have ONE centralized script which I can get for all accounts, I have no idea how to get this to work.

When the admin creates the account then, the script would need to move the index.cgi to the new folder they created. But on top of this, the script would also need to automatically edit the source code for the file for that particular user.

So essentially it would be a CGI configuring another CGI after creating it in a directory.

I have zero idea if anyone is understanding any of this, I am just confused as to what to do and how to do it. I would like ONE script for everyone but they are redirected to their own folders.

Any ideas or comments are welcome.


In reply to Ideas on how to redirect users to a specific index by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.