NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Guestbook integration

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 02-05-2006, 12:44 PM THREAD STARTER               #1 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



Guestbook integration


So the page is http://CherreysExhaust.com/guestbook.htm
I want a signing form below the "Sign" header in a cell. And I want the entrys displayed below the "guestbook/testimonials" header.

I having trouble finding a form that will fit into the cell or without ads. Anyone know how I can do this?
zack is offline  
Old 02-05-2006, 12:58 PM   #2 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,272
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Are you looking for an entire system? Do you have the PHP or anything else, processing backend of it?

Or are you just looking for an HTML form?

- Steve
__________________
I feel old.
iNod is offline  
Old 02-05-2006, 01:00 PM THREAD STARTER               #3 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



I want something simple. I've got php, but I don't have a lot of experiance with it. I was just planning on using iframes to view the entry page.
zack is offline  
Old 02-05-2006, 01:03 PM   #4 (permalink)
Senior Member
 
{insert name here}'s Avatar
Join Date: Dec 2004
Posts: 1,304
{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light
 


Breast Cancer
I would recomend making your own flat file guestbook.
All you have to do for this, is creat a simple form, under the sign section, and then create an Iframe in the other section.
have the form post to a .txt file, or html file, and then have the Ifram show the contents of that file.

If you need help with that let me know.
Some will say this is not good, but its simple.
__________________
You got no time for the messenger,
got no regard for the thing that you don't understand,
you got no fear of the underdog,
that's why you will not survive!
{insert name here} is offline  
Old 02-05-2006, 01:06 PM THREAD STARTER               #5 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



Simple is good! If you could point me towards a step by step tut that would be great. I have zero clue how to do this - I can make a form with FP but thats where I'll stop lol.
zack is offline  
Old 02-05-2006, 01:11 PM   #6 (permalink)
Senior Member
 
{insert name here}'s Avatar
Join Date: Dec 2004
Posts: 1,304
{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light
 


Breast Cancer
Originally Posted by zack
Simple is good! If you could point me towards a step by step tut that would be great. I have zero clue how to do this - I can make a form with FP but thats where I'll stop lol.
I dont know of a tut, but if you create the simple form in FP, make it have these settings:

method="post"
action="your file to post to"

Then just create the borderless iframe, and include the file in it.
__________________
You got no time for the messenger,
got no regard for the thing that you don't understand,
you got no fear of the underdog,
that's why you will not survive!
{insert name here} is offline  
Old 02-05-2006, 01:13 PM THREAD STARTER               #7 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



Ok - I'll try that and get back to you.
Do I have to adjust the permissions of the writable file?
zack is offline  
Old 02-05-2006, 01:15 PM   #8 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,272
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
I gather you can do the rest. So below is a few guestbook scripts. They use flatfile. I would suggest either <?php include("guestbookfilename.php"); ?> or <iframe src="guestbookfilename.php"></iframe> to include the guestbook.
????: NamePros.com http://www.namepros.com/programming/164770-guestbook-integration.html

Links:

http://www.promosi-web.com/script/guestbook/
http://bobschwarz.com/modules/mydown...file.php?lid=4

- Steve

Originally Posted by zack
Ok - I'll try that and get back to you.
Do I have to adjust the permissions of the writable file?
You can take my examples and see how they did it.

Yes it does require premissions of 0777 to be able to add data too it. Sometimes 0666 will work.

- Steve
__________________
I feel old.
iNod is offline  
Old 02-05-2006, 01:17 PM   #9 (permalink)
Senior Member
 
{insert name here}'s Avatar
Join Date: Dec 2004
Posts: 1,304
{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light
 


Breast Cancer
Originally Posted by iNod
Yes it does require premissions of 0777 to be able to add data too it. Sometimes 0666 will work.
You are correct sir!
__________________
You got no time for the messenger,
got no regard for the thing that you don't understand,
you got no fear of the underdog,
that's why you will not survive!
{insert name here} is offline  
Old 02-05-2006, 01:20 PM   #10 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,272
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
I do recommand you add ip checking or a little admin area so you can delete the messages that are posted. As some people like to post garbage. So you can add a little thing to disallow blocked IPs from posting but not from viewing your website. Just so you can keep your customers or maybe customers happy

- Steve
__________________
I feel old.
iNod is offline  
Old 02-05-2006, 01:41 PM THREAD STARTER               #11 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



I thought I knew how to create a form but I guess I don't. Anyone have a script to input into FP so I can fit it properly? (sorry for being so useless)
zack is offline  
Old 02-05-2006, 01:48 PM   #12 (permalink)
Senior Member
 
{insert name here}'s Avatar
Join Date: Dec 2004
Posts: 1,304
{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light
 


Breast Cancer
Originally Posted by zack
I thought I knew how to create a form but I guess I don't. Anyone have a script to input into FP so I can fit it properly? (sorry for being so useless)
Try this:
Code:
<html>
<form method="post" enctype="multipart/form-data" action="your-file-here">
  <p>
  <input type="hidden" name="require" value="name,textfield,textarea">
   <input type="hidden" name="env_report" value="REMOTE_HOST,HTTP_USER_AGENT">
</p>
  <TABLE WIDTH=200 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
    <tr> 
      <td><div align="right"><strong>Name:</strong></div></td>
      <td><div align="center"> 
          <input name="name" type=text size="20">
        </div></td>
    </tr>
    <tr> 
      <td><div align="right"><strong>Email:</strong></div></td>
      <td><div align="center"> 
          <input name="email" type=text size="20">
        </div></td>
    </tr>
    <tr> 
      <td><div align="right"><strong>Title : </strong></div></td>
      <td><div align="center"> 
          <input name="textfield" type="text" size="20">
        </div></td>
    </tr>
    <tr> 
      <td><div align="right"><strong>Body (Message): </strong></div></td>
      <td><div align="center"> 
          <textarea name="textarea" cols="20" rows="10"></textarea>
        </div></td>
    </tr>
    <tr> 
      <td><div align="right"></div></td>
      <td><div align="center"> </div></td>
    </tr>
    <tr> 
      <td colspan="2"><div align="right"> 
          <input type="submit">
        </div></td>
    </tr>
  </table>
</form>
</html>
__________________
You got no time for the messenger,
got no regard for the thing that you don't understand,
you got no fear of the underdog,
that's why you will not survive!
{insert name here} is offline  
Old 02-05-2006, 04:01 PM THREAD STARTER               #13 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



THanks for the code Oulzac. I placed it in my cell. Now I need to know what to do with these forms...
The page with forms is up if you want to look at the code.
click here
Last edited by zack; 02-05-2006 at 04:04 PM.
zack is offline  
Old 02-05-2006, 04:18 PM   #14 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,272
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
First thing you need to do is create the processing PHP End of it. Than name it something like guestbook.php and change action in your form tag to action="guestbook.php" or what ever you named it.

- Steve

PS. Thanks for the Rep
__________________
I feel old.
iNod is offline  
Old 02-05-2006, 04:30 PM THREAD STARTER               #15 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



Np...

Ok..I did that...Now when I submit it loads that page (guestbook.php).

Is this all I do? besides setting the permissions?
zack is offline  
Old 02-05-2006, 08:47 PM   #16 (permalink)
Senior Member
 
{insert name here}'s Avatar
Join Date: Dec 2004
Posts: 1,304
{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light
 


Breast Cancer
Originally Posted by zack
Np...

Ok..I did that...Now when I submit it loads that page (guestbook.php).
????: NamePros.com http://www.namepros.com/showthread.php?t=164770

Is this all I do? besides setting the permissions?
First make sure the .php file is set to permission 666.
Then in your page, create the Iframe where you want to show it, and set its contents to the file.
__________________
You got no time for the messenger,
got no regard for the thing that you don't understand,
you got no fear of the underdog,
that's why you will not survive!
{insert name here} is offline  
Old 02-06-2006, 07:55 AM THREAD STARTER               #17 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



When I put the iframe in my page messes up (im slicing). Can I lock a cell's dimensions?

Also, is the all I do to get the form to write to the php file?
zack is offline  
Old 02-06-2006, 04:19 PM   #18 (permalink)
Senior Member
 
{insert name here}'s Avatar
Join Date: Dec 2004
Posts: 1,304
{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light
 


Breast Cancer
Originally Posted by zack
When I put the iframe in my page messes up (im slicing). Can I lock a cell's dimensions?

Also, is the all I do to get the form to write to the php file?
If you mean you sliced a photoshop image, and saved for web, and that block is an image it should look like this:

Code:
<TD><IMG SRC="image" WIDTH=x HEIGHT=x></TD>
you would need to change it to this:

Code:
<TD background="images" WIDTH=x HEIGHT=x>ifram will go here</TD>
Then you will add this where the iframe goes:

Code:
<iframe name="name" src="guestbook.php"></iframe>
So it should look like this completed:
????: NamePros.com http://www.namepros.com/showthread.php?t=164770

Code:
<TD background="images" WIDTH=x HEIGHT=x>
<iframe name="name" src="guestbook.php"></iframe></TD>
You will probably have to play with the Iframe size a little too.

If you want, you can PM me the code for the page, and I will make the changes for you, and send it back
__________________
You got no time for the messenger,
got no regard for the thing that you don't understand,
you got no fear of the underdog,
that's why you will not survive!
{insert name here} is offline  
Old 02-06-2006, 05:38 PM THREAD STARTER               #19 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



Thanks, that code worked beautiful. So should the guestbook work after I namd the action and set the php permissions?
zack is offline  
Old 02-06-2006, 05:41 PM   #20 (permalink)
Senior Member
 
{insert name here}'s Avatar
Join Date: Dec 2004
Posts: 1,304
{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light
 


Breast Cancer
Originally Posted by zack
Thanks, that code worked beautiful. So should the guestbook work after I namd the action and set the php permissions?
Yes, it should work.
__________________
You got no time for the messenger,
got no regard for the thing that you don't understand,
you got no fear of the underdog,
that's why you will not survive!
{insert name here} is offline  
Old 02-06-2006, 05:55 PM THREAD STARTER               #21 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



Hmm. Doesn't seem to be working. When I click to submit my info it takes me to "http://cherreysexhaust.com/guestbook.php" which is blank....THen I went back the the guestbook and refreshed the page and my info wasnt there. I also right clicked the iframe page and pressed refresh.

http://cherreysexhaust.com/guestbook.htm to check for yourself.

Does the php page require any coding?
zack is offline  
Old 02-06-2006, 06:47 PM   #22 (permalink)
Senior Member
 
{insert name here}'s Avatar
Join Date: Dec 2004
Posts: 1,304
{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light
 


Breast Cancer
Originally Posted by zack
Hmm. Doesn't seem to be working. When I click to submit my info it takes me to "http://cherreysexhaust.com/guestbook.php" which is blank....THen I went back the the guestbook and refreshed the page and my info wasnt there. I also right clicked the iframe page and pressed refresh.

http://cherreysexhaust.com/guestbook.htm to check for yourself.
Sorry, maybe I should not try to help people late at night when drinking
????: NamePros.com http://www.namepros.com/showthread.php?t=164770

I skipped major steps, here is what I left out.

Okay, first, create a new file, call it gbdata.txt, set the permission of this file to 666.
then change the permission of guestbook.php back to 644.
Now edit guestbook.php and add this code to it:

Code:
<?
$handle = fopen("gbdata.txt", "w+");
$text = "$HTTP_POST_VARS";
fwrite($handle, $text);
fclose($handle);
header("Location: http://cherreysexhaust.com/guestbook.htm"); 
?>
Now if in the Ifram all it says is array, let me know.

opps, forgot to say, to change the file the iframe loads to the .txt file, and not the php file
__________________
You got no time for the messenger,
got no regard for the thing that you don't understand,
you got no fear of the underdog,
that's why you will not survive!
{insert name here} is offline  
Old 02-06-2006, 07:00 PM THREAD STARTER               #23 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



Haha. I couldn't imagine trying to code drunk. I cant sober. Don't make me a priority man - I don't expect you to keep helping me!

Something funny loads in the iframe.
http://cherreysexhaust.com/guestbook.htm to see it.

Maybe i inserted the code wrong. Thi is how i did it.

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>

<p><!--webbot bot="HTMLMarkup" startspan --><?
$handle = fopen("gbdata.txt", "w+");
$text = "$HTTP_POST_VARS";
fwrite($handle, $text);
fclose($handle);
header("Location: http://cherreysexhaust.com/guestbook.htm");
????: NamePros.com http://www.namepros.com/showthread.php?t=164770
?><!--webbot bot="HTMLMarkup" endspan --></p>

</body>

</html>
zack is offline  
Old 02-06-2006, 07:02 PM   #24 (permalink)
Senior Member
 
{insert name here}'s Avatar
Join Date: Dec 2004
Posts: 1,304
{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light{insert name here} is a glorious beacon of light
 


Breast Cancer
First I forgot to tell you to change the file loads in the iframe to the .txt file and not the .php file.

Then in the .php file, the only thing that should be in there is the code I gave :
<?
$handle = fopen("gbdata.txt", "w+");
$text = "$HTTP_POST_VARS";
fwrite($handle, $text);
fclose($handle);
header("Location: http://cherreysexhaust.com/guestbook.htm");
?>

Nothing else, remove all that other stuff
__________________
You got no time for the messenger,
got no regard for the thing that you don't understand,
you got no fear of the underdog,
that's why you will not survive!
{insert name here} is offline  
Old 02-06-2006, 07:10 PM THREAD STARTER               #25 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



Now it says "array" in the iframe!
I'm getting excited! lol
zack is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Customizable Guestbook Script nicedomain4sale Free Resources 0 05-15-2005 04:56 AM
Chapter 23 Web Marketing Integration WebForging Webmaster Tutorials 0 03-20-2005 09:00 PM
Interested in a Guestbook Host PHP Script geekpipe Scripts For Sale 2 09-19-2004 10:21 AM
Guestbook form??? majinfaisal Web Design Discussion 7 08-14-2004 01:10 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 10:25 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger