RE: [PHP] $_POST not working with str_replace

2004-03-26 Thread Ford, Mike [LSS]
On 24 March 2004 22:28, PHP Email List wrote: > And ? #2 are there any settings within PHP that would limit > my ability to > visually display the contents of a POST variable on a .rtf document as > opposed to being displayed on the browser? Yes -- take a look at the variables_order directive (h

RE: [PHP] $_POST not working with str_replace

2004-03-24 Thread PHP Email List
> -Original Message- > From: Rick Fletcher [mailto:[EMAIL PROTECTED] > > If your script has the same "==" where a plain ol' "=" should be, that'd > account for the replacement being empty (since it's replaced with > $na, which > wasn't assigned). Well your correct, that put me to ease some

RE: [PHP] $_POST not working with str_replace

2004-03-24 Thread Rick Fletcher
> Ok here's the deal, I cut out the middle man, went straight > to the script, assigned my variable a string, and loaded the > rtf page, NADA, ZIP, ZILCH!! At least as far as this test is concerned, I hope you have a nice soft desk to bang your head on. Check your assignment operator one more t

RE: [PHP] $_POST not working with str_replace

2004-03-24 Thread PHP Email List
> -Original Message- > From: Brent Baisley [mailto:[EMAIL PROTECTED] > What is > interchangeable is $_REQUEST with $_POST or $_GET. You may try using > $_REQUEST just for testing. If it works, then you could use $_REQUEST > since it will work with GET or POST variables. Although that's not

RE: [PHP] $_POST not working with str_replace

2004-03-24 Thread PHP Email List
> -Original Message- > From: Brent Baisley [mailto:[EMAIL PROTECTED] > A technicality, but GET/POST are not interchangeable, it depends on the > method declared in your form. I'm sure you meant they were > interchangeable if you changed your form method. Right I had mentioned that... (al

Re: [PHP] $_POST not working with str_replace

2004-03-24 Thread Brent Baisley
A technicality, but GET/POST are not interchangeable, it depends on the method declared in your form. I'm sure you meant they were interchangeable if you changed your form method. What is interchangeable is $_REQUEST with $_POST or $_GET. You may try using $_REQUEST just for testing. If it work

RE: [PHP] $_POST not working with str_replace

2004-03-24 Thread Ford, Mike [LSS]
> -Original Message- > From: PHP Email List [mailto:[EMAIL PROTECTED] > Sent: 24 March 2004 00:13 > > > what happens if you do the following? > > > $name = $_POST['FNAME']; > > echo "::$name::"; > > $output = str_replace("<>", $name, $output); > > ?> > > ?? > > I tried that, but

RE: [PHP] $_POST not working with str_replace

2004-03-23 Thread PHP Email List
> -Original Message- > From: John W. Holmes [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 23, 2004 7:59 PM > > Like someone else said, you need to whittle your code down to a minimum > and do a lot of variable checking along the way. Slowly add code back > until you find what's causing

Re: [PHP] $_POST not working with str_replace

2004-03-23 Thread John W. Holmes
PHP Email List wrote: Ok I tried the print_r($_POST) and received... Array ( [FNAME] => test [LNAME] => t [ADDRESS] => t [CITY] => t [STATE] => t [ZIP] => t [DATE] => t [PARAGRAPH1]=> t [PARAGRAPH2] => t [FROM] => t [SUBMIT] => TEST ME ) So they array isn't empty for my post. Obviously the values

RE: [PHP] $_POST not working with str_replace

2004-03-23 Thread Chris W. Parker
PHP Email List on Tuesday, March 23, 2004 4:13 PM said: > I tried that, but I know I can get the values from the $_POST array > as per John's email about using print_r($_POST) to see what was > showing. And yes I get the value I wanted in between the :: ::. hhhm

RE: [PHP] $_POST not working with str_replace

2004-03-23 Thread PHP Email List
what happens if you do the following? >", $name, $output); ?> ?? I tried that, but I know I can get the values from the $_POST array as per John's email about using print_r($_POST) to see what was showing. And yes I get the value I wanted in between the :: ::. Thanks for trying though, Anyone

RE: [PHP] $_POST not working with str_replace

2004-03-23 Thread Chris W. Parker
PHP Email List on Tuesday, March 23, 2004 3:08 PM said: > This is becoming very odd! > Possible bug? I hate throwing that out there but it doesn't make > sense why one would work and the other wouldn't since all any of them > are doing is holding "strings". Any othe

RE: [PHP] $_POST not working with str_replace

2004-03-23 Thread PHP Email List
PHP Email List wrote: > Ok here's my problem, I'm in the midst of creating a string replace to work > on a rtf file that is on the server, this fuctionallity works perfect with > "GET" but not "POST", I guess I don't understand why. [snip] > $name = $_POST['FNAME']; [snip] > $output = str_replace(

Re: [PHP] $_POST not working with str_replace

2004-03-23 Thread John W. Holmes
PHP Email List wrote: Ok here's my problem, I'm in the midst of creating a string replace to work on a rtf file that is on the server, this fuctionallity works perfect with "GET" but not "POST", I guess I don't understand why. [snip] $name = $_POST['FNAME']; [snip] $output = str_replace("<>",$na

[PHP] $_POST not working with str_replace

2004-03-23 Thread PHP Email List
Hey gang, Ok here's my problem, I'm in the midst of creating a string replace to work on a rtf file that is on the server, this fuctionallity works perfect with "GET" but not "POST", I guess I don't understand why. The reason I don't want to use GET over POST is due to the character restrictions.