Re: [PHP] newbie - PHP escaping trigger happy

2008-09-02 Thread Seung Park
1) did you restart the server to take advantage of the new settings? 2) are you sure you're running the php.ini at all? (run phpinfo() from a page to make sure that the server has read the right copy of php.ini) On Tue, Sep 2, 2008 at 4:12 PM, Govinda [EMAIL PROTECTED] wrote: You guys got

Re: [PHP] newbie - PHP escaping trigger happy

2008-09-02 Thread Govinda
On Sep 2, 2008, at 6:02 PM, Seung Park wrote: 1) did you restart the server to take advantage of the new settings? no. That was it. Solved. Sorry for what turned out to be OT. When we're that green, we don't know OT from T. 2) are you sure you're running the php.ini at all? (run

[PHP] newbie - how to receive/iterate posted arrays

2008-09-01 Thread Govinda
Hello early birds, I am going round and round the docs and list posts I saved on this topic... but I am still stumped. Kindly show me what I am missing. I want to simply send an array of vars via a post form to my receiving script. I've got simple inputs like this: input

Re: [PHP] newbie - how to receive/iterate posted arrays

2008-09-01 Thread Diogo Neves
Hi, On Mon, Sep 1, 2008 at 9:25 AM, Govinda [EMAIL PROTECTED] wrote: Hello early birds, I am going round and round the docs and list posts I saved on this topic... but I am still stumped. Kindly show me what I am missing. I want to simply send an array of vars via a post form to my

Re: [PHP] newbie - how to receive/iterate posted arrays

2008-09-01 Thread Govinda
Thanks Diogo! , and other who replied! You nailed it (Of course! you would say.) I didn't reply sooner as we had a power out (just enough to get me to go to bed already ;-) -G On Sep 1, 2008, at 2:31 AM, Diogo Neves wrote: foreach($_POST['$tmbsToiterate'] as $value) {

[PHP] newbie - PHP escaping trigger happy

2008-09-01 Thread Govinda
Just a quick Q, which I know has to be in the docs somewhere, but I haven't come across it yet- PHP automatically escaping single and double quotes... how to turn it off? I.e.- in a form text input, someone inputs love's influence grows and on the posted page I get: love\'s \influence\

Re: [PHP] newbie - PHP escaping trigger happy

2008-09-01 Thread Eric Butera
On Mon, Sep 1, 2008 at 10:21 PM, Govinda [EMAIL PROTECTED] wrote: Just a quick Q, which I know has to be in the docs somewhere, but I haven't come across it yet- PHP automatically escaping single and double quotes... how to turn it off? I.e.- in a form text input, someone inputs love's

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-29 Thread Jochem Maas
James Ausmus schreef: On Tue, Aug 26, 2008 at 10:08 AM, Ford, Mike [EMAIL PROTECTED] wrote: On 26 August 2008 17:15, James Ausmus advised: On Tue, Aug 26, 2008 at 8:57 AM, Ford, Mike [EMAIL PROTECTED] wrote: On 25 August 2008 00:54, Govinda advised: snip Personally, I might be tempted to

RE: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-26 Thread Ford, Mike
On 25 August 2008 00:54, Govinda advised: if (stripos(strrev($file), gpj.) === 0) { echo $file; } note the ===, 3 equals signs here is very important! check the docs for why. == means 'equals', and === means 'is identical to'. Seems like they would do the same thing when

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-26 Thread James Ausmus
On Tue, Aug 26, 2008 at 8:57 AM, Ford, Mike [EMAIL PROTECTED] wrote: On 25 August 2008 00:54, Govinda advised: snip Personally, I might be tempted to do something like this: if (($pos = strrchr($file, '.'))!==FALSE): switch (strtolower(substr($file, $pos))): case '.gif':

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-26 Thread Lupus Michaelis
Ford, Mike a écrit : case '.gif': case '.png': case '.jpg': case '.jpeg': echo $file; Be carefull. The « extension » is just a clue to know what filled the file. See http://fr3.php.net/manual/en/book.fileinfo.php. -- Mickaël Wolff aka Lupus

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-26 Thread Lupus Michaelis
Ford, Mike a écrit : case '.gif': case '.png': case '.jpg': case '.jpeg': Be careful. The end of the filename is just a clue on what is filled the file. See http://fr3.php.net/manual/en/book.fileinfo.php for more acurate result. -- Mickaël Wolff aka

RE: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-26 Thread Ford, Mike
On 26 August 2008 17:15, James Ausmus advised: On Tue, Aug 26, 2008 at 8:57 AM, Ford, Mike [EMAIL PROTECTED] wrote: On 25 August 2008 00:54, Govinda advised: snip Personally, I might be tempted to do something like this: if (($pos = strrchr($file, '.'))!==FALSE): switch

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-26 Thread James Ausmus
On Tue, Aug 26, 2008 at 10:08 AM, Ford, Mike [EMAIL PROTECTED] wrote: On 26 August 2008 17:15, James Ausmus advised: On Tue, Aug 26, 2008 at 8:57 AM, Ford, Mike [EMAIL PROTECTED] wrote: On 25 August 2008 00:54, Govinda advised: snip Personally, I might be tempted to do something like

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-25 Thread David Otton
2008/8/24 Govinda [EMAIL PROTECTED]: $ThisDir = getcwd()./thumbs; $DirHandle = opendir($ThisDir); if ($DirHandle = opendir($ThisDir)) { echo Directory handle: $DirHandle\n; echo Files:br /hr width=\25\%\ align=\left\ /; while ((false !== ($file = readdir($DirHandle))) 1) { if

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-25 Thread Jochem Maas
Chris schreef: if (stripos(strrev($file), gpj.) === 0) { echo $file; } note the ===, 3 equals signs here is very important! check the docs for why. == means 'equals', and === means 'is identical to'. Seems like they would do the same thing when comparing '0' to 'the position in the

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-25 Thread David Otton
2008/8/25 David Otton [EMAIL PROTECTED]: You can check the manual for full details, but briefly, sql_regcase() returns a case-insensitive regular expression, and glob() returns an array of filenames that match the path given to it (in this case ./thumbs/*.jpg). I should have mentioned that

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-25 Thread Philip Thompson
On Aug 24, 2008, at 6:54 PM, Govinda wrote: Should I send replies to just the list?, or is the etiquette to reply-to-all? You will get different opinions from different people on the list. IMO, Reply-All is really annoying. Since I'm on the list, there's no need to reply to me - I'll get

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-25 Thread tedd
At 7:53 AM -0500 8/25/08, Philip Thompson wrote: On Aug 24, 2008, at 6:54 PM, Govinda wrote: Should I send replies to just the list?, or is the etiquette to reply-to-all? You will get different opinions from different people on the list. IMO, Reply-All is really annoying. Since I'm on the

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-25 Thread Philip Thompson
On Aug 25, 2008, at 8:16 AM, tedd wrote: At 7:53 AM -0500 8/25/08, Philip Thompson wrote: On Aug 24, 2008, at 6:54 PM, Govinda wrote: Should I send replies to just the list?, or is the etiquette to reply-to-all? You will get different opinions from different people on the list. IMO,

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-25 Thread Wolf
!-- SNIP -- I'm using Eudora for the Mac and the first 32 lines of all my emails are the header and if I click the Blah Blah button (that's supposed to show the header information), then I get another 25 lines of header. That's 57 lines in total to get to the contents of the email -- far

Re: [PHP] newbie OT Eudora

2008-08-25 Thread tedd
At 8:47 AM -0500 8/25/08, Philip Thompson wrote: Apple Mail. It's by far the best email app I've seen/used. =D You can hide/view headers as desired. ~Philip Philip: Of course, I have Apple's Mail and have used it, but I still like Eudora. However, I think I see the writing on the wall.

Re: [PHP] newbie OT Eudora

2008-08-25 Thread tedd
At 9:53 AM -0400 8/25/08, Wolf wrote: Really, they still make Eudora? Or is this an old copy on the MacIntosh IIe that you are running. ;) Wolf Wolf: Yes, Eudora is still around, but it's open source now. However, I haven't received/heard of an update in a long time. The critter is

[PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-24 Thread Govinda
Hi all :-) It'll be fun to work here with you guys over the coming months. I have been out of the coding loop for 7 years, and I am totally new to PHP, but I should catch up not-too-slowly as I used to code HTML, WebDNA, and a little Visual Basic too. Kindly bear with me. First Q: This

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-24 Thread Chris
But two of those entries are apparently named . and ... Right. That's linux doing that, not php. If you jump into a ssh connection and do an $ ls -la you will see . and .. at the top. if ($filename == '.' || $filename == '..') { continue; } I haven't yet found the

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-24 Thread Jochem Maas
Govinda schreef: Hi all :-) It'll be fun to work here with you guys over the coming months. fun? work? you must be new :-) I have been out of the coding loop for 7 years, and I am totally new to PHP, but I should catch up not-too-slowly as I used to code HTML, WebDNA, and a little Visual

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-24 Thread Govinda
Should I send replies to just the list?, or is the etiquette to reply- to-all? fun? work? you must be new :-) new to PHP; could get boring after a long time with it, sure... but I have that 'coder's bug'... i.e. once fluent, then creatively solving problems is fun! okay enough jokes

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-24 Thread Chris
if (stripos(strrev($file), gpj.) === 0) { echo $file; } note the ===, 3 equals signs here is very important! check the docs for why. == means 'equals', and === means 'is identical to'. Seems like they would do the same thing when comparing '0' to 'the position in the string where

Re: [PHP] Newbie problem: Php script not running in browser.

2008-08-06 Thread V S Rawat
On 8/6/2008 2:58 AM India Time, _Andrew Ballard_ wrote: On Tue, Aug 5, 2008 at 3:05 PM, V S Rawat [EMAIL PROTECTED] wrote: I have put the first php script to hello.php file: html head titlePHP Test/title /head body ?php echo 'pHello World/p'; ? /body /html I am on xpsp3, wampserver

RE: [PHP] Newbie problem: Php script not running in browser.

2008-08-06 Thread Chetan Rane
: [PHP] Newbie problem: Php script not running in browser. On 8/6/2008 2:58 AM India Time, _Andrew Ballard_ wrote: On Tue, Aug 5, 2008 at 3:05 PM, V S Rawat [EMAIL PROTECTED] wrote: I have put the first php script to hello.php file: html head titlePHP Test/title /head body ?php echo

RE: [PHP] Newbie problem: Php script not running in browser.

2008-08-06 Thread Chetan Rane
Message- From: V S Rawat [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2008 7:22 PM To: Chetan Rane Subject: Re: [PHP] Newbie problem: Php script not running in browser. On 8/6/2008 4:20 PM India Time, _Chetan Rane_ wrote: Hi You need to check if your Apache is up and running do

Re: [PHP] Newbie problem: Php script not running in browser.

2008-08-06 Thread V S Rawat
@lists.php.net Subject: Re: [PHP] Newbie problem: Php script not running in browser. On 8/6/2008 2:58 AM India Time, _Andrew Ballard_ wrote: On Tue, Aug 5, 2008 at 3:05 PM, V S Rawat [EMAIL PROTECTED] wrote: I have put the first php script to hello.php file: html head titlePHP Test/title /head

Re: [PHP] Newbie problem: Php script not running in browser.

2008-08-06 Thread V S Rawat
66714 | Tel: +91 (0832) 30 79014 Innovation in software product design, development and delivery- www.persistentsys.com -Original Message- From: V S Rawat [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2008 7:22 PM To: Chetan Rane Subject: Re: [PHP] Newbie problem: Php script

[PHP] Newbie problem: Php script not running in browser.

2008-08-05 Thread V S Rawat
I have put the first php script to hello.php file: html head titlePHP Test/title /head body ?php echo 'pHello World/p'; ? /body /html I am on xpsp3, wampserver 2.0, having apache 2.2.8, php 5.2.6, MySQL 5.0.51b http://localhost/ is E:\wamp\www I put the hello.php file to

Re: [PHP] Newbie problem: Php script not running in browser.

2008-08-05 Thread Andrew Ballard
On Tue, Aug 5, 2008 at 3:05 PM, V S Rawat [EMAIL PROTECTED] wrote: I have put the first php script to hello.php file: html head titlePHP Test/title /head body ?php echo 'pHello World/p'; ? /body /html I am on xpsp3, wampserver 2.0, having apache 2.2.8, php 5.2.6, MySQL 5.0.51b

Re: [PHP] Newbie Question: How to pass URL info to .php script ?

2008-06-19 Thread Ethan Whitt
I pasted your example in and it doesn't work for me (again, newbie). I will play with it and see if I can get it working. My main goal is to have Ruby-like URL's vs ?var=3425. Is this possible with .php (without mod_rewrite / something in the http server?) Thanks, Ethan On Wed, Jun 18,

RE: [PHP] Newbie Question: How to pass URL info to .php script ?

2008-06-19 Thread Bob
but on a personal level I think it's one of the better MVCs about. Bob. -Original Message- From: Ethan Whitt Sent: 19 June 2008 17:19 To: Nathan Nobbe Cc: php-general@lists.php.net Subject: Re: [PHP] Newbie Question: How to pass URL info to .php script ? I pasted your example

Re: [PHP] Newbie Question: How to pass URL info to .php script ?

2008-06-19 Thread Jignesh Thummar
Ethan, you can try this: $url = www.test.com/article/3435; echo basename($url); another solution is that you can use explode() function to seprate your url from '/' or you can use regex to parse your url - Jignesh On Thu, Jun 19, 2008 at 8:18 AM, Ethan Whitt [EMAIL PROTECTED] wrote: I pasted

Re: [PHP] Newbie Question: How to pass URL info to .php script ?

2008-06-19 Thread Nathan Nobbe
On Thu, Jun 19, 2008 at 1:28 AM, Bob [EMAIL PROTECTED] wrote: Have you tried CodeIgniter http://www.codeigniter.com? Not as restrictive as many MVC frameworks and very easy to work with. What you wish to achieve can be done with one line. $myvar = $this-uri-segment(2); right, and if you

Re: [PHP] Newbie Question: How to pass URL info to .php script ?

2008-06-19 Thread Nathan Nobbe
On Thu, Jun 19, 2008 at 1:18 AM, Ethan Whitt [EMAIL PROTECTED] wrote: I pasted your example in and it doesn't work for me (again, newbie). I will play with it and see if I can get it working. My main goal is to have Ruby-like URL's vs ?var=3425. Is this possible with .php (without

Re: [PHP] Newbie Question: How to pass URL info to .php script ?

2008-06-19 Thread Chris Scott
You could just use an apache (or other web server) alias: www.test.com/article - www.test.com/article.php where article.php uses: ?php $uri_vars = explode('/', $_SERVER['PATH_INFO']); foreach ($uri_vars as $var) if ($var != ) echo $var . br; ?

[PHP] Newbie Question: How to pass URL info to .php script ?

2008-06-18 Thread Ethan Whitt
Not sure how to achieve this. How can I grab a portion of a URl to send to a .php script in this fashion? www.test.com/article/3435 - Grab the 3435 to process in a script? Thanks in advance! Ethan

Re: [PHP] Newbie Question: How to pass URL info to .php script ?

2008-06-18 Thread Nathan Nobbe
On Wed, Jun 18, 2008 at 10:45 PM, Ethan Whitt [EMAIL PROTECTED] wrote: Not sure how to achieve this. How can I grab a portion of a URl to send to a .php script in this fashion? www.test.com/article/3435 - Grab the 3435 to process in a script? take a look at the $_SERVER superglobal

[PHP] Newbie - is there a function similar to the sql 'like' comparison operator?

2008-05-08 Thread revDAVE
Newbie - is there a function similar to the sql 'like' comparison operator? I would like to be able to compare 2 strings: If $this ---*like or similar to*--- $that That type of thing... I know of this page: http://us3.php.net/manual/sl/language.operators.comparison.php But I don't see

Re: [PHP] Newbie - is there a function similar to the sql 'like' comparison operator?

2008-05-08 Thread Kalle Sommer Nielsen
Kalle Sommer Nielsen DR - www.dr.dk - Original Message - From: revDAVE [EMAIL PROTECTED] To: PHP General php-general@lists.php.net Sent: Thursday, May 08, 2008 5:20 PM Subject: [PHP] Newbie - is there a function similar to the sql 'like' comparison operator? Newbie

[PHP] newbie needs help with insert('hop.php') problem

2008-05-04 Thread milt
I am trying to get an order page working to submit credit card orders and I am having trouble with the order page. the included file HOP.php is in the same directory and it has both read and write permissions. I am on a Linux and PHP 5.2.3 server. there are no PHP error messages. I have this page

Re: [PHP] newbie with php/HTML/HTTP question

2008-04-28 Thread Andrew Ballard
On Sun, Apr 27, 2008 at 5:44 PM, Rod Clay [EMAIL PROTECTED] wrote: I've written my php script to accept either: 1) url parameters, when first invoked (so in this case I'm getting variables out of the $_GET global array), but then I create a form with method=PUT and, when this form is

[PHP] newbie with another HTML/navigation question

2008-04-28 Thread Rod Clay
I have a php script that is invoked on 2 different occasions: 1) the first to create a page with a form the user will use to input information for a new table row - this form has method=POST 2) the script is run a second time to accept the input from the completed form, add the new row to

[PHP] newbie with php/HTML question

2008-04-27 Thread Rod Clay
I've written my php script to accept either: 1) url parameters, when first invoked (so in this case I'm getting variables out of the $_GET global array), but then I create a form with method=PUT and, when this form is submitted and comes back into this same php script, I'm looking for 2)

Re: [PHP] newbie with php/HTML question

2008-04-27 Thread Stut
On 27 Apr 2008, at 22:40, Rod Clay wrote: I've written my php script to accept either: 1) url parameters, when first invoked (so in this case I'm getting variables out of the $_GET global array), but then I create a form with method=PUT and, when this form is submitted and comes back into

[PHP] newbie with php/HTML/HTTP question

2008-04-27 Thread Rod Clay
I've written my php script to accept either: 1) url parameters, when first invoked (so in this case I'm getting variables out of the $_GET global array), but then I create a form with method=PUT and, when this form is submitted and comes back into this same php script, I'm looking for 2)

Re: [PHP] newbie with php/HTML question

2008-04-27 Thread Rod Clay
Wow, thanks. I can't believe I made this mistake. This group is sooo helpful. I could probably have looked at this another 10 hours and not seen this. Thanks again. Also, I'd like to apologize for the double post. I posted the first with an email address different from the one I

[PHP] Newbie select statement questions 'WHERE'

2008-04-23 Thread revDAVE
NEWBIE! I have some GET data coming from a previous search form. How do I add the WHERE part ? orig: $query_get1 = SELECT p_First, p_id, p_Last, p_Lvl, p_Sel FROM contacts; --W / WHERE...??? $query_get1 = SELECT p_First, p_id, p_Last, p_Lvl, p_Sel FROM contacts WHERE p_First like

Re: [PHP] Newbie select statement questions 'WHERE'

2008-04-23 Thread Robert Cummings
On Wed, 2008-04-23 at 19:07 -0700, revDAVE wrote: NEWBIE! I have some GET data coming from a previous search form. How do I add the WHERE part ? orig: $query_get1 = SELECT p_First, p_id, p_Last, p_Lvl, p_Sel FROM contacts; --W / WHERE...??? $query_get1 = SELECT p_First, p_id,

[PHP] newbie needs help with session variables

2008-04-19 Thread Rod Clay
Hi. I'm still very new to php and still trying to learn the ropes. I'm working on some code now trying to set up a session and use session variables in different scripts, but I'm getting this message: *Warning*: Unknown: Your script possibly relies on a session side-effect which existed

Re: [PHP] newbie needs help with session variables

2008-04-19 Thread revDAVE
On 4/19/2008 2:20 PM, Rod Clay [EMAIL PROTECTED] wrote: Hi. I'm still very new to php and still trying to learn the ropes. ...Blind leading the blind (I'm a newbie also but...) Did you try...? session_id()) session_start(); - - - - - From: PHP: session_id - Manual Location:

RE: [PHP] newbie needs help with session variables

2008-04-19 Thread Warren Vail
to control the source of data coming into your programs. HTH, Warren Vail -Original Message- From: Rod Clay [mailto:[EMAIL PROTECTED] Sent: Saturday, April 19, 2008 2:20 PM To: php-general@lists.php.net Subject: [PHP] newbie needs help with session variables Hi. I'm still very

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Pete Holsberg
Daniel Brown has written on 4/16/2008 5:20 PM: On Wed, Apr 16, 2008 at 5:14 PM, Pete Holsberg [EMAIL PROTECTED] wrote: Why do I need both from_addr and field_4 (Email Address)? Could I just use $from = $_POST['field_4']? Sorry, I noticed it after I started rewriting the form

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Daniel Brown
On Thu, Apr 17, 2008 at 12:17 PM, Pete Holsberg [EMAIL PROTECTED] wrote: [snip!] OK. Here's what I have now for processor.php: ?php // $where_form_is=http://.$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),/)); $where_form_is =

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Pete Holsberg
Daniel Brown has written on 4/17/2008 12:29 PM: I'll reiterate: Note the mail() parameters. There's no header information there. RTFM: http://php.net/mail You just have your mail() function wrong. Reiterating my code as well (with updated field_4 data): ?php

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Daniel Brown
On Thu, Apr 17, 2008 at 12:37 PM, Pete Holsberg [EMAIL PROTECTED] wrote: OK. I don't see a mail() in your code. Would it be mail($to, $subject, $body, $headers); ? Entirely my fault, Pete. I'm a moron sometimes. Could've sworn it was in there. Sorry about that. Yes, you've

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Pete Holsberg
Ooops! processor.php is now: ?php $where_form_is = http://.$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF'])./; $to = [EMAIL PROTECTED],[EMAIL PROTECTED]; $subject = SUBSCRIBE; //$from = $_POST['field_4']; == this was the culprit $body = Form data: Name: .$_POST['field_1'].

Re: [PHP] Newbie question about sending email

2008-04-17 Thread Daniel Brown
On Thu, Apr 17, 2008 at 12:50 PM, Pete Holsberg [EMAIL PROTECTED] wrote: 1E6 thank yous!! My TI SR-10 couldn't handle that calculation and blew up in my hand. ;-P -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract!

[PHP] Newbie question about sending email

2008-04-16 Thread Pete Holsberg
I wanted a form for people in my community to use to subscribe to a yahoo group that I run. Not being a PHP programmer, I created the form with phpFormGenerator from SourceForge. It works fine except that the email that gets sent to yahoo appears to come from my web host's domain! How can

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 3:53 PM, Pete Holsberg [EMAIL PROTECTED] wrote: I wanted a form for people in my community to use to subscribe to a yahoo group that I run. Not being a PHP programmer, I created the form with phpFormGenerator from SourceForge. It works fine except that the email

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Pete Holsberg
Daniel Brown has written on 4/16/2008 4:04 PM: On Wed, Apr 16, 2008 at 3:53 PM, Pete Holsberg [EMAIL PROTECTED] wrote: I wanted a form for people in my community to use to subscribe to a yahoo group that I run. Not being a PHP programmer, I created the form with phpFormGenerator from

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 4:39 PM, Pete Holsberg [EMAIL PROTECTED] wrote: The entire processor.php file is: ?php $where_form_is=http://.$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),/)); mail([EMAIL PROTECTED],[EMAIL PROTECTED],SUBSCRIBE,Form data: Name: .

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Pete Holsberg
Daniel Brown has written on 4/16/2008 4:56 PM: On Wed, Apr 16, 2008 at 4:39 PM, Pete Holsberg [EMAIL PROTECTED] wrote: The entire processor.php file is: ?php $where_form_is=http://.$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),/)); mail([EMAIL PROTECTED],[EMAIL

Re: [PHP] Newbie question about sending email

2008-04-16 Thread Daniel Brown
On Wed, Apr 16, 2008 at 5:14 PM, Pete Holsberg [EMAIL PROTECTED] wrote: Why do I need both from_addr and field_4 (Email Address)? Could I just use $from = $_POST['field_4']? Sorry, I noticed it after I started rewriting the form processor, and then forgot to edit the email accordingly.

RES: [PHP] Newbie question, Which way is best?

2008-03-20 Thread Thiago Pojda
De: George J [mailto:[EMAIL PROTECTED] So calling the script via the form works i.e it passes the neccessary variables to constrct the sql query for the next call. As Shawn said, if you really need the query again add it to session, never, NEVER give the user the ability to see/execute

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread Philip Thompson
On Mar 19, 2008, at 5:13 PM, George J wrote: Hi Jason, Hope this helps - my 'display_products.php' script -- form method='post' action='display_products.php' ... input type='hidden' name= 'query' value=$query input type='submit' Value='Go'/td ... // pagination routine conditional

[PHP] newbie question about one php script passing control to another

2008-03-20 Thread Rod Clay
Hello. I am new to php programming, but have spent many years programming in many other languages, most recently perl (with which php seems to have much in common!). In every other language I've worked with there is a way for one program to pass control to another. However, so far in all of

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread George J
Thiago Pojda [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] De: George J [mailto:[EMAIL PROTECTED] So calling the script via the form works i.e it passes the neccessary variables to constrct the sql query for the next call. As Shawn said, if you really need the query again add

RE: [PHP] newbie question about one php script passing control to another

2008-03-20 Thread admin
Im not sure I understand the question. Pass control from index.php to welcome.php ??? index.php : ? echo form action=welcome.php method=postinput type=hidden name=tagme value=yesinput type=submit value='Continue'/form; ? welcome.php ? if($_POST['tagme'] == yes){ echo Congrats you are

Re: [PHP] newbie question about one php script passing control to another

2008-03-20 Thread Rod Clay
Yes, let me try to say more about exactly what I'm trying to do. I have a php script running in a browser window (opened specifically for this purpose) in which the user keys a blog item, then hits 'submit.' After this script has successfully added the new blog item to the database, what I'd

Re: [PHP] newbie question about one php script passing control to another

2008-03-20 Thread Daniel Brown
On Thu, Mar 20, 2008 at 12:37 PM, Rod Clay [EMAIL PROTECTED] wrote: Yes, let me try to say more about exactly what I'm trying to do. I have a php script running in a browser window (opened specifically for this purpose) in which the user keys a blog item, then hits 'submit.' After this

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread Shawn McKenzie
George J wrote: Thiago Pojda [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] De: George J [mailto:[EMAIL PROTECTED] So calling the script via the form works i.e it passes the neccessary variables to constrct the sql query for the next call. As Shawn said, if you really need the

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread George J
Hi Shawn, My query code- ---SQL query construction block $query = SELECT * FROM prods ; if($catagory != 0){ // if category != 0 $where=WHERE c = $catagory ; if ($manu != 0){ // check manu != 0

Re: [PHP] newbie question about one php script passing control to another

2008-03-20 Thread Rick Pasotto
On Thu, Mar 20, 2008 at 12:08:39PM -0400, Rod Clay wrote: Hello. I am new to php programming, but have spent many years programming in many other languages, most recently perl (with which php seems to have much in common!). In every other language I've worked with there is a way for one

Re: [PHP] newbie question about one php script passing control to another

2008-03-20 Thread tedd
At 12:08 PM -0400 3/20/08, Rod Clay wrote: Hello. I am new to php programming, but have spent many years programming in many other languages, most recently perl (with which php seems to have much in common!). In every other language I've worked with there is a way for one program to pass

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread Philip Thompson
On Mar 20, 2008, at 12:05 PM, George Jamieson wrote: Hi Philip, Hope you don't mind me sending this to you direct. Thanks for the answer but... I'm sorry I don't follow you. My form sets up the query parameters. It works. My pagination code passes the page no. It works. What it doesn't

[PHP] Newbie question, Which way is best?

2008-03-19 Thread George J
Hi, I have a script that contains a form and a pagination routine that calls itself. I want to pass an sql query along with some other variables to the called script. The code to acheive this, using the form, is working but when I try to write the code, using the scripts URL to call itself, I

Re: [PHP] Newbie question, Which way is best?

2008-03-19 Thread Daniel Brown
On Wed, Mar 19, 2008 at 3:47 PM, George J [EMAIL PROTECTED] wrote: Hi, I have a script that contains a form and a pagination routine that calls itself. I want to pass an sql query along with some other variables to the called script. The code to acheive this, using the form, is working but

Re: [PHP] Newbie question, Which way is best?

2008-03-19 Thread Andrew Ballard
On Wed, Mar 19, 2008 at 3:47 PM, George J [EMAIL PROTECTED] wrote: Hi, I have a script that contains a form and a pagination routine that calls itself. I want to pass an sql query along with some other variables to the called script. The code to acheive this, using the form, is working but

Re: [PHP] Newbie question, Which way is best?

2008-03-19 Thread George J
Hi Daniel, WHOA! Passing the SQL query via a URL is a Very Bad Idea[tm]! As a newbie I just have to ask why. I suspect you're going to say it gives the table and field names used in my database. I'm not really aware of all the possible avenues that this method might open up. It just feels

Re: [PHP] Newbie question, Which way is best?

2008-03-19 Thread Daniel Brown
On Wed, Mar 19, 2008 at 4:45 PM, George J [EMAIL PROTECTED] wrote: Hi Daniel, WHOA! Passing the SQL query via a URL is a Very Bad Idea[tm]! As a newbie I just have to ask why. I suspect you're going to say it gives the table and field names used in my database. I'm not really aware

Re: [PHP] Newbie question, Which way is best?

2008-03-19 Thread Jason Pruim
On Mar 19, 2008, at 4:45 PM, George J wrote: Hi Daniel, WHOA! Passing the SQL query via a URL is a Very Bad Idea[tm]! As a newbie I just have to ask why. I suspect you're going to say it gives the table and field names used in my database. I'm not really aware of all the possible

[Fwd: Re: [PHP] Newbie question, Which way is best?]

2008-03-19 Thread Shawn McKenzie
George J wrote: Hi Daniel, WHOA! Passing the SQL query via a URL is a Very Bad Idea[tm]! As a newbie I just have to ask why. I suspect you're going to say it gives the table and field names used in my database. I'm not really aware of all the possible avenues that this method might

Re: Re: [PHP] Newbie question, Which way is best?]

2008-03-19 Thread George J
Hi Shawn, Shawn McKenzie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] George J wrote: Hi Daniel, WHOA! Passing the SQL query via a URL is a Very Bad Idea[tm]! As a newbie I just have to ask why. I suspect you're going to say it gives the table and field names used in my

Re: [PHP] Newbie ' If Statement' Question

2008-03-16 Thread [EMAIL PROTECTED]
Thank you everybody for these great tips! -- Thanks - RevDave Cool7 @ hosting4days . com [db-lists] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Newbie Question on PHP-SOAP

2008-03-15 Thread Chino Aureus
Hi All, I'm trying to test create a soap clienet in PHP, here's my code: ?php $client = new SoapClient( http://10.132.32.112:8080/axis2/services/TemperatureConverter?wsdl;, array('exceptions' = 0)); try { $a = 32; $result = $client-__soapCall(c2FConvertion,array($a));

[PHP] Newbie ' If Statement' Question

2008-03-14 Thread [EMAIL PROTECTED]
Hello Folks, I would like to be able to wrap a 'form' inside a php 'if statement' - so that the form will appear if the 'if condition' is met. - most likely I cannot have a ?php tag inside another one - and am sure I'm doing other things wrong also... - now I get the error - Parse error:

Re: [PHP] Newbie ' If Statement' Question

2008-03-14 Thread Nathan Nobbe
On Fri, Mar 14, 2008 at 7:56 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello Folks, I would like to be able to wrap a 'form' inside a php 'if statement' - so that the form will appear if the 'if condition' is met. - most likely I cannot have a ?php tag inside another one - and am

Re: [PHP] Newbie ' If Statement' Question

2008-03-14 Thread Benjamin Darwin
On Fri, Mar 14, 2008 at 7:56 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello Folks, I would like to be able to wrap a 'form' inside a php 'if statement' - so that the form will appear if the 'if condition' is met. - most likely I cannot have a ?php tag inside another one - and am

Re: [PHP] Newbie - Undefined Index Variable

2008-03-08 Thread tedd
At 11:59 AM -0800 3/7/08, revDAVE wrote: I have this: ?php if (trim($_SESSION['nowtoctype']) == 'thistype') {print 'a href=page1.phppage1/a';}else{print 'a href= page2.phppage2/a';} ? I will get the error: Notice: Undefined index: nowtoctype in ... If the variable has not yet been

[PHP] Newbie - Undefined Index Variable

2008-03-07 Thread revDAVE
I have this: ?php if (trim($_SESSION['nowtoctype']) == 'thistype') {print 'a href=page1.phppage1/a';}else{print 'a href= page2.phppage2/a';} ? I will get the error: Notice: Undefined index: nowtoctype in ... If the variable has not yet been defined... Is there a way to check if this var is

Re: [PHP] Newbie - Undefined Index Variable

2008-03-07 Thread Daniel Brown
On Fri, Mar 7, 2008 at 2:59 PM, revDAVE [EMAIL PROTECTED] wrote: I have this: ?php if (trim($_SESSION['nowtoctype']) == 'thistype') {print 'a href=page1.phppage1/a';}else{print 'a href= page2.phppage2/a';} ? I will get the error: Notice: Undefined index: nowtoctype in ... Check

[PHP] PHP Newbie List

2008-02-26 Thread revDAVE
Rather than bug folks on this cool list for beginner questions - does anyone know of a good PHP Newbie email List? -- Thanks - RevDave Cool @ hosting4days . com [db-lists] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Newbie List

2008-02-26 Thread Daniel Brown
On Tue, Feb 26, 2008 at 3:11 PM, revDAVE [EMAIL PROTECTED] wrote: Rather than bug folks on this cool list for beginner questions - does anyone know of a good PHP Newbie email List? php-general@lists.php.net You're in the right place. ;-) There are forums elsewhere around the web

Re: [PHP] PHP Newbie List

2008-02-26 Thread Greg Donald
On 2/26/08, revDAVE [EMAIL PROTECTED] wrote: Rather than bug folks on this cool list for beginner questions - does anyone know of a good PHP Newbie email List? The newbie list idea was shot down multiple times over the years. Ask here. -- Greg Donald http://destiney.com/ -- PHP General

<    1   2   3   4   5   6   7   8   9   10   >