Help needed...again

hey again,
this time i need help with the following…

i have a guest book i created in flash and using php, but i kinda screwed up somewhere along the line and i dont know where, please help me someone…i’ve attached the files below :frowning:

hope you can help :slight_smile: thanks

Exactly what is not working? Did you test it?

pom :asian:

when you fill out the entry form and click submit, where your submission should appear, there is all little symbols like $*^% and stuff and all the other dynamic text boxes will up with symbols aswell.

What should happen? And what’s the code that feeds the dynamic texts?

your submission should appear in a scrollable text box, theres something wrong with the php file i think, or this code

NumLow = 0;
NumHigh = 10;
loadVariablesNum (“GuestBook.php?NumLow=”+NumLow+"&NumHigh="+NumHigh+"&R="+random(999), 0);

Hi joso,

I take it you signed up then. Because you’re using PHP - or did was something else the problem, not your ISP?

Is there a link to your site so we can see how it runs (the guestbook)?

Yeah, I meant the PHP code…

pom :slight_smile:

hey flex,

im working on a link, give me five…

pom the code is :

$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);

if ($Submit == “Yes”) {
$filename = “GuestBook.txt”;

$fp = fopen( $filename,"r"); 
$OldData = fread($fp, 80000); 
fclose( $fp ); 

$Today = (date ("l dS of F Y ( h:i:s A )",time()));

$Input = "Name: &lt;b&gt;$Name&lt;/b&gt;&lt;br&gt;Email: &lt;b&gt;&lt;u&gt;&lt;a href=\"mailto:$Email\"&gt;$Email&lt;/a&gt;&lt;/b&gt;&lt;/u&gt;&lt;br&gt;Website: &lt;b&gt;&lt;u&gt;&lt;a href=\"http://$Website\" target=\"_blank\"&gt;$Website&lt;/a&gt;&lt;/b&gt;&lt;/u&gt;&lt;br&gt;Comments: &lt;b&gt;$Comments&lt;/b&gt;&lt;br&gt;&lt;i&gt;&lt;font size=\"-1\"&gt;Date: $Today&lt;/font&gt;&lt;br&gt;&lt;br&gt;.:::.";

$New = "$Input$OldData";

$fp = fopen( $filename,"w+"); 
fwrite($fp, $New, 80000); 
fclose( $fp ); 

$filename = “GuestBook.txt”;

$fp = fopen( $filename,"r"); 
$Data = fread($fp, 80000); 
fclose( $fp );

$DataArray = split (".:::.", $Data);

$NumEntries = count($DataArray) - 1;

print "&TotalEntries=$NumEntries&NumLow=$NumLow&NumHigh=$NumHigh&GuestBook=";
for ($n = $NumLow; $n &lt; $NumHigh; $n++) {
print $DataArray[$n];
	if (!$DataArray[$n]) {
	Print "&lt;br&gt;&lt;br&gt;&lt;b&gt;No More entries&lt;/b&gt;";