Dear Mr Jeffrey Dyke

There are some queries regarding PHP 4.1.As you mentioned in php 4.1
register_globals=off. are set for security reasons.

Is it Required to have Form attribute  as enctype="multipart/form-data" if i
have a File Upload on the Particular Form.

<form name=form1 action="test.php3" method="Post"
enctype="multipart/form-data">
i.e <input type=file name=filename>

I am Facing a Problem as when i am removing the enctype attribute in Form
object, i am able to pass form values data
from one form to another form i.e the destination form will able to retrieve
the form values, but from the source form when i keep the enctype attribute
in the source form object, i am unable to pass the values i.e the
destination form is unable to retrieve
the values passed from source form.

Second Problem is I am unable to retrieve the image name using
$_FILES['filename']['name']; in the Destination form.
The source form has the file upload html tag

<form name=form1 action="test.php3" method="Post"
enctype="multipart/form-data">
i.e <input type=file name=filename>
<input type=submit value=submit>

Awaiting Your Prompt Reply,

Thanks & Regards,
Prashant S Akerkar












----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Prashant A" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 8:03 PM
Subject: Re: Unable to Retrieve HTML Form Values(test1.html) from a PHP
Page(test1.php)


>
> you need to use $_POST['test1']
>
> http://www.php.net/register_globals
>
> php, by default has register_globals=off.  for security reasons...so
you'll
> need to use $_POST, $_GET, $_FILES, $_REQUEST etc.....
>
> hth
> jeff
>
>
>
>                       "Prashant A"
>                       <[EMAIL PROTECTED]        To:
<[EMAIL PROTECTED]>
>                       thnyou.com>               cc:
>                                                 Subject:  Unable to
Retrieve HTML Form Values(test1.html) from a PHP Page(test1.php)
>                       10/28/2003 09:23
>                       AM
>
>
>
>
>
>
>
> Dear Sir
>
> Our Site is running on Linux/Apache/PHP/MySQL Combination.
>
> I am unable to retrieve the Values passed from HTML FORM(test1.html) in a
> PHP Page(test1.php)
>
> Is it something to do with the Web Server Settings or any thing
> else...............?
>
> The code is as follows;
>
> Test1.html
>
>
> <html>
> <head>
>
> <title>Test Page</title>
> </head>
>
> <body>
>
>
> <form name=form1  method="Post"  action="test1.php">
>
> <input type=text name="text1" value="">
>
> <input type=submit value="Ok" >
>
>
> </form>
> </body>
>
> </html>
>
>
>
> Test1.php
>
>
> <html>
> <head>
> <title>Test Page</title>
> </head>
>
> <body>
> <form name=form1>
>
>
> <?php
> echo $text1;
> ?>
>
> </FORM>
> </body>
>
> </html>
>
> After Submitting the form text1.html to text1.php by adding some text in
> textbox text1, i am unable to print the textbox value
> text1 in Text1.php page.
>
> Can you help me in this regard asap?
>
> Thanks & Regards,
>
> Prashant  S Akerkar.
>
>
>
>
>
>
>
>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to