Re: [PHP] inserting php value in html shorter wayand downloading winword & mp3 files the fancy way

2009-08-24 Thread Paul M Foster
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

Re: [PHP] inserting php value in html shorter wayand downloading winword & mp3 files the fancy way

2009-08-24 Thread Ashley Sheridan
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 ?> ? > >

[PHP] inserting php value in html shorter wayand downloading winword & mp3 files the fancy way

2009-08-24 Thread Grega Leskovšek
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

[PHP] Value evaluation library

2007-03-11 Thread Sancar Saran
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

Re: [PHP] Value (not) being retuned by a function

2005-12-11 Thread MARG
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

Re: [PHP] Value (not) being retuned by a function

2005-12-11 Thread Robert Cummings
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: > - >

[PHP] Value (not) being retuned by a function

2005-12-11 Thread MARG
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:

RE: [PHP] Value in URL issue

2004-06-17 Thread Mike R
; 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

Re: [PHP] Value in URL issue

2004-06-16 Thread Curt Zirzow
* 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

Re: [PHP] Value in URL issue

2004-06-16 Thread Curt Zirzow
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

Re: [PHP] Value in URL issue

2004-06-16 Thread Gabino Travassos
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

RE: [PHP] Value in URL issue

2004-06-16 Thread Mike R
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

Re: [PHP] Value in URL issue

2004-06-16 Thread Gabino Travassos
$_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

[PHP] Value in URL issue

2004-06-16 Thread Mike R
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,

[PHP] value field filled by mysql output

2003-10-22 Thread Mike At Spy
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

RE: [PHP] value contained within a variable contained within another variable

2003-09-17 Thread esctoday.com | Wouter van Vliet
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

[PHP] value contained within a variable contained within another variable

2003-09-17 Thread DougD
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

Re: [PHP] Value for entire file

2003-07-17 Thread Jason Wong
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

[PHP] Value for entire file

2003-07-17 Thread Uma Shankari T.
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

Re: [PHP] value not passed

2003-07-15 Thread Curt Zirzow
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

RE: [PHP] value not passed

2003-07-15 Thread Johnny Martinez
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. ">

[PHP] value not passed

2003-07-15 Thread Joaco
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

[PHP] Value of $var as a variable?

2003-02-24 Thread Patrick Teague
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

Re: [PHP] value not displayed

2003-01-24 Thread Brian Burg
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

Re: [PHP] value not displayed

2003-01-24 Thread Ernest E Vogelsinger
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

[PHP] value not displayed

2003-01-24 Thread Rahul
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

[PHP] no $PATH_INFO by using URLs with "*.php/value" and not "*.php?value"

2002-09-26 Thread michael schoenboeck
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

RE: [PHP] Value of variable with name stored in another variable

2002-06-13 Thread John Holmes
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

RE: [PHP] Value of variable with name stored in another variable

2002-06-13 Thread Ford, Mike [LSS]
> -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!

[PHP] Value of variable with name stored in another variable

2002-06-13 Thread Daniele Baroncelli
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

Re[6]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Stuart Dallas
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

Re: Re[4]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Wei Wang
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

Re[6]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Stuart Dallas
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

Re[4]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Stuart Dallas
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

Re: Re[4]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Wei Wang
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).

Re: Re[2]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Wei Wang
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

Re[4]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Stuart Dallas
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

Re: Re[2]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Wei Wang
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

Re: Re[2]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Wei Wang
> > 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'].", "

Re[2]: [PHP] value passing from html form to php variable.

2002-06-01 Thread Stuart Dallas
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

Re: [PHP] value passing from html form to php variable.

2002-06-01 Thread Philip Olson
> $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

Re: [PHP] value passing from html form to php variable.

2002-06-01 Thread Philip Olson
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

Re: [PHP] value passing from html form to php variable.

2002-06-01 Thread Wei Wang
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_

Re: [PHP] value passing from html form to php variable.

2002-06-01 Thread Stuart Dallas
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.

[PHP] value passing from html form to php variable.

2002-06-01 Thread Wei Wang
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

RE: [PHP] value of an array into a sendmail function

2002-03-05 Thread Demitrious S. Kelly
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

[PHP] value of an array into a sendmail function

2002-03-05 Thread Kris Vose
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

Re: [PHP] Value of $_* variables

2002-03-05 Thread Chris Boget
> $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

[PHP] Value of $_* variables

2002-03-05 Thread James Taylor
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

[PHP] value of an array into a sendmail function

2002-03-05 Thread Kris Vose
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

[PHP] Value

2001-03-14 Thread Marcel Henrique Scandolara - Wide
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

[PHP] Value of if(isset(X)) problem

2001-03-06 Thread Martin Skjöldebrand
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