On Mon, Aug 24, 2009 at 05:56:46PM +0200, Grega Leskov??ek wrote:
> Hi, I am still a newbie in php. Is there a shorter way to include a php
> value in a form?
>
> is it possible to do smth like this like in
> JSP?
> Can I omit the last whitespace before the closing ?> ?
Y
On Mon, 2009-08-24 at 17:56 +0200, Grega Leskovšek wrote:
> Hi, I am still a newbie in php. Is there a shorter way to include a php
> value in a form?
>
> is it possible to do smth like this like in
> JSP?
> Can I omit the last whitespace before the closing ?> ?
>
>
Hi, I am still a newbie in php. Is there a shorter way to include a php
value in a form?
is it possible to do smth like this like in
JSP?
Can I omit the last whitespace before the closing ?> ?
***
I tried to download the file from another server the fancy way in PHP, but
it just display bl
Hi,
Does anyone suggest to evaluation lib.
I want to build sometin for check user posted values in php. If I remember
correctly zend framework has someting like this...
So I cust need evaluation part.
Is there any other good lib around there ?
Regards
Sancar
--
PHP General Mailing List
Hi Robert,
> I would wager because there's a ! operator preceding the ereg() call.
> Also you have very dirty code, your isEmailOk() function doesn't return
> a value in the case that the if expression fails, it assumes PHP will
> return something useful (PHP returns null, but relying on that is a
On Sun, 2005-12-11 at 14:55, MARG wrote:
> Hi,
>
> I have this form:
> http://www.tuxdoit.com/newsletter.php
>
> If you care to check it, you'll see that
> http://www.tuxdoit.com/formsResult.php
>
> never returns the function value:
>
> formsResult.php:
> -
>
Hi,
I have this form:
http://www.tuxdoit.com/newsletter.php
If you care to check it, you'll see that
http://www.tuxdoit.com/formsResult.php
never returns the function value:
formsResult.php:
-
functions.php:
; To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Value in URL issue
>
>
> Maybe you should post all the relevant code.
>
> - Original Message -
> From: "Mike R" <[EMAIL PROTECTED]>
> To: "Gabino Travassos" <[EMAIL PROTECTED]>
> Cc: <[EMAI
* Thus wrote Gabino Travassos ([EMAIL PROTECTED]):
> Maybe you should post all the relevant code.
Please dont.
If a simple script like so:
http://server/simplescript.php?avar=avalue
Is printing null, then something else is wrong.
Curt
--
First, let me assure you that this is not one of those
hmm.. the third different topic in this thread..
* Thus wrote Mike R ([EMAIL PROTECTED]):
>
> I have an issue where I have a value in a link like this:
>
> http://www.something.com/templates/nav.php?page=about
>
> But when the link is clicked on, the value of page is empty. Is this a
> globals
Maybe you should post all the relevant code.
- Original Message -
From: "Mike R" <[EMAIL PROTECTED]>
To: "Gabino Travassos" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, June 16, 2004 2:36 PM
Subject: RE: [PHP] Value in URL issue
&g
Nothing gets printed out with this. :\
-Mike
> -Original Message-
> From: Gabino Travassos [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 16, 2004 4:04 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Value in URL issue
>
>
> $_SERVER['QUERY_STRIN
$_SERVER['QUERY_STRING'] should get anything after the "?" in your url.
- Original Message -
From: "Mike R" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 16, 2004 1:45 PM
Subject: [PHP] Value in URL issue
>
> I have a
I have an issue where I have a value in a link like this:
http://www.something.com/templates/nav.php?page=about
But when the link is clicked on, the value of page is empty. Is this a
globals issue of some sort?
Thanks,
-Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
I am creating a form for editing records output from a mysql db (edit as an
html form). I've done this many times, but have never run into this issue.
I have code like this for the query:
$edit_list = mysql_query("SELECT general_inventory.quantity FROM
products_to_categories, general_inventory
l obviously doesn't work in
the case
echo $data_post;
-Original Message-
From: DougD [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 7:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] value contained within a variable contained within another
variable
I may be wa
I may be way off track with what I am trying to do, but here is my scenario
and I sure appreciate any insights.
There is a string stored in $kk1_current and I want to pull from the array
the variable name, add the "$" and then retreive the string with the
varialbe $kk1_current. This will allow to
On Friday 18 July 2003 12:40, Uma Shankari T. wrote:
> I am facing one problem..i am getting one variable value from another
> file by using href..I need to use that value in the entire file..how can i
> do that..??
>
> for example i am using the href like this..
>
>
You should be using correc
Hello,
I am facing one problem..i am getting one variable value from another
file by using href..I need to use that value in the entire file..how can i
do that..??
for example i am using the href like this..
i am passing the Apr1998 to the index file..i need to use the Apr1998
value full
Joaco <[EMAIL PROTECTED]> wrote:
> Can anyone tell me why the addDivName field is always passed as a blank...
> This is killing me.
>
>
>
>
This isnt getting submited when you press the link.
>
>
> ">
> width="58" h
ailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 3:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP] value not passed
Can anyone tell me why the addDivName field is always passed as a blank...
This is killing me.
">
Can anyone tell me why the addDivName field is always passed as a blank...
This is killing me.
">
Whenever I click on the anchor everything is sent thru except the value of
addDivName?
--
PHP General Mailing List
I know I've seen something about this (I can't remember whether yea or nay),
but I can't remember where I found it as at the time I was looking for
something else... and now that I'm looking for it I can't find it again.
Anyways, what I've done is store variable names that end up being passed as
p
By default PHP 4.3.0 has register_globals = off. As
others have mentioned, you need to change
register_globals to on in order to use HTTP GET
variables as global variables. Otherwise, you need to
use $_GET['varname'] in the case you can't edit the
configuration file.
Regards,
Brian Burg
Hudsonvi
At 10:55 24.01.2003, Rahul said:
[snip]
>When i pass a value through browser to a php page as below
>
>http://www.xyz.com/test.php?abc=test
>
>But when i try to display the variable abc as below
>
>
>
>It is not showing anything in php-4.3.0. but the value is
Hello All,
When i pass a value through browser to a php page as below
http://www.xyz.com/test.php?abc=test
But when i try to display the variable abc as below
It is not showing anything in php-4.3.0. but the value is displayed in
php-4.2.2 version.
Regards,
-sadha
--
PHP General Mailing L
hi,
when i enter the URL www.domain.com/dir/file.php?value=1 the script work
fine, but when i enter www.domain.com/dir/file.php/value/1 i become a
404 error.
OS: Apache/2.0.40 (Win32) PHP/4.2.3
but on win2k pro with apache 1.3.20 & php4.0.6 i did not have this
problem.
php is loaded as module
Echo $$field;
--John Holmes...
> -Original Message-
> From: Daniele Baroncelli [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 12:27 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Value of variable with name stored in another variable
>
> How can I
> -Original Message-
> From: Daniele Baroncelli [mailto:[EMAIL PROTECTED]]
> Sent: 13 June 2002 17:27
>
> How can I access the value of a variable whose name is stored
> in another
> variable?
>
> Example:
> $field="artist";
>
> How can I access the value of $artist ?
$$field
Cheers!
How can I access the value of a variable whose name is stored in another
variable?
Example:
$field="artist";
How can I access the value of $artist ?
Thanks
Daniele
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Saturday, June 1, 2002 at 6:00:22 PM, you wrote:
> $query = "INSERT INTO friends (id, firstname, surname) values
>(nextval('friends_id_seq'), ".$_POST['firstname'].", ".$_POST['surname'].")";
It's so obvious you're gonna kick yourself (I did!). You need to enclose the
two values in quotes, li
Changed the query and get this error when input dave as firstname:
ERRORERROR: Attribute 'dave' not found
add2.php is:
addform.php is:
First Name :
Surname :
On Sat, 1 Jun 2002 17:44:57 +0100
[EMAIL PROTECTED] (Stuart Dallas) wrote:
> On Saturday, June 1, 2002 at 5:35:03 P
On Saturday, June 1, 2002 at 5:37:37 PM, you wrote:
> Sorry.
> I restared apache and php.ini came into effect.
If you're going to run with register_globals on you should make sure you
understand the implications:
http://www.php.net/manual/en/security.registerglobals.php.
--
Stuart
--
PHP Ge
On Saturday, June 1, 2002 at 5:35:03 PM, you wrote:
> Is there anything I should do to make the php.ini come into effect? I did
> put the register_global = On but still got empty values.
you may not need to do anything or you may need to restart your http server.
Have a look at your phpinfo() pag
Sorry.
I restared apache and php.ini came into effect.
On Sat, 1 Jun 2002 17:29:13 +0100
[EMAIL PROTECTED] (Stuart Dallas) wrote:
> On Saturday, June 1, 2002 at 5:22:02 PM, you wrote:
> >> Create a php script containing just . That page will tell
> >> you where your php.ini is (or should be).
Is there anything I should do to make the php.ini come into effect? I did
put the register_global = On but still got empty values.
And my $_POST version is like this:
On Sat, 1 Jun 2002 17:08:11 +0100
[EMAIL PROTECTED] (Stuart Dallas) wrote:
> On Saturday, June 1, 2002 at 5:00:18 PM, you w
On Saturday, June 1, 2002 at 5:22:02 PM, you wrote:
>> Create a php script containing just . That page will tell
>> you where your php.ini is (or should be).
>>
> it told me it's in php/lib, but it's not there.
The default php.ini is called php.ini-recommended and will be in the directory
where
Sorry. When I input "Andras" as firstname in the form, ...
On Sat, 1 Jun 2002 17:22:02 +0100
[EMAIL PROTECTED] (Wei Wang) wrote:
> >
> > Create a php script containing just . That page will tell
> > you where your php.ini is (or should be).
> >
> it told me it's in php/lib, but it's not there
>
> Create a php script containing just . That page will tell
> you where your php.ini is (or should be).
>
it told me it's in php/lib, but it's not there.
>
> Try this...
>
> $query = "INSERT INTO friends (id, firstname, surname) values
> (nextval('friends_id_seq'), ".$_POST['firstname'].", "
On Saturday, June 1, 2002 at 5:00:18 PM, you wrote:
> Do you mind telling me where this php.ini is?
Create a php script containing just . That page will tell
you where your php.ini is (or should be).
> And I tried the second attempt like this:
> $query = "INSERT INTO friends (id, firstname, sur
> $query = "INSERT INTO friends (id, firstname, surname) values
>(nextval('friends_id_seq'),
> $_POST['firstname'], $_POST['surname'])";
>
> which returns error:
> Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING
>or
> T_VARIABLE or T_NUM_STRING in
> /local/s
Some thoughts:
a) Why is $firstname empty?
It's empty because the PHP directive register_globals = off.
So, PHP will not create $firstname automatically. This is
most likely the cause.
b) How do I access $firstname with register_globals = off then?
Many ways. Regardless of re
Do you mind telling me where this php.ini is?
And I tried the second attempt like this:
$query = "INSERT INTO friends (id, firstname, surname) values
(nextval('friends_id_seq'), $_POST['firstname'], $_POST['surname'])";
which returns error:
Parse error: parse error, unexpected T_ENCAPSED_AND_
On Saturday, June 1, 2002 at 4:51:20 PM, you wrote:
> I got a simple form addform.html and add.php look like the following.
> But everytime I got empty value from firstname and lastname. It seems like
> the input value in the html page was not passed on to the php variable
> $firstname in add.php.
I am not sure if this is the right place to ask this naive question.
I got a simple form addform.html and add.php look like the following.
But everytime I got empty value from firstname and lastname. It seems like
the input value in the html page was not passed on to the php variable $firstname i
02
-Original Message-
From: Kris Vose [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 12:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP] value of an array into a sendmail function
I want to take the value of an array and define it as $message. This
variable will be called in the sendma
I want to take the value of an array and define it as $message. This variable will be
called in the sendmail function mail(). Here is what I have so far. (does not work!)
Can anyone help me with this problem?
$automail = file("DOCUMENT_ROOT/BetterBus/1/AutoEmail.txt");
$number_of_lines = cou
> $result = mysql_query("select user from users where id = $_SESSION['id]",
> $db);
> That just doesn't work, so I have to first go:
> $sid = $_SESSION['id'];
> $result = mysql_query("select user from users where id = $sid", $db);
> Anyway to get around this?
I'm sure that either
mysql_query("s
I'm sure this has been asked before, but at least not within the last 600
messages (i checked):
I have the session variable $_SESSION['id'] set. Well, I want to actually
check the value of this variable, not just to check if it's set. I would be
doing this in a mysql query mainly. Something
I want to take the value of an array and define it as $message. This variable will be
called in the sendmail function mail(). Here is what I have so far. (does not work!)
$automail = file("DOCUMENT_ROOT/BetterBus/1/AutoEmail.txt");
$number_of_lines = count($automail);
for ( $i=0; $i<$number_o
How could make a function to write values in extense, example:
Write 10
soon below appears(Ten)
How ?
Thanks
Marcel Henrique
--
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
Sorry bout the length I'm a newbie to PHP/MySQL so bare with me ...
Here's a snippet of an app I'm hacking. I have a form that should update a
client form. the cl_ are taken from a database table and works nicely.
The point of this that they should possibly be replaced by txtXXX and put
52 matches
Mail list logo