Search found 8 matches

by timodemus
Thu Feb 24, 2011 10:25 am
Forum: PHP - Code
Topic: Fixing an old (PHP4?) flatfile guestbook
Replies: 1
Views: 2375

Fixing an old (PHP4?) flatfile guestbook

I'm trying to fix a flatfile -based PHP-guestbook called "Tiekku" (It worked fine in an older version of PHP). "Tiekku" was originally made by user "Tumpi" on a finnish programming forum "Ohjelmointiputka" ( http://www.ohjelmointiputka.net/ ). "Tiekku&quo...
by timodemus
Thu Apr 09, 2009 12:52 pm
Forum: PHP - Code
Topic: PHP - Making a simple content management system
Replies: 0
Views: 53

PHP - Making a simple content management system

I'm making a content management form that uses simple tags, like "[pict][/pict]". It works fine with simple content, but I don't know how to handle GET -variables in it. I convert my tags to html with this code: <?php $file = file("file.txt");   // Printing file for ($i = 0; $i <...
by timodemus
Fri Aug 01, 2008 12:26 pm
Forum: PHP - Code
Topic: Changing a simple web page from GET to Sessions
Replies: 11
Views: 548

Re: Changing a simple web page from GET to Sessions

Thanks again, I can now do the thing I wanted to. The script I posted was just a bad example, I'm not making an online shop. I want to use links, because I make dynamic pages such as http://www.tammelantyosali.net/ (Click on the picture and then click "Työtoiminta" on the left and follow t...
by timodemus
Fri Aug 01, 2008 11:55 am
Forum: PHP - Code
Topic: Changing a simple web page from GET to Sessions
Replies: 11
Views: 548

Re: Changing a simple web page from GET to Sessions

Thanks! How do I make a form that has <input type="image" src="rainbow.gif" name="image" width="60" height="60"> and sends product=hat by POST, by pressing this button? PS: I haven't made any forms myself, yet. PPS: I speak finnish better than english.
by timodemus
Fri Aug 01, 2008 11:33 am
Forum: PHP - Code
Topic: Changing a simple web page from GET to Sessions
Replies: 11
Views: 548

Re: Changing a simple web page from GET to Sessions

Thanks!

The 3rd one is allways a useful solution, but I want my URL to be just http://www.timodemus.net/ and nothing else.

How do I make a button that uses any picture of my choise (and not using javascript, having a hand as a mouse pointer)?
by timodemus
Fri Aug 01, 2008 11:09 am
Forum: PHP - Code
Topic: Changing a simple web page from GET to Sessions
Replies: 11
Views: 548

Re: Changing a simple web page from GET to Sessions

This is close to what I mean:   <HTML> <HEAD> <TITLE>Web Page</TITLE> </HEAD> <BODY> <?php   if($_POST['product'] =="hat") { echo '- Hat -<br> This hat is used by American Army.'; };   if($_POST['product'] =="shoes") { echo '- Shoes -<br> These shoes are water resistant.'; };   i...
by timodemus
Fri Aug 01, 2008 10:27 am
Forum: PHP - Code
Topic: Changing a simple web page from GET to Sessions
Replies: 11
Views: 548

Re: Changing a simple web page from GET to Sessions

I'm trying to hide the information (in other words: not to display variables in URL) from user and to have the same functionality as in the script I posted. I don't want to use javascript, because some users have disabled it from browser's settings.
by timodemus
Fri Aug 01, 2008 10:03 am
Forum: PHP - Code
Topic: Changing a simple web page from GET to Sessions
Replies: 11
Views: 548

Changing a simple web page from GET to Sessions

I have a simple script (written in php) that uses GET to transfer variables, and I want to use sessions instead of GET. How do I do it ? (Any code would be greatly appreciated, because I learn this better if I have a fully functional script I can study !!!) This is the script I want to change:   <HT...