PDA

View Full Version : Need some info on dynamic web pages


elite311
01-21-2006, 11:42 AM
Well first off I just want to say that i read these forms all the time because i seem to find the answer i need in someone else post. But in this case i haven't been able to find anything on the subject i need.

What i'm trying to do is this. I have a website i made and i'm offering monthly specials on products i sell. I want to create a basic page for my monthly specials and be able to change the information via the web as i have other people changinf the info that i don't want playin with the site. What is invovled in seting up a page that I can change the info on another page with. All i'm tying to change is the package i'm offering the discount code and the vaility time of the code. I've been playing around with thsi for a while now and i just cant get anywhere with it. I was hopeing somone here could help me or at least point me in the right direction or to some tutorials.

Any help would be appreciated
Thanks

mark87
01-21-2006, 11:48 AM
I want to create a basic page for my monthly specials and be able to change the information via the web as i have other people changinf the info that i don't want playin with the site.

I understand the first part, but not the second...

If you want to change information online, the best method would be to use a database and pull up the database value using PHP. There are alternatives though, for instance, you could simply store the value in a text file and pull up the value using an include.

<? include("discountcode.txt") ?>

You'd need to create a form to do this, and use a server side language (again, such as PHP) to write to the files (or database). You'd also need some password protection.

elite311
01-21-2006, 11:51 AM
sorry now that i read that it doesn't make much sense.

I just want to have a page that i can pull up change the values and hve it change the values on the page the public sees. Kinda liek a form like you said where i type the values in and save it and the public pages changes to the values

i'm takin there is no easy way to do this i know a bit of php but i'm still tryin to learn it.