I need a PHP programmer to help me with a guestbook

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
FinalAeon
Forum Newbie
Posts: 17
Joined: Sat Aug 02, 2003 2:51 pm
Location: ATL, GA

I need a PHP programmer to help me with a guestbook

Post by FinalAeon »

Situation:

Ok, what i want is an HTML form on my own web page, that gets the data. And when they hit submit, the data is sent to a php file or something and is converts the data somehow so that it can be displayed on the original page that the for was on...u know...like including a php file in a website. but the data is in a php file. so when the php is included in the web page (the one with the data on it), the data they sent is on that same page with the form.

This has been bugging me for probably like 6 months now. and if u dont understand what i'm trying to say please please please talk to me on AIM. and i can explain some more. thank you.
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

in that case change the html to php

unless you're looking to hire someone here, i'd suggest bookmarking http://www.php.net

the first things you should look up are the tag types: <?php <? <%

the reason you should look that up is because depending on the server configureation you may be able to use only one of them or alll three of them.

the second thing you need to do is decide itf you're using a text file or database.

in the case of the former i suggets picking a character like ; that isn't used often and using that as a seperator
FinalAeon
Forum Newbie
Posts: 17
Joined: Sat Aug 02, 2003 2:51 pm
Location: ATL, GA

Post by FinalAeon »

some guy gave me a php count that was php based....and i didn't "know" the code....but i "understood it" and the data was send to a php file...and the html file had the <%php include (or somthing like that) line in it and the data went from the text document to the html page like that.

i dont plan on learning php now..... (but soon though)...but all i need is this one thing right now so any help would be apreciated :D
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

since you plan on learning it, the best help i can give you is a good book to look at: isbn: 156592610

this way you can do both at once
jmarcv
Forum Contributor
Posts: 131
Joined: Tue Jul 29, 2003 7:17 pm
Location: Colorado

Post by jmarcv »

Its something like this. Call the form. Everything is blank, so you make the form call itself. When the user clicks submit, the second time through, make the form go to the processing program. Then place the values entered into the <input tags

Code: Select all

<?php
if($_POST['submit']){
	echo "<form action=$PHP_SELF method=POST>";
}
else {
	echo "<form action=commit.php method=POST>";
}
echo '<input type=text NAME=thevar value="'.$_POST['thevar'].'">';
echo "<INPUT TYPE=Submit NAME=submit VALUE=1>";
echo "</form>";
?>
FinalAeon
Forum Newbie
Posts: 17
Joined: Sat Aug 02, 2003 2:51 pm
Location: ATL, GA

World Writable

Post by FinalAeon »

does anyone know how to makephp world writable on windows? ...... something like "chmod 777" or something....my friends been trying to help....so i dont really know any of this....please help
Post Reply