On 08/02/2011 10:04 AM, Donovan Brooke wrote:
Hello!,
I must not be understanding something as I would expect 'f_file'
to show up in the print_r below.:
---form--
form action=index.php method=post enctype=multipart/form-data
input type=hidden name=f_ap value=upload /
input
Hi Danny,
On Friday, March 11, 2011, 7:28:10 PM, you wrote:
I have a form that has a long list of radio-bottons inside of it. The
radio-buttons are dynamically created via php and MySQL.
Here is an example of one of the radio buttons:
input type=radio name=?php print
On 03/11/2011 01:28 PM, Danny wrote:
Hi guys,
I have a form that has a long list of radio-bottons inside of it. The
radio-buttons are dynamically created via php and MySQL.
Here is an example of one of the radio buttons:
input type=radio name=?php print (radio_.$result_from_mysql) ; ?
You could use foreach to iterate through the post variables until you
encounter a match:
foreach ($_POST as $key = $value){
if (substr($key, 0, 6) == radio_) {
$buttonName = $key;
$buttonValue = 4value;
break 2;
}
}
I haven't tried the above code, but I hope
On 3/11/2011 12:03 PM, Shawn McKenzie wrote:
On 03/11/2011 01:28 PM, Danny wrote:
Hi guys,
I have a form that has a long list of radio-bottons inside of it. The
radio-buttons are dynamically created via php and MySQL.
Here is an example of one of the radio buttons:
input type=radio
On 03/11/2011 02:33 PM, Jim Lucas wrote:
On 3/11/2011 12:03 PM, Shawn McKenzie wrote:
On 03/11/2011 01:28 PM, Danny wrote:
Hi guys,
I have a form that has a long list of radio-bottons inside of it. The
radio-buttons are dynamically created via php and MySQL.
Here is an example of one of
On 3/11/2011 2:43 PM, Geoff Lane wrote:
[snip]
You could use foreach to iterate through the post variables until you
encounter a match:
foreach ($_POST as $key = $value){
if (substr($key, 0, 6) == radio_) {
$buttonName = $key;
$buttonValue = 4value;
break 2;
On 12/01/2010 08:56 PM, Nadim Attari wrote:
On 12/01/2010 06:50 PM, Bundhoo M Nadim wrote:
Hello,
Can someone explain me what this piece of code basically does ?
?php
header(Expires: . gmdate(D, d M Y H:i:s, time() + (0*60)) . GMT);
header(Pragma: no-cache);
print
On 12/01/2010 10:08 PM, Daniel P. Brown wrote:
On Wed, Dec 1, 2010 at 12:15, Nadim Attarina...@alienworkers.com wrote:
where does receipt.php gets the $_GET data ? Isn't it from response.php
where the $_POST data are being http_build_query()'ed ??
$param = http_build_query($_POST);-
On Wed, Dec 1, 2010 at 16:32, Nadim Attari na...@alienworkers.com wrote:
Thank you Daniel for this detailed post of yours. Really appreciated.
Quite welcome.
Saving the $_POST data (in response.php) in a file will serve nothing. - And
you said this was an unnecessary step from the
Alex Kirk wrote:
I've got an Apache 2.2.3 server running PHP 5.2.6 on top of FreeBSD 6.2.
It's worked quite well for over a year now. However, as of some time
last night, phpBB broke; upon investigation, I realized that the problem
was that $_POST was never getting populated, even on properly
Nathan Rixham wrote:
Alex Kirk wrote:
I've got an Apache 2.2.3 server running PHP 5.2.6 on top of FreeBSD
6.2. It's worked quite well for over a year now. However, as of some
time last night, phpBB broke; upon investigation, I realized that the
problem was that $_POST was never getting
I've got an Apache 2.2.3 server running PHP 5.2.6 on top of FreeBSD
6.2. It's worked quite well for over a year now. However, as of some
time last night, phpBB broke; upon investigation, I realized that the
problem was that $_POST was never getting populated, even on properly
formed HTML forms.
Did you check the apache logs or the php error logs?
Apache logs show no errors at all. The PHP error log is more interesting
- I turned on logging to /var/log/php.err once I started trying to
diagnose this, and that file has yet to be created.
Apache can't write to that location. You
Alex Kirk wrote:
I've got an Apache 2.2.3 server running PHP 5.2.6 on top of FreeBSD
6.2. It's worked quite well for over a year now. However, as of some
time last night, phpBB broke; upon investigation, I realized that the
problem was that $_POST was never getting populated, even on properly
touch /var/log/php.err
chown apache:apache /var/log/php.err
adjust apache with your webserver user/group (check httpd.conf)
though I doubt anything will show up there.
Well, done anyway, just in case.
Do you have mod_security enabled in apache? Maybe it's catching
something it shouldn't.
I've got an Apache 2.2.3 server running PHP 5.2.6 on top of FreeBSD
6.2. It's worked quite well for over a year now. However, as of some
time last night, phpBB broke; upon investigation, I realized that the
problem was that $_POST was never getting populated, even on properly
formed HTML forms.
Christian Hänsel wrote:
Hi guys,
this might be a noob- question, but I simply do not care anymore. After
a few hours of fiddling with this @/**%$ (screaming AAa), I
would like to ask you.
So what I have is this: I have a search engine for a car market, which
has about 30 $_POST-
Why not simply unset() the unwanted value by its key, i.e., the submit button's
name.
Tim wrote:
Hi,
Quick question regarding $_POST array element order, first the situation:
I am submitting a form with x first fields and the post value returns the
last element as being the submit button
Al wrote:
Why not simply unset() the unwanted value by its key, i.e., the submit
button's name.
actually double unset it. to avoid the request array key hack that exists in
older versions of php :-)
Tim wrote:
Hi,
Quick question regarding $_POST array element order, first the situation:
Tanoor Dieng wrote:
Hi,
are there some variables in your post array(aka are you sure that
$_POST is not empty)?
Normally this should works.
Tanoor.
2006/2/24, Jason Gerfen [EMAIL PROTECTED]:
I am not sure why this is not working. Aren't $_POST vars
superglobals? I am trying to pass the
Since $_POST is a superglobal, it should not lose scope inside a
function() call. I could be wrong though.
Also, curious if $args is empty.. what is $num and $message. ?
Also.. you're calling a function in your return statement ?
On 2/24/06, Jason Gerfen [EMAIL PROTECTED] wrote:
Tanoor Dieng
Vidyut Luther wrote:
Since $_POST is a superglobal, it should not lose scope inside a
function() call. I could be wrong though.
Also, curious if $args is empty.. what is $num and $message. ?
Also.. you're calling a function in your return statement ?
On 2/24/06, Jason Gerfen [EMAIL
I am not as familiar with php as I am c++ but I wonder if you need to
pass by reference? Does this make sense in the context of php?
One other thing I would try is setting $temp = $_Post and then passing
$temp.
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Christopher Taylor wrote:
I am not as familiar with php as I am c++ but I wonder if you need to
pass by reference? Does this make sense in the context of php?
One other thing I would try is setting $temp = $_Post and then passing
$temp.
Chris
Yeah, I actually tried that as well.
--
just for fun, I tried to do what you're doing.
http://www.phpcult.com/jason.phps
http://www.phpcult.com/jason.php to run it..
it seems to be working.. the problem is in your code.. but not PHP properly..
On 2/24/06, Jason Gerfen [EMAIL PROTECTED] wrote:
Christopher Taylor wrote:
I am not
As I learned recently, register_globals should always be off, you do not
need it to enable GET and POST variables. I believe enabling it will do
something like set $_POST[name] to $name automatically (of course there's
always the 90% chance that I'm absolutely wrong).
You might want to see if
register_globals=on will result in a totally non transparant way of variables
from a post being usuable. For example: You post the variable tt_name with a
value, than echo $tt_name will show that value without you having to assign
it from the post.
It is not only insecure, it is also very bad
I have heard from someone you must keep turning register_globals on and off
while restarting your web server for $_POST and $_GET to work
properly although I'm not very sure..
On 12/1/05, Norbert van Nobelen [EMAIL PROTECTED] wrote:
register_globals=on will result in a totally non transparant
Fil wrote:
Ladies and Gentlemen,
Thankyou for this opportunity of picking someones brains before I tear
the place apart. I am just starting with PHP but have encountered an
insurmountable hurdle.. I need to work through HTML form posting
examples to a PHP script. ONE STEP after
Andrew Maxwell wrote:
When you submit something, and you want to make sure that the user
inputs all of the info, is there an easier way to do it than this:
if ((!$_POST[name]) || !$_POST[pass]) || (!$_POST[blah]))
{
etc.
}
is there an easy way to check if all of the varibles have data in them?
Bennie Foreman wrote:
Hi,
I am new to the PHP world so don't give me too much grief if this has a
simple solution. My problem is that the $_POST array is not being
populated. I have created a form and the method of that form is POST. I
have started the session using session_start() but still
Michael Purdy wrote:
script language=php
echo 'form method=POST action=2.php';
echo 'pInput a Test Variable input type=text name=testvar size=20/p';
echo 'pinput type=submit value=Submit name=Buttoninput type=reset value=Reset
name=B2/p';
echo '/form';
/script
Is there a particular reason you're
Thanks for help Daniel Clark. I know i must use isset function but that was
not the issue. But thanks anyway:)
Curt Zirzow thanks for your reply also. But that has nothing to do with
reference. If you use reference or not.. it still would not result in an
error (hee... I want an error :P)
I
* Thus wrote Amon ([EMAIL PROTECTED]):
Curt Zirzow thanks for your reply also. But that has nothing to do with
reference. If you use reference or not.. it still would not result in an
error (hee... I want an error :P)
function foo($v) {}
foo($asdf['qwer']);
PHP Notice: Undefined variable:
Adam Bregenzer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Having a function to undo magic quotes can be very useful if you
distribute your application. Here is what I use, just call
disable_magic_quotes(). It should not do any damage if magic_quotes is
already disabled.
On Fri, 2004-02-13 at 12:14, Joshua Beall wrote:
However, I am still interested in knowing if my code is broken in any way.
It seems to work fine for me, but as per my original post, I did get this
one odd behavior, with HTTP_RAW_POST_DATA being set, but _POST being an
empty array. Any
OK, it's only when I call $_POST[comment] in the included action file
that I get Forbidden You don't have permission to access...[error
message]. I set it up with the action as an include because if I tried
to just give the location, it tried to download jpeg-comment.php. Like I
said, this is
If you change the name of the data field to something[] then the
$_POST['something'] will be an array containing your data
The code you have will result in 2 fields (one hidden one normal) with
the same name ($i), this will cause lots of problems
It is not a good idea to give form fields
thx Mike that works :-)
thx also to the others for their help :-))
Christian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I concur, assign the superglobal array to a variable ...
$table= 'elements';
$Name = mysql_escape_string($_POST['elementName']);
$sql = INSERT INTO $table SET Name= '$Name';
... then use that opportunity to run a check on the output.
--
Jon Kriek
http://phpfreaks.com
--
PHP General
$sql=insert into $table set Name = '.$_POST[elementName].';
or even better:
$sql=insert into .$table. set Name = '.$_POST[elementName].';
But the method both Jake and Bao suggested will also work (temporary var)...
--
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
Adam Reiswig [EMAIL
$sql=insert into $table set Name = '$_POST[elementName]';
The problem with this is that you need to use curly braces around the
variable being substituted in the string. Also use single quotes around the
array index.
$sql=insert into $table set Name = '{$_POST['elementName']}';
See the
Steven == Steven Farrier [EMAIL PROTECTED] writes:
Steven I have tried using $_POST array variables in the following
Steven ways $message = ($_POST['first_name'])
Steven ($_POST['last_name'])\n($_POST['address'])\n($_POST['city'])
Steven ($_POST['state'])
Steven
this works too:
$message =
$_POST['first_name']. .$_POST['last_name'].\n.
$_POST['address'].\n.
$_POST['city']. .$_POST['state']. $_POST['zip'].\n.
$_POST['country'].\n.
$_POST['email'].\n.
$_POST['design'].\n.
$_POST['comments'];
Zbranigan [EMAIL PROTECTED] schrieb im Newsbeitrag
Try
sql = .' . $_POST['jersey_id'][$x] . ',.
Also make sure you're form is being submitted with POST and not GET...
-philip
On Tue, 25 Feb 2003, CF High wrote:
Hey all.
Got a problem with this sql statement -- php vars are evaluated (e.g. the
$date var), but not the $_POST
The substitution is made only to array keys, not its values...
Brad Apps wrote:
Hey Again,
I am doing the output from a _POST array and it seems to replace all spaces
and '.'s in the file names with '_'. so a file name brads doc.htm outputs
as brads_doc_htm. Any suggestions, PLEASE.
Thanks.
47 matches
Mail list logo