# Help needed...again

**URL:** <https://forum.kirupa.com/t/help-needed-again/5775>\
**Category:** Uncategorized\
**Created:** [September 21, 2002, 2:30pm UTC](https://forum.kirupa.com/t/help-needed-again/5775 "2002-09-21T14:30:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![joso](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@joso](https://forum.kirupa.com/u/joso)\
**Post date:** [September 21, 2002, 2:30pm UTC](https://forum.kirupa.com/t/help-needed-again/5775/1 "2002-09-21T14:30:23Z")

</div>

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 ☹

hope you can help 🙂 thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 21, 2002, 4:55pm UTC](https://forum.kirupa.com/t/help-needed-again/5775/2 "2002-09-21T16:55:08Z")

</div>

Exactly what is not working? Did you test it?

pom :asian:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 21, 2002, 5:10pm UTC](https://forum.kirupa.com/t/help-needed-again/5775/3 "2002-09-21T17:10:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 21, 2002, 5:19pm UTC](https://forum.kirupa.com/t/help-needed-again/5775/4 "2002-09-21T17:19:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 21, 2002, 5:29pm UTC](https://forum.kirupa.com/t/help-needed-again/5775/5 "2002-09-21T17:29:11Z")

</div>

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);  
stop();

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 21, 2002, 6:41pm UTC](https://forum.kirupa.com/t/help-needed-again/5775/6 "2002-09-21T18:41:00Z")

</div>

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)?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 21, 2002, 7:21pm UTC](https://forum.kirupa.com/t/help-needed-again/5775/7 "2002-09-21T19:21:18Z")

</div>

Yeah, I meant the PHP code…

pom 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 21, 2002, 7:51pm UTC](https://forum.kirupa.com/t/help-needed-again/5775/8 "2002-09-21T19:51:57Z")

</div>

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;";
	exit;
	}
}

```

?\>
