#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    16
    Rep Power
    0

    Need assistance with my Content Management project


    I'm building a content management system for my web site, but sadly I'm way over my head. My PHP knowledge is very scarce ( to say the least ) and it quite simply not enough for something of this complexity.

    I need an html form to get specific variables from an external PHP file into a text field. This way, all content of the variable would be editable inside of the text area.

    I also need an html list/menu form object to chose which variable ill be edited inside that external php file.

    Here's the link to the details of what I need:

    http://www.tertuliadofado.com/work.html

    Appreciate all the help
  2. #2
  3. Senior Member
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Jun 2000
    Location
    Enschede, The Netherlands
    Posts
    1,527
    Rep Power
    16
    Hi Pedro,

    Either you want somebody to do this for you (post should be in the section 'Project Help Wanted') or you want advice on how to do it yourself... the latter is mostly accompanied with some code, a description of what it should do and the problem (what is does(n't) do etc...) If you haven't got any code yet you might want some pointers on how/where to start...
    There are some tutorials on DevShed and on www.phpbuilder.com for basic tutorials... also check PHPNuke for an example of a CMS

    Regards
    There are 10 types of people in this world - those who understand binary and those who don't...

    PHP | MySQL | DevShed Forum Search | Google Search
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    226
    Rep Power
    12
    user typo3. http://www.typo3.org
    It is the best.


    just my 2 cents
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    16
    Rep Power
    0
    I'm almost certain I wouldn't be able to do this on my own.

    I'll post this in the projects forum.

    Cheers
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Posts
    31
    Rep Power
    13
    I can help you do this, I sent you an email...
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    16
    Rep Power
    0
    Originally posted by mrlugal
    I can help you do this, I sent you an email...
    Responded

    Cheers for the help
  12. #7
  13. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    16
    Rep Power
    0
    Cant seem to get it to work.


    http://www.tertuliadofado.com/conte...eworkdammit.php

    The list isnt recognizing the variables.

    The html form file

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <form name="form1" method="post" action="form.php">
    <select name="selectname">
    <option selected>Get variables</option>
    <option name="selectname1" value="text1">Get variable 1</option>
    <option name="selectname2" value="text2">Get variable 2</option>
    </select>
    <br>
    <textarea name="textareaname"></text>
    <br>
    <input type="submit" name="Submit" value="Submit">
    </form>
    </body>
    </html>

    Form.php - the file that the html form executes.

    <?
    // this should be in the file that processes the form, ie: action=thisfile.php
    /*
    use the list values to determine which file to use:
    remember: you need to give your <SELECT> list a name and give each <OPTION> a value (in your example, "variable1" and "variable2" would be appropriate)
    */
    if($_GET["textareaname"]=="text1" )$filename = "content.php";
    else if($_GET["textareaname"]=="text2" )$filename = "content.php";
    else die("no variable selected" );
    // update the file:
    $ofile=fopen($filename,"w" );
    fwrite($ofile,$_GET["textareaname"]);
    fclose($filename);
    // display confirm page:
    header("Location: confirm.php" );
    ?>

    content.php - the variables file

    <?php
    // Texto da página principal
    $text1 = "text 1";
    $text2 = "text 2";
    ?>
  14. #8
  15. One & Only
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Location
    Currently in MalayAsia
    Posts
    8
    Rep Power
    0
    try mamboserver {http://www.mamboserver.com/ }.. they're pretty neat. i am using it for my site.. beats the nit out of figuring things...

IMN logo majestic logo threadwatch logo seochat tools logo