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

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? ?php $name = $_POST['FNAME']; echo ::$name::; $output = str_replace(FNAME, $name, $output); ? ?? I tried that, but I know I can

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

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... (all

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 the

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

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, as now I

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 =

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 =

RE: [PHP] $_POST not working with str_replace

2004-03-23 Thread Chris W. Parker
PHP Email List mailto:[EMAIL PROTECTED] 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 other

RE: [PHP] $_POST not working with str_replace

2004-03-23 Thread PHP Email List
what happens if you do the following? ?php $name = $_POST['FNAME']; echo ::$name::; $output = str_replace(FNAME, $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

RE: [PHP] $_POST not working with str_replace

2004-03-23 Thread Chris W. Parker
PHP Email List mailto:[EMAIL PROTECTED] 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 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 don't

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 the