|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
__________________
What is this? |
|
#4
|
|||
|
|||
|
I'm almost certain I wouldn't be able to do this on my own.
I'll post this in the projects forum. Cheers |
|
#5
|
|||
|
|||
|
I can help you do this, I sent you an email...
|
|
#6
|
|||
|
|||
|
Quote:
Responded Cheers for the help ![]() |
|
#7
|
|||
|
|||
|
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"; ?> |
|
#8
|
||||
|
||||
|
try mamboserver {http://www.mamboserver.com/ }.. they're pretty neat. i am using it for my site.. beats the nit out of figuring things...
|
![]() |
| Viewing: Dev Shed Forums > Other > Project Help Wanted > Need assistance with my Content Management project |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|