Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 18:23
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  General Conversation (Moderators: Flash-db, vesa kortelainen, Ronald Wernecke, Mohsin Sumar, Jorge Solis, Mattias Robo)
| | |-+  'GuestBook' fails to log details
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: 'GuestBook' fails to log details  (Read 2403 times)
PiDgE
Server what's that
*
Posts: 4



View Profile WWW Email
« on: 10/27/02, 09:44 »

PROBLEM:
I appear to have installed/setup 'GuestBook' successfully (i.e. i see the expected page running on my server) but after hit the submit button i get the confirmation message but my details have simply dissapeared.

NOTES:
Ive set the 'GuestBook' folder permissions to 'execute & write'
PHP works successfully with the Forum app.

SPEC:
WinXP pro
Apache 2.0.39
PHP 4.2.1

<hmmmm>

All thoughts, ideas, creative suggestions welcome, and i apologise in advance if i'm being a prune and missing something.

Cheers!

Pidge
8)
Logged
Musicman
Administrator
Systems Administrator
*****
Posts: 2685



View Profile WWW Email
« Reply #1 on: 10/27/02, 21:13 »

Hi,

can you check whether $HTTP_POST_VARS or $_POST  appears in the script? If notm the script
needs some updating to run with your php version

Musicman
Logged
PiDgE
Server what's that
*
Posts: 4



View Profile WWW Email
« Reply #2 on: 10/29/02, 07:01 »

Bugger! You're correct. If i install "PHP 4.2.3" will that solve my problem? Or can i simply insert the lines you mentioned?

Much appreciated!
Logged
Musicman
Administrator
Systems Administrator
*****
Posts: 2685



View Profile WWW Email
« Reply #3 on: 10/29/02, 08:26 »

Hi,

you will have to modify the script for ANY php version 4.1 and later
In old hp a variable from the movie (your textboxes might have been named "name", "email", "message" just appears in the php script as $name, $email, $message etc.
In new php versions you have to add lines
$name = $_POST["name"];
for all the variables you are expecting from the movie.

Musicman
Logged
PiDgE
Server what's that
*
Posts: 4



View Profile WWW Email
« Reply #4 on: 11/04/02, 10:50 »

Afternoon chap,

Feel a little confused, need to clarify your advice. Below you'll find details of the GuestBook.php script as it is now, and below the script with your suggested changes, assuming i've understood you correctly (?):

(current)
               $Name = ereg_replace("[^A-Za-z0-9 ]", "", $Name);
   $Email = ereg_replace("[^A-Za-z0-9 \@\.\-\/\']", "", $Email);
   $Comments = ereg_replace("[^A-Za-z0-9 \@\.\-\/\']", "", $Comments);
   $Website = eregi_replace("http://", "", $Website);
   $Website = ereg_replace("[^A-Za-z0-9 \@\.\-\/\'\~\:]", "", $Website);
   $Name = stripslashes($Name);
   $Email = stripslashes($Email);
   $Website = stripslashes($Website);
   $Comments = stripslashes($Comments);
(new)
               $Name = $_POST["name"];
               $Email = $_POST["email"];
               $Comments = er$_POST["comments"];
   $Website = eregi_replace("http://", "", $Website);
   $Website = ereg_replace("[^A-Za-z0-9 \@\.\-\/\'\~\:]", "", $Website);
   $Name = stripslashes($Name);
   $Email = stripslashes($Email);
   $Website = stripslashes($Website);
   $Comments = stripslashes($Comments);

...apologies for being a thicky, I'm learning, albiet rather slowly. Smiley
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything