Kal Amry <[EMAIL PROTECTED]> wrote:
> If I have a form in named formName1 such as:
>
>
>
> How can I get the name "formName1" from within file.php
you can't. but you can add a hidden form field to each form to pass
along a value. for example:
...
(then you can just access $form in file.p
Ben Edwards <[EMAIL PROTECTED]> wrote:
> Have a regular expression which replaces ' with '' (used to insert ' into db):
> preg_replace("/\'/", "''", $text );
> This works great on the UNIX production machine but not on windows
> development environment. Actually replaces ' with \'' not ''.
>
Michael Champagne <[EMAIL PROTECTED]> wrote:
> Great, thanks for the response Jim. Would there possibly be a way around this
> using mod_rewrite?
no. if you'll check your logs, you'll see that the request is never
even making it to your server. internet explorer simply barfs on urls
that include
Michael Champagne <[EMAIL PROTECTED]> wrote:
> Ok, this is semi-related to PHP. I think it may mainly be our Apache
> configuration. We have our listener listening on .
>
> This URL works: http://hostname.capis.com:/
> This URL does not: hostname.capis.com:/
>
> Is there anyway to
Fábio migliorini <[EMAIL PROTECTED]> wrote:
> 2) Can I write a program in php and to distribute it under the gpl license?
yes.
jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
Kevin P <[EMAIL PROTECTED]> wrote:
> echo " value='$currentPosition+1'>";
>
> can anyone tell me how to get this to stop printing:
>
>
echo "";
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To co
Jeff Oien <[EMAIL PROTECTED]> wrote:
> I want to check if an uploaded file is an image. This isn't working.
> Could anyone help me out?
>
> if (!eregi("\\.gif$", $img1_name) ||
> !eregi("\\.jpg$", $img1_name) ||
> !eregi("\\.jpeg$", $img1_name)) {
>error message
> }
unless you expect
Rory O'Connor <[EMAIL PROTECTED]> wrote:
> $sql2=str_replace("","\n",$sql2);
> $sql2=str_replace("","\r",$sql2);
you've got the first two arguments backwards.
$sql2=str_replace("\n","",$sql2);
$sql2=str_replace("\r","",$sql2);
or with php4.0.5 (or later):
$sql2=str_replace(array("\
James <[EMAIL PROTECTED]> wrote:
> When I print an array out with print_r (php 4.06 on IIS 4.0) it does not
> print newlines even if newlines are embedded in the array element. I must
> embed , instead.
it probably is printing the newlines, but in html, newlines are
treated like any other whites
Gerard Samuel <[EMAIL PROTECTED]> wrote:
> My seem stupid to some, but when running
> update tablename set x='$x', y='$y', z='$z' where a=$a;
> Does it matter if it the set were in backwards order ie z, y, x ??
the order does not matter. (although unless you're sure $a is an
integer value, you ma
Lb <[EMAIL PROTECTED]> wrote:
> 1) I thought that PHP automatically created variables for all form elements
> on a page. When I run this, the dropdown box contains the first item, but
> $Report evaluates as null. I am unclear why.
>
>
> 1 Test Report A
> 2 Test Report B
> 3 Test Repo
Kevin Keeler <[EMAIL PROTECTED]> wrote:
> $entry_hidden = eregi_replace(".+","",$entry);
try: $entry_hidden = preg_replace("|.+?|i","",$entry);
".+" is 'greedy', meaning it consumes as much as text as it can. with
perl-like regular expressions, you can add a trailing "?" which makes
the + and *
Charlie Romero <[EMAIL PROTECTED]> wrote:
> $results = virtual("/cgi-bin/search.cgi?q=hello&m=world");
virtual doesn't return the content of the subrequest, it sends it to
the browser.
you need to use something like popen() to do what you're trying
to do.
jim
--
PHP General Mailing List (http
Alexander Skwar <[EMAIL PROTECTED]> wrote:
> Is there a PHP newsgroup around? I'm not talking about the ones at
> news.php.net, btw.
>
> Or is alt.php the "official" newsgroup?
the only thing resembling official newsgroups are those at
news.php.net.
jim
--
PHP General Mailing List (http://ww
the unsubscribe address works exactly as advertised, if you can be
bothered to read the directions. 347 people have managed to do so this
month. (and 372 have managed to subscribe, so i guess the list is
growing.)
otherwise, you can always contact the list administrators, the address
for which is
Chris Lott <[EMAIL PROTECTED]> wrote:
> Since nothing seems to be available at snaps.php.net/manual I grabbed the
> phpdoc cvs tree. Could anyone who is building their own manual tell me what
> I need to build it? I'm running RedHat Linux 7.1
egon answered the question about what you need, but yo
16 matches
Mail list logo