| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Account Suspended | 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? |
| |
| | #4 (permalink) |
| Senior Member | 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! |
| |
| | #6 (permalink) | |
| Senior Member | Quote:
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! | |
| |
| | #8 (permalink) | |
| Eating Pie | 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. Links: http://www.promosi-web.com/script/guestbook/ http://bobschwarz.com/modules/mydown...file.php?lid=4 - Steve Quote:
Yes it does require premissions of 0777 to be able to add data too it. Sometimes 0666 will work. - Steve
__________________ I feel old. | |
| |
| | #9 (permalink) | |
| Senior Member | Quote:
__________________ 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! | |
| |
| | #10 (permalink) |
| Eating Pie | 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. |
| |
| | #12 (permalink) | |
| Senior Member | Quote:
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! | |
| |
| | #13 (permalink) |
| Account Suspended | 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 03:04 PM. |
| |
| | #14 (permalink) |
| Eating Pie | 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. |
| |
| | #16 (permalink) | |
| Senior Member | Quote:
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! | |
| |
| | #18 (permalink) | |
| Senior Member | Quote:
Code: <TD><IMG SRC="image" WIDTH=x HEIGHT=x></TD> Code: <TD background="images" WIDTH=x HEIGHT=x>ifram will go here</TD> Code: <iframe name="name" src="guestbook.php"></iframe> Code: <TD background="images" WIDTH=x HEIGHT=x> <iframe name="name" src="guestbook.php"></iframe></TD> 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! | |
| |
| | #20 (permalink) | |
| Senior Member | Quote:
__________________ 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! | |
| |
| | #21 (permalink) |
| Account Suspended | 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? |
| |
| | #22 (permalink) | |
| Senior Member | Quote:
Sorry, maybe I should not try to help people late at night when drinking ![]() 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");
?>
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! | |
| |
| | #23 (permalink) |
| Account Suspended | 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"); ?><!--webbot bot="HTMLMarkup" endspan --></p> </body> </html> |
| |
| | #24 (permalink) |
| Senior Member | 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! |
| |
![]() |
| 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 03:56 AM |
| Chapter 23 Web Marketing Integration | WebForging | Webmaster Tutorials | 0 | 03-20-2005 08:00 PM |
| Interested in a Guestbook Host PHP Script | geekpipe | Scripts For Sale | 2 | 09-19-2004 09:21 AM |
| Guestbook form??? | majinfaisal | Web Design Discussion | 7 | 08-14-2004 12:10 AM |