Results 1 to 3 of 3
Thread: eregi - error in this code?
May 27, 2001, 12:56 #1
eregi - error in this code?
This code works:
$form_input = eregi_replace("disco|hip-hop|soul","BARRY WHITE",$form_input);
This code doesn't do anything:
echo "<HTML><HEAD><META HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=http://www.tigertom.com/cgi-bin/Captain_Picard.cgi?bounce1=1\"></HEAD></HTML>\n";
nor does this:
echo "<HTML><HEAD><META HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=http://www.tigertom.com/cgi-bin/Captain_Picard.cgi?bounce2=1\"></HEAD></HTML>\n";
Have I made a mistake in the code? What I'm trying to do
is filter input, and redirect to an external cgi-script.
When I type in the words 'soul', 'hip-hop', nothing happens. They are printed to the php page.
I'm a PHP newbie, I should say!
May 27, 2001, 13:49 #2
- Join Date
- Aug 2000
- San Diego, CA
- 0 Post(s)
- 0 Thread(s)
How about this:
Please don't PM me with questions.
Use the forums, that is what they are here for.
May 27, 2001, 14:57 #3
Thank you Freddy.
I had tried this early on in my travails, but the header was already
set in the script. Php is a curious beast; I'm trying to find where in the
code I can 'catch' the form input *before* the header is set.
I'd post the entire script, but it's someone else's work; I'm trying to
Your idea was a good one; I'll try using it instead, and stick it earlier
on in the script.