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-06-2006, 07:18 PM   #26 (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
Now it says "array" in the iframe!
I'm getting excited! lol
okay, now we are getting somewhere.
????: NamePros.com http://www.namepros.com/programming/164770-guestbook-integration.html
I have to step out for a little bit, but will post back when I get back in
__________________
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:22 PM THREAD STARTER               #27 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



Np at all. This doesn't have to be done tonight. I just gave you 10NB - Sorry for being cheap...I'm saving for a domain.
zack is offline  
Old 02-06-2006, 10:01 PM   #28 (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 at all. This doesn't have to be done tonight. I just gave you 10NB - Sorry for being cheap...I'm saving for a domain.
Thanks for the NP$

Okay, here is the work around for the array issue.

First open your form file and make these changes:
Change this:
Code:
<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>
To this:
????: NamePros.com http://www.namepros.com/showthread.php?t=164770
Code:
<form method="get" enctype="multipart/form-data" action="gb.php">
  <p>
     </p>
Then open your .php file (the one that does the processing and
replace the entire thing with this and save:
PHP Code:
<?
$name 
$_GET["name"];
$email $_GET["email"];
$title $_GET["textfield"];
$message $_GET["textarea"];
$handle fopen("gbdata.txt""a");
if (!
$handle) {
print(
"Could not append to file");
exit;
}
fputs ($handle,implode,("\n"));
????: NamePros.com http://www.namepros.com/showthread.php?t=164770
fwrite($handle,"<b>$name</b><br /><b>$email</b><br /><b>$title</b><br />$message<br /><br />");
fclose($handle);

header("Location: http://cherreysexhaust.com/guestbook.htm"); 
?>
Now this does not show the date of the post, and it puts them in accending, not decending.

If you want to change these let me know.
__________________
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-07-2006, 11:04 AM THREAD STARTER               #29 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



Hmm. It doesn't seem to be working correctly.
www.cherreysexhaust.com/guestbook.htm

I don't think I changed the form code correctly.
This is what it was before I made the changes.

<form method="post" width=195 enctype="multipart/form-data" action="guestbook.php"> <input type="hidden" name="env_report" value="REMOTE_HOST,HTTP_USER_AGENT"> <input type="hidden" name="require" value="name,textfield,textarea">
<TABLE WIDTH=136 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0> <tr> <td>
<div align="center"><font face="Verdana" size="2" color="#333333">
<strong style="font-weight: 400">Name</strong></font></div><div align="center">
<input name="name" type=text size="20"> </div></td> </tr> <tr> <td>
<div align="center"><font color="#333333" face="Verdana" size="2">
<strong style="font-weight: 400">Email</strong></font></div><div align="center">
<input name="email" type=text size="20"> </div></td> </tr> <tr> <td>
<div align="center"><strong style="font-weight: 400">
<font color="#333333" face="Verdana" size="2">Title</font></strong></div><div align="center"> <input name="textfield" type="text" size="20"> </div></td> </tr> <tr> <td>
<div align="center"><strong style="font-weight: 400">
<font color="#333333" face="Verdana" size="2">Message</font><font face="Verdana">
</font></strong></div><div align="center">
????: NamePros.com http://www.namepros.com/showthread.php?t=164770
<textarea name="textarea" cols="20" rows="5"></textarea> </div></td> </tr> <tr>
<td><div align="right"> <input type="submit"> </div></td> </tr> </table> </form>

I changed the "method=" "enctype=" and "action=" to what you said and it worked out to what you see on online now (link to guestbook at top).

PS. I also changed (action="gb.php") to (action=guestbook.php)
Was I right in doing this?
Last edited by zack; 02-07-2006 at 11:07 AM.
zack is offline  
Old 02-07-2006, 01:31 PM   #30 (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
Yeah, changing that gb to guestbook was good.
????: NamePros.com http://www.namepros.com/showthread.php?t=164770

You need to open the form html page, and highlight the first part that I posted in my last post, and then copy the part I said to change it to, and past it over, It needs to be exactly like that.
See yours still looks like this:
Code:
<form method="post" width=195 enctype="multipart/form-data" action="guestbook.php"> <input type="hidden" name="env_report" value="REMOTE_HOST,HTTP_USER_AGENT"> <input type="hidden" name="require" value="name,textfield,textarea">
and it needs to look like this:
Code:
<form method="GET" width=195 enctype="multipart/form-data" action="guestbook.php">
ONLY, I removed those other two lines on puropes, they should not be there.
__________________
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-07-2006, 07:14 PM THREAD STARTER               #31 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



Hmm. Should it be working now?
I did exactly what you said with the post above.
It posted my info - but alkwardly and with a bit of code
The link...
www.cherreysexhaust.com/guestbook.htm
zack is offline  
Old 02-07-2006, 07:23 PM   #32 (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
Open up your .txt file and delete all that mumbo jumbo, lol

Then post to me the two files so I can compare them.
__________________
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-07-2006, 07:28 PM THREAD STARTER               #33 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



mumbo jumbo el deleted-0
Attached Files
File Type: zip guestbook.zip (1.9 KB, 1 views)
zack is offline  
Old 02-07-2006, 07:34 PM   #34 (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
hmm, everything looks correct.
It works on all my servers like this.
so, try this.
Change the .txt file to an .html file, and change the permission to 777.

I think the differance is I have phpsuEXEC on all my servers, and I think you do not on yours.

*note: you will have to change in the .php file, the .txt to .html aswell
__________________
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-07-2006, 07:54 PM THREAD STARTER               #35 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



I Love You Oulzack!
zack is offline  
Old 02-07-2006, 07:57 PM   #36 (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 Love You Oulzack!
I can't leave another zack hanging!
????: NamePros.com http://www.namepros.com/showthread.php?t=164770

here is one more thing, go into FP (if thats what you use) and click on the outside frame of the Iframe, and once its selected, right click it and select properties, and set the border to '0' that way the black box is not around the frame.
__________________
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-07-2006, 08:08 PM THREAD STARTER               #37 (permalink)
Account Suspended
 
zack's Avatar
Join Date: Apr 2005
Posts: 167
zack is on a distinguished road
 



Oh yea us zacks gotta look out for each other! lol
Thanks for the iframe tip.. Looks nice!

Thanks for the help zac - If you ever need a favour don't hesitate to ask.
zack is offline  
Old 02-07-2006, 08:10 PM   #38 (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
No problem, and will do.
If you ever need or want to change anything on it, just let me know aswell
__________________
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  
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 11:49 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