[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 02-05-2006, 11:44 AM   #1 (permalink)
Account Suspended
 
zack's Avatar
 
Join Date: Apr 2005
Posts: 167
0.00 NP$ (Donate)

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, 11:58 AM   #2 (permalink)
Eating Pie
 
iNod's Avatar
 
Join Date: Nov 2004
Location: Canada
Posts: 2,289
126.05 NP$ (Donate)

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, 12:00 PM   #3 (permalink)
Account Suspended
 
zack's Avatar
 
Join Date: Apr 2005
Posts: 167
0.00 NP$ (Donate)

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, 12:03 PM   #4 (permalink)
Senior Member
 
{insert name here}'s Avatar
 
Join Date: Dec 2004
Posts: 1,307
46.90 NP$ (Donate)

{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, 12:06 PM   #5 (permalink)
Account Suspended
 
zack's Avatar
 
Join Date: Apr 2005
Posts: 167
0.00 NP$ (Donate)

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, 12:11 PM   #6 (permalink)
Senior Member
 
{insert name here}'s Avatar
 
Join Date: Dec 2004
Posts: 1,307
46.90 NP$ (Donate)

{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
Quote:
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, 12:13 PM   #7 (permalink)
Account Suspended
 
zack's Avatar
 
Join Date: Apr 2005
Posts: 167
0.00 NP$ (Donate)

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, 12:15 PM   #8 (permalink)
Eating Pie
 
iNod's Avatar
 
Join Date: Nov 2004
Location: Canada
Posts: 2,289
126.05 NP$ (Donate)

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.

Links:

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

- Steve

Quote:
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, 12:17 PM   #9 (permalink)
Senior Member
 
{insert name here}'s Avatar
 
Join Date: Dec 2004
Posts: 1,307
46.90 NP$ (Donate)

{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
Quote:
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, 12:20 PM   #10 (permalink)
Eating Pie
 
iNod's Avatar
 
Join Date: Nov 2004
Location: Canada
Posts: 2,289
126.05 NP$ (Donate)

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, 12:41 PM   #11 (permalink)
Account Suspended
 
zack's Avatar
 
Join Date: Apr 2005
Posts: 167
0.00 NP$ (Donate)

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, 12:48 PM   #12 (permalink)
Senior Member
 
{insert name here}'s Avatar
 
Join Date: Dec 2004
Posts: 1,307
46.90 NP$ (Donate)

{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
Quote:
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, 03:01 PM   #13 (permalink)
Account Suspended
 
zack's Avatar
 
Join Date: Apr 2005
Posts: 167
0.00 NP$ (Donate)

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 03:04 PM.
zack is offline  
Old 02-05-2006, 03:18 PM   #14 (permalink)
Eating Pie
 
iNod's Avatar
 
Join Date: Nov 2004
Location: Canada
Posts: 2,289
126.05 NP$ (Donate)

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, 03:30 PM   #15 (permalink)
Account Suspended
 
zack's Avatar
 
Join Date: Apr 2005
Posts: 167
0.00 NP$ (Donate)

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, 07:47 PM   #16 (permalink)
Senior Member
 
{insert name here}'s Avatar
 
Join Date: Dec 2004
Posts: 1,307
46.90 NP$ (Donate)

{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
Quote:
Originally Posted by zack
Np...

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

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, 06:55 AM   #17 (permalink)
Account Suspended
 
zack's Avatar
 
Join Date: Apr 2005
Posts: 167
0.00 NP$ (Donate)

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, 03:19 PM   #18 (permalink)
Senior Member
 
{insert name here}'s Avatar
 
Join Date: Dec 2004
Posts: 1,307
46.90 NP$ (Donate)

{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
Quote:
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:

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, 04:38 PM   #19 (permalink)
Account Suspended
 
zack's Avatar
 
Join Date: Apr 2005
Posts: 167
0.00 NP$ (Donate)

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, 04:41 PM   #20 (permalink)
Senior Member
 
{insert name here}'s Avatar
 
Join Date: Dec 2004
Posts: 1,307
46.90 NP$ (Donate)

{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
Quote:
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, 04:55 PM   #21 (permalink)
Account Suspended
 
zack's Avatar
 
Join Date: Apr 2005
Posts: 167
0.00 NP$ (Donate)

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, 05:47 PM   #22 (permalink)
Senior Member
 
{insert name here}'s Avatar
 
Join Date: Dec 2004
Posts: 1,307
46.90 NP$ (Donate)

{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
Quote:
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

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, 06:00 PM   #23 (permalink)
Account Suspended
 
zack's Avatar
 
Join Date: Apr 2005
Posts: 167
0.00 NP$ (Donate)

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");
?><!--webbot bot="HTMLMarkup" endspan --></p>

</body>

</html>
zack is offline  
Old 02-06-2006, 06:02 PM   #24 (permalink)
Senior Member
 
{insert name here}'s Avatar
 
Join Date: Dec 2004
Posts: 1,307
46.90 NP$ (Donate)

{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, 06:10 PM   #25 (permalink)
Account Suspended
 
zack's Avatar
 
Join Date: Apr 2005
Posts: 167
0.00 NP$ (Donate)

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 12:05 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85