Update of What's new content thru flash website

This is a discussion on "Update of What's new content thru flash website" within the PHP Forum section. This forum, and the thread "Update of What's new content thru flash website are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 6th, 2007, 05:50
New Member
Join Date: Aug 2007
Location: Singapore
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Update of What's new content thru flash website

Dear All ,
Good Day. I am doing a student website for my interest group. I had met with a problem.

On the main page , I had include a what's new text box. This text box update our members of the upcoming events and activities.

As i do not wish to be the only one whom update this website only , i need to do a interface page. Is it possible to do an interface page on the website itself which could update the what's new text box easily. My group members are not tech-savy.

The interface must be easily to use. It could be a page where one could enter a admin password and the interface page loads.

The interface page had to allow the user to update or edit the what's new text box content.

Could the above be done thru flash 8 ? And could someone advice me on how to get it done ?

Thanks.
Reply With Quote

  #2 (permalink)  
Old Aug 6th, 2007, 14:59
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: Update of What's new content thru flash website

I think this would be more easily accomplished through php or asp...

Moving it to those forums.

Cheers,

Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #3 (permalink)  
Old Aug 7th, 2007, 02:42
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Update of What's new content thru flash website

yes, first do a page like this:
Code: Select all
<form action="admin.php">
password:<input type="password" name="pass">
<input type="submit" value="login">
</form>
then on admin.php:
PHP: Select all

<?php 
session_start
();

$password $_POST['pass'];
$adminpass "pass123"//change to password you want
if(!password == $adminpass) {
echo 
"login error";
exit();
} else {
$_SESSION['admin'] = "admin";
echo 
"logged in!";
}
Put some html link by here to the page that will have the interface

on the interface page, (interface.php we'll call it)
PHP: Select all

session_start();
if(!isset(
$_SESSION['admin'])) {
echo 
"not logged in as admin!";
exit();
}
?> 
and then by here the interface.
I will be back when i get the code i used for an interface
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)

Last edited by karinne; Aug 7th, 2007 at 11:49. Reason: Please use the proper vB code tags tags when displaying code!
Reply With Quote
  #4 (permalink)  
Old Aug 7th, 2007, 02:44
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Update of What's new content thru flash website

right if that all works put this on the interface page:
Code: Select all
 <form action="file.php">
    <textarea width="100%" height="400px" style="width:100%;height:400px" name="updates" wrap="logical" rows="21" cols="42">
</textarea>
<input type="submit" value"Make it!" name="submit">
</form>
two secs let me get the php file..
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)

Last edited by karinne; Aug 7th, 2007 at 11:50. Reason: Please use [ code ]...[ /code ] tags when displaying code.
Reply With Quote
  #5 (permalink)  
Old Aug 7th, 2007, 02:49
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Update of What's new content thru flash website

PHP: Select all

<?php
session_start
();

if (!isset(
$_SESSION['administrator'])) {
header("location: /index.php");
exit();
}

$filecode $_GET['updates'];
echo 
$filecode;
$file "updates.shtml";
echo 
$file;


 
$fp fopen("files/".$file"a+");
   
fwrite($fp$filecode);
   
fclose($fp);
   echo (
"success");
?>
then put and include to the file updates.shtml where you want it

all of this is not the perfect way and i'm sure someone else will help tune it up.
and there might be some (or a lot of) errors
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)

Last edited by karinne; Aug 7th, 2007 at 11:50. Reason: Please use [ php]...[ /php] tags when displaying code.
Reply With Quote
Reply

Tags
updateflash

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Happy New Year!!! (Can you update my website?) Skelbo Web Page Design 2 Jul 27th, 2007 20:23
Possible to update content through text files? jwilliams31 Web Page Design 14 Nov 25th, 2006 23:12
Having customer update website? Mpow540 Web Page Design 9 Sep 18th, 2006 13:11
website update help Aaron1988 PHP Forum 5 Aug 31st, 2006 13:08
Best way for client to update their website? edd90 Introduce Yourself 3 Aug 22nd, 2006 20:12


All times are GMT. The time now is 05:37.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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