> I am new to php, can anybody pls help me out with my query?
> How to do a server to server post in php, without client
> knowing about it.
There's a function called Post2Host. Look in the archives of this newsletter
or in Google Groups and you'll find the code for it.
--
PHP General
> If the "\" are showing up in form posted data just do this:
>
> $newtext = stripslashes($oldtext);
That's what I'm doing now before they're written to the file.
> The slashes are put before any single or double quote by a
> nifty little php feature called "magic quotes". By escaping
> quotes i
> It's extremely important as to where you put the function within your
> script.
Understood, and as I said before, I'm fairly new to PHP, so I'm bound to
make the boneheaded mistakes. But I did try and solve it myself before
begging for help :)
Basically, the user enteres some text into a form,
> Try this function:
> http://www.php.net/manual/en/function.stripslashes.php
Oddly enough, as I told John, I did that as well and it doesn't work.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Anyway, with asides to the snooty "RTFM" reply I got, I thought I'd share.
Turns out the \'s that I was having problems getting rid of were written
there from a form post that was used to collect the data. I still haven't
found a way to remove them after reading them from the file, but I did
mana
I'm trying to remove all \'s from a string before printing it, but strtr
still treats it as an escape character. How do I remove them? Anyone?
--
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Pkwy.
Anchorage, AK 99508
907.770.6200 ext.220
907.336.6205 (fax)
Web: www.hea
> I have just installed apache+php4, but my php can not get
> values from form?
> what's wrong?
Before you can use the variables, you have to make the accessible to PHP.
Try putting this at the top of your welcome.php file:
--
The Health TV Channel, Inc.
(a non - profit organization)
38
Just out of curiosity, before I get elbows-deep in this, has anyone does
this already, before I start rewriting the wheel? Using PHP to POST a file
and a few variables to another server's catcher script that is.
> > fputs($fp, "Content-Type: multipart/form-data; boundary=AaB03x\n");
> > fputs($fp
8 matches
Mail list logo