Old 05-21-2006   #1 (permalink)
Registered User
 
x32fzw's Avatar
 
Join Date: Jul 2005
Posts: 12

PHP Include problem/question

Woah, havnt posted here in a while....

Ok, my problem;
I made a php Shoutbox from the tutorial here (works perfectly btw) but only if the code is placed within the page itself.

What i would like, is that i could just put a "php include" to call the php to run the shout box in the space rather than have the full code on that page.

Only thing i cant work out, is there any code which would allow the, say, shoutbox.php file to call the active page the viewer is on?
The shoutbox is on every page but ever time you hit enter/shout it calls refreshes to whatever link is in the code.

I hope that makes sense...
Couple of people want the code off me but it seems overly tricky to impliment if its not totally independent.

Thanks for any help!
__________________
x32Graphics.co.uk - Overdue for an upgrade.
x32fzw is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 05-22-2006   #2 (permalink)
Eternal Being
 
Join Date: Feb 2006
Location: Finland
Posts: 239

If I understood you correctly you have a problem with the action property of the form since the page where the form is varies? Then try this on the action field.
PHP Code:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
Hope this helps
__________________
Telos is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pro's and Con's to Upgrading PHP pipersdragon HTML / PHP / ASP / JS 1 12-30-2005 12:43 AM
PHP Tutorial Trio! Man1c M0g Announcements 3 07-09-2005 09:15 AM
Php... Joe HTML / PHP / ASP / JS 35 06-22-2004 12:08 AM
PHP Help! Someone please help me LimitLess HTML / PHP / ASP / JS 12 05-16-2004 08:59 AM
Digital's Quick and Dirty Guide to PHP Order HTML / PHP / ASP / JS 15 05-05-2004 01:18 AM


All times are GMT +1. The time now is 05:18 PM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT