[PHP] get question

2012-08-27 Thread Jack S
Hello All, Trying to figure out why when I include the page that contains this code, I'm not able to get the $calling_page populated with any values. Any help appreciated... "; } elseif ($calling_page == "index") { $title = "Title 2 - $calling_page"; $body = ""; # Non S

RE: [PHP] help with query

2012-06-07 Thread Jack Sasportas
Thanks Jim, worked like a charm. > -Original Message- > From: Jim Lucas [mailto:li...@cmsws.com] > Sent: Thursday, June 07, 2012 4:08 PM > To: Jack > Cc: PHP > Subject: Re: [PHP] help with query > > On 06/07/2012 09:37 AM, Jack wrote: > > $query = "sele

[PHP] help with query

2012-06-07 Thread Jack
Hello All, I have this string defined for my query and it shows the different types of categories fine, but when I change a.categoryid = c.categoryid to a.categoryid = 1 which is only one of the categories It shows me the same record twice. $query = "select a.startdate, a.articleid, c.name

[PHP] Split

2011-12-13 Thread Jack
in the end always with errors. not sure I get the additional aspect. I do see ther error log it tells me no ending delimiter Any help appreciated. Thanks! Jack

RE: [PHP] Problem with date

2011-12-07 Thread Jack
> To: PHP > Subject: RE: [PHP] Problem with date > > > > > > > How about a little debugging here (and possibly elsewhere): > > > > if (isset($pubdate) && ($pubdate >0)) { > > $pubdate=strtotime($pubdate); > > } else { > > die("Barf. Can't run a string to time c

RE: [PHP] Problem with date

2011-12-07 Thread Jack
> > How about a little debugging here (and possibly elsewhere): > > > > if (isset($pubdate) && ($pubdate >0)) { > > $pubdate=strtotime($pubdate); > > } else { > > die("Barf. Can't run a string to time conversion on 0 or -1."); > > } > > > Thanks Kevin, T

RE: [PHP] Problem with date

2011-12-07 Thread Jack Sasportas
> > > How about a little debugging here (and possibly elsewhere): > > if (isset($pubdate) && ($pubdate >0)) { > $pubdate=strtotime($pubdate); > } else { > die("Barf. Can't run a string to time conversion on 0 or -1."); > } > Thanks Kevin, This bombs

[PHP] Problem with date

2011-12-07 Thread Jack
me($nl, "title"); $link= GetFirstChildContentByName($nl, "link"); $desc= GetFirstChildContentByName($nl, "description"); $creator = GetFirstChildContentByName($nl, "author"); #if (!$creator) $creator = GetFirstChildContentByName

RE: [PHP] Help with redeclare error

2011-10-28 Thread Jack
> > A function with that name already exists in PHP as of 5.3.0. You'll have to > rename it or something. > > http://us2.php.net/manual/en/function.date-diff.php > That looks like what happened that new function was added and we had written one with the same name from the stone age... Thanks!

[PHP] Help with redeclare error

2011-10-27 Thread Jack
_diff); } Everywhere I call the function it looks like this: date_diff($fldstart_time,$fldstop_time); Thanks! Jack

[PHP] what's wrong with this php system

2011-08-07 Thread smith jack
I have installed a php system on my pc, it works well, except the head of the page is a bit strange, there is some warning information, and occupies lot of space, what's wrong, the error information is as follows: Warning: Parameter 1 to Notice::onPrint() expected to be a reference, value given in

[PHP] Path question

2011-03-28 Thread Jack
Hello All, Is there a smarter way to do includes by setting up a path or something where I don't have to include /home/domain.com/includes/include_file.php Apparently my path is as shown above, but I would prefer to just put in /includes/include_file.php Thanks! Jack

[PHP] help with _get error

2011-03-23 Thread Jack
Hello All, I'm having a problem with this line of code which worked fine for years: $l_url2 = ".".$_GET[SERVER_NAME]; Here is the error: [Wed Mar 23 13:33:49 2011] [error] [client 16.139.201.61] PHP Notice: Use of undefined constant SERVER_NAME - assumed 'SERVER_NAME' in /home//modules/j

RE: [PHP] String eval assistance

2011-03-15 Thread Jack
> Here you're trying to access it as an array, which it's not, so the 'response' > key doesn't exist. In addition, you're looking for UPPER-CASE, whereas that's > not the case in your example variable. > Finally, you're checking to make sure that the string IS INDEED found, but > then printing

[PHP] String eval assistance

2011-03-15 Thread Jack
doing something wrong. Thanks! Jack

RE: [PHP] problem with if and exact match

2011-03-14 Thread Jack
Thanks everyone... great examples...works ( both methods ) Thanks! Jack > -Original Message- > From: Alexis Antonakis [mailto:ad...@antonakis.co.uk] > Sent: Tuesday, March 15, 2011 1:10 AM > To: Jack > Subject: Re: [PHP] problem with if and exact match > > htt

[PHP] problem with if and exact match

2011-03-14 Thread Jack
the below without success.. Not getting the operand properly.. Thanks! Jack

[PHP] help with a safe mode snag

2011-03-14 Thread Jack
Hello All, Im writing a script that creates a temp file which it then encrypts and sends out in an email. This works 100% on servers that don't have safe mode, but this server with safe mode doesn't understand it's all the same user. Error: Mon Mar 14 21:10:11 2011] [error] [client 14.18.8.

[PHP] assistance with php not running properly

2011-03-14 Thread Jack
r log or php error log. I would like to hire someone to fix this ASAP, but not sure what companies out there are good apache/php server support guys. This is a SERVER level issue, not a programming issue. Any suggestions appreciated. Thanks! Jack

RE: [PHP] Shopping cart question

2010-11-05 Thread Jack
On Fri, Nov 5, 2010 at 12:30 PM, Jack wrote: Hello All, I'm looking to build a DB with items that are considered more of a catalog on one side of a website, and then provide those same items including the same images, descriptions etc. to a shopping cart. I don't want to re-invent

[PHP] Shopping cart question

2010-11-05 Thread Jack
nd I'm not sure I want to use something like OScommerce and inject the data into it at the same time as putting data into our database that we are writing. I was hoping someone out there has some suggestions, or even a cart module that would allow me to easily integrate into.

[PHP] form post question

2010-10-28 Thread Jack
uot;; Is there anything obvious that I am missing? Is there a way for me to show all the fields from the form, and their field names which are received by process_form? Thanks! Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Show text without converting to html

2010-09-09 Thread Jack
-Original Message- From: Andrew Ballard [mailto:aball...@gmail.com] Sent: Thursday, September 09, 2010 10:13 AM To: Jack Cc: PHP Subject: Re: [PHP] Show text without converting to html On Thu, Sep 9, 2010 at 9:52 AM, Jack wrote: > > Hello All, > > > I have some code wh

RE: [PHP] Show text without converting to html

2010-09-09 Thread Jack
-Original Message- From: Andrew Ballard [mailto:aball...@gmail.com] The only people for whom the value will be obscure will be the humans who actually try to read the HTML source code itself. Neither web browsers nor harvesting scripts won't have any trouble reading it. Andrew Andre

[PHP] Show text without converting to html

2010-09-09 Thread Jack
obfuscated html code so they can copy it. An example is I want to show them this below: your@email� 46;address Which was created by the code, but I apparently can't seem to echo it and get it to display like above.. It converts it to html no matter what I do. Thanks! Jack --

RE: [PHP] Open Source SEO tool

2010-07-06 Thread Jack
day ) for my domain and I would then know if changes or content which are on the site are helping to improve that position as well as kind of a warning when it’s slipping down the returned results which would mean were going to loose traffic…. Thanks! Jack From: Ashley Sheridan

[PHP] Open Source SEO tool

2010-06-29 Thread Jack
Hello All, Does anyone know of an open source tool for SEO that would check your positioning in the search engines and then email a result? Probably something that runs in cron and executes daily weekly etc? Thanks! Jack -- PHP General Mailing List (http://www.php.net/) To

[PHP] Zip Search

2010-04-15 Thread Jack
Hello All, Can anyone recommend a good open source zip code search application and database? Thanks, Jack

[PHP] contant /

2010-04-08 Thread Jack
); VARIABLE CODE: function f_option_menu($status_message ) { global $s_url, $s_logo, $s_logo_h, $s_logo_w; echo " ".$s_company_name." ".$status_message." THANKS Thanks! Jack

[PHP] outlook calendar entry on the fly

2010-03-11 Thread Jack
! Jack

Re: [PHP] dynamic meta tag and title app?

2009-11-19 Thread Jack S
Thanks!!! On Thu, Nov 19, 2009 at 10:09 AM, tedd wrote: > At 11:30 AM -0500 11/18/09, Jack S wrote: >> >> Hello All, >> >> Does anyone have a reference to a program that may be out there to >> help with using a single header.php for a site, but then dynamically &

[PHP] dynamic meta tag and title app?

2009-11-18 Thread Jack S
variables would be home, about us would be about etc. -- Thanks! Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Catalog APP

2009-10-29 Thread Jack
Hello All, Has anyone used a good catalog app ? ( sort of like a shopping cart, but to show off products and not sell them ) Hopefully something with templates so we can tweak the look easily. Thanks! Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] distinguish between null variable and unset variable

2009-01-21 Thread Jack Bates
How can I tell the difference between a variable whose value is null and a variable which is not set? // cannot use === null: ket% php -r '$null = null; var_dump(null === $null);' bool(true) ket% php -r 'var_dump(null === $unset);' bool(true) ket% // - cannot use isset() either: k

[PHP] get file from object

2009-01-06 Thread Jack Bates
How do I get the file where a class is defined, from an instance of that class? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: runtime access to static variable

2008-12-17 Thread Jack Bates
> this does beg the question why don't you know the classname at runtime.. > seems to be a slight design flaw and may make sense for you to post the > full problem (you must have chosen to implement this for a reason..) The full problem is: I started off with a "DeployTask" for deploying a new i

[PHP] runtime access to static variable

2008-12-16 Thread Jack Bates
How do I access a static variable when I do not know the name of the class until runtime? I have the following example PHP: ket% cat test.php http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] new $foo->className(); Class name must be a valid object or a string

2008-05-03 Thread Jack Bates
object->{'get'.$someName}($arg1, ...); - however I cannot recall the exact syntax. Can anyone confirm that there is a curly brace syntax for calling dynamically named functions? Could it be applied to instantiating dynamically named classes? Can anyone recommend a cleaner alternative

RE: [PHP] munge / obfuscate ?

2008-03-28 Thread Jack Sasportas
> -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 27, 2008 10:02 PM > To: Joey > Cc: PHP > Subject: RE: [PHP] munge / obfuscate ? > > Hi Joey, > > Please keep responses on the list so others can also benefit from the > learning process. > > Co

[PHP] redirect stdout to stderr

2008-02-22 Thread Jack Bates
eSniffer's report to stderr. Anyone have better suggestions than output buffering? Much thanks, Jack signature.asc Description: This is a digitally signed message part

Re: [PHP] New years resolution: To get serious with my programming! Anyone wanna help? :)

2008-01-08 Thread Jack Mays
funnily enough exit is even listed as a function. LOL, Ignore me, I read that message to fast and read "isn't" instead of "is". It's time to go home and sleep :) -- Jack Mays -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New years resolution: To get serious with my programming! Anyone wanna help? :)

2008-01-08 Thread Jack Mays
funnily enough exit is even listed as a function. Sure it is: http://us2.php.net/manual/en/function.exit.php Unless I'm missing a point here or something. :) -- Jack Mays -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New years resolution: To get serious with my programming! Anyone wanna help? :)

2008-01-08 Thread Jack Mays
rying to insert a new row with some of the same information? I dont see anything wrong right off the bat with the way you are performing the task. -- Jack Mays -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php form help...

2008-01-08 Thread Jack Mays
it means, but then again I probably give to much credit to most of the population :) -- Jack Mays -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jack Mays
Daniel Brown wrote: On Jan 2, 2008 2:05 PM, tedd <[EMAIL PROTECTED]> wrote: At 1:57 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote: from this:        A        to this A Read the docs for trim, you can't use it inline with other functions, it

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jack Mays
u wanting to do this? Why not just have the button text be what you want it instead of trying to do manipulation on it's value? -- Jack Mays -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [pcre] backreferences to all matches of a repeated subexpression

2007-08-01 Thread Jack Bates
think I might be able to do something using the Perl (?{code}) construction, e.g. ...(?:\.(\w+)(?{$parts[] = \2})|\[([^]]+)(?{$parts[] = \3})\])*... but I haven't thought about it too much because PHP doesn't support this construction. Any ideas much appreciated. Thanks, Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread Jack Gleeson
ome starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- -- Jack Gleeson Web Designer

[PHP] LAMP Experts Needed

2006-08-31 Thread Jack Gates
at [EMAIL PROTECTED] It is going to be a web interface interacting with a very large database. -- Jack Gates http://www.morningstarcom.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best way to get PHP5

2006-08-09 Thread Jack Gates
On Wednesday 09 August 2006 19:24, Jochem Maas wrote: > Jonathan Duncan wrote: > > On Wed, 9 Aug 2006, Chris W. Parker wrote: > >> Jack Gates <mailto:[EMAIL PROTECTED]> > >> > >>on Wednesday, August 09, 2006 10:16 AM said: > >>> On

Re: [PHP] Best way to get PHP5

2006-08-09 Thread Jack Gates
On Wednesday 09 August 2006 12:02, Chris W. Parker wrote: > I know that Fedora Core 5 offers PHP 5.1.2 but I've heard some > negative things about it in general (FC5). What sort of negative things have you heard in general about (FC5)? -- Jack Gates http://www.morningstarcom.ne

Re: [PHP] Shopping Carts

2006-07-08 Thread Jack Gates
, etc. > > Any ideas? > > Thanks, > Mike > > -- > Michael B Allen > PHP Extension for SSO w/ Windows Group Authorization > http://www.ioplex.com/ http://www.oscommerce.com built with PHP and is free. -- Jack Gates http://www.jlgates.com/ http://www.myenergyproduc

Re: [PHP] Re: Everything works...Unless they hit the "back" button...

2005-08-05 Thread Jack Jackson
shows NOTHING if I hit the BACK button. I'm still not seeing where the logic error is which makes it so that when I hit the BACK button it loses the plot. Sorry for my misunderstanding JJ kgt Jack Jackson wrote: I've tried playing with the $_SERVER['HTTP_REFERER'

Re: [PHP] Re: Everything works...Unless they hit the "back" button...

2005-08-03 Thread Jack Jackson
I've tried playing with the $_SERVER['HTTP_REFERER'] and that's no good because it's all coming from the same page - index.php!! What am I missing. . . ? Jack Jackson wrote: Hi Kristen, there's a misunderstanding: Kristen G. Thorson wrote: The code below isn&

Re: [PHP] Re: Everything works...Unless they hit the "back" button...

2005-08-03 Thread Jack Jackson
Hi Kristen, there's a misunderstanding: Kristen G. Thorson wrote: The code below isn't much help to debug. Do some checking to figure out how far into your IF statement you're getting. Is the query running? Yes it runs successfully Is it the query you expect? Yes it is perfect, and pr

Re: [PHP] Re: Everything works...Unless they hit the "back" button...

2005-08-03 Thread Jack Jackson
Hi, mark, Mark Rees wrote: > Do you want to allow people to go back and change things ? > If so, write a suitable UPDATE statement Thanks, but I think the update function should be built in -- the sql checks whether the userAnswer table contains the q_id the user has just entered; if so, it

[PHP] Everything works...Unless they hit the "back" button...

2005-08-03 Thread Jack Jackson
Hi all. This has been an interesting week. Now the form works, and I am able to error check, if no errors look into user answer table and delete from that all q_ids matching the ones just picked, insert this page of question/answer info (q_id/a_id) into the user answer db, and if successful ad

Re: [PHP] Forming an SQL query

2005-08-02 Thread Jack Jackson
d=values(a_id); Query OK, 5 rows affected (0.01 sec) Records: 4 Duplicates: 1 Warnings: 0 mysql>select * from user_answers; +--+--+--+ | u_id | q_id | a_id | +--+--+--+ |1 |1 |1 | |1 |1 |2 | |1 |1 |3 | +--+--+--+ 3 rows in set (0.00 sec)

[PHP] Forming an SQL query

2005-08-02 Thread Jack Jackson
Hi, Thanks to everyone's help, that multipage monster of a form is now working properly (yay!). One problem I have though is that I stick the answers as each page is completed into a table. If the user hits the back button, rather than adding a new row to the table I'd rather update it if it'

Re: [PHP] Re: SOLVED - [PHP] php-mySQL insert problem

2005-08-01 Thread Jack Scott
no prob ;-) On Tue, 2005-08-02 at 02:27 +0200, Adi Zebic wrote: > Jack Scott a écrit : > > Try this: > > $insertQuery = "Insert into TABLE > > ( > > col_one, > > col_two > > )values ( >

Re: [PHP] php-mySQL insert problem

2005-08-01 Thread Jack Scott
Try this: $insertQuery = "Insert into TABLE ( col_one, col_two )values ( '" . $this -> firstName . "', '" . $this-> lastName . "' )"; $db =& new DB; $res

Re: [PHP] Re: error checking a null array

2005-08-01 Thread Jack Jackson
loop, and then I wondered why it only ran through once. D'oh. Jochem Maas wrote: Jack Jackson wrote: AAarg. Okay, thanks to all of you I've decided that any field name I need to see will be sent to $_SESSION['required_fields'] and basta. Then after the submit butt

Re: [PHP] Re: error checking a null array

2005-08-01 Thread Jack Jackson
AAarg. Okay, thanks to all of you I've decided that any field name I need to see will be sent to $_SESSION['required_fields'] and basta. Then after the submit button is pressed, I am doing this: reset($_SESSION['required_fields']); foreach ($_SESSION['required_fields'] as $fieldname)

Re: [PHP] returning info. from a form selection

2005-08-01 Thread Jack Jackson
It'd have to be in the form of a form and you'd need to add values to the options, wrap it inside form tags, specify a method like $_POST or $_GET, error check and then send. Bruce Gilbert wrote: can anyone give me an idea on how to return info. from a forl pulldown menu eg:

Re: [PHP] error checking woes

2005-08-01 Thread Jack Jackson
Kristen G. Thorson wrote: Thanks for the == ! But I had set $message global within the buld-checkbox function, so that part of it does work. . . . Jack, Read below: Jack Jackson wrote: Hi, Now that the drop down is working properly (thanks!!), I am trying to validate, and

Re: [PHP] Re: error checking a null array

2005-08-01 Thread Jack Jackson
Jochem Maas wrote: wtf are you smoking Jack? every checkbox that was checked will exist in the $_POST array set with the value you gave it (I alway set a chekcboxes value to 1 because the values mere existance in the submitted data indicates it's chevckbox was checked), if a checkbox

Re: [PHP] Re: error checking a null array

2005-08-01 Thread Jack Jackson
g.gill wrote: From what I understand the simplest solution here would be to check to see if you have $_POST['cb'] in the first place. That would indicate if checkbox was selected or not. After, you have posted the form just do the following test. $check_box_exits = ((isset($_POST['cb']))?

Re: [PHP] Re: error checking a null array

2005-07-31 Thread Jack Jackson
David Robley wrote: Jack Jackson wrote: hi, I have checkboxes beging dynamically generated. to seperate tasks in error checking I have added he arrays not just to $_POST but to $_POST[cb] so names (derived from question numbers) are for example: $_POST[cb][7] A dump of $_POST would

[PHP] error checking a null array

2005-07-31 Thread Jack Jackson
hi, I have checkboxes beging dynamically generated. to seperate tasks in error checking I have added he arrays not just to $_POST but to $_POST[cb] so names (derived from question numbers) are for example: $_POST[cb][7] A dump of $_POST would therefore include something like ["cb"]=> array

Re: [PHP] error checking woes- SOLVED

2005-07-31 Thread Jack Jackson
I did the smart thing last night: nothing. I read some PHP books and then realized that the answer to my error checking was a lot less complex, once again, than I had initially suspected. I finally ended up with: //error checking foreach($_POST as $qname=>$value) { if(empty($value)){

Re: [PHP] error checking woes

2005-07-30 Thread Jack Jackson
} //error checking if ( !strcmp($action,'process') ) { if(empty($_POST[$row['q_name']])){ $message[$row['q_name']] == "1"; } } } }//function GetQuestionsDropdown it

[PHP] error checking woes

2005-07-30 Thread Jack Jackson
Hi, Now that the drop down is working properly (thanks!!), I am trying to validate, and having LOTS of trouble. After being ceaselessly derided last night on an irc channel for my dimwitedness, I am still not any closer. The code which works is this: function GetQuestionsDropdown($cat){ //fir

Re: [PHP] Dropdown Building Function

2005-07-29 Thread Jack Jackson
Kristen G. Thorson wrote: I'm not 100% sure where you're saying you're stuck, but I think you're trying to do with one query what you will probably find is best to do with several. Hopefully the following will help some: //first get all the questions $sql = "select * from questions"; $resu

Re: [PHP] Dropdown Building Function

2005-07-29 Thread Jack Jackson
Aaron, Thanks for showing me this it is very cool indeed. However maybe I am being dumb and obdurate but what I am really trying to do is build some of these things myself (with, thankfully, help) so that I understand enough that when I see a great tool like yours I'll actually appreciate what

Re: [PHP] Dropdown Building Function

2005-07-29 Thread Jack Jackson
in most cases, it's still better than what you'd have to do otherwise (create some arrays and do some sorting, etc.). That is, if I've understood what you need ;) kgt Jack Jackson wrote: Hi, can anyone even point me in a *direction*? I suppose this is the most complex

Re: [PHP] Dropdown Building Function

2005-07-29 Thread Jack Jackson
eve in most cases, it's still better than what you'd have to do otherwise (create some arrays and do some sorting, etc.). That is, if I've understood what you need ;) kgt Jack Jackson wrote: Hi, can anyone even point me in a *direction*? I suppose this is the most complex t

Re: [PHP] Dropdown Building Function

2005-07-29 Thread Jack Jackson
etely baffled. Jack Jackson wrote: Hi, because that last topic on multipage forms was so exciting, I decided to database the questions as well. I wonder if anyone can help me with a function to pull rows into dropdown boxes. It's a 1:n relationship between questions and answers, an

Re: [PHP] Dropdown Building Function

2005-07-29 Thread Jack Jackson
Hi, can anyone even point me in a *direction*? I suppose this is the most complex thing I've ever tried to do and I have been at it for tens of hours and am still completely baffled. Jack Jackson wrote: Hi, because that last topic on multipage forms was so exciting, I decided to dat

[PHP] Dropdown Building Function

2005-07-28 Thread Jack Jackson
Hi, because that last topic on multipage forms was so exciting, I decided to database the questions as well. I wonder if anyone can help me with a function to pull rows into dropdown boxes. It's a 1:n relationship between questions and answers, and I have a table of questions q_id q_name q_

Re: [PHP] Multipage form redux

2005-07-28 Thread Jack Jackson
Mark Rees wrote: "André Medeiros" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] The point of sessions is that when you close your browser, you loose it. I'm affraid that if you want sessions that last two weeks, you'll have to make your own session handler :) but yeah, it's poss

Re: [PHP] Multipage form redux

2005-07-28 Thread Jack Jackson
The light dawns. Thank you everyone for this explanation, and the help JJ Mark Rees wrote: Jack Jackson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Somehow my intent has been turned around here and I apologise. I do not want to use *any* client side validat

Re: [PHP] Multipage form redux

2005-07-28 Thread Jack Jackson
Marcus Bointon wrote: On 27 Jul 2005, at 21:22, Jack Jackson wrote: Right. Except I would rather have it working in a session because I specifically do not want to have the form sending $_POST data back and forth to the browser six times for several reasons. SO I'd like to Page1 // U

Re: [PHP] Multipage form redux

2005-07-27 Thread Jack Jackson
Jim Moseby wrote: -Original Message- From: Jack Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 27, 2005 3:47 PM To: php >> "[php] PHP General List" Subject: Re: [PHP] Multipage form redux hi, my first attempt at a sessions-based form is starting at http://pas

Re: [PHP] Multipage form redux

2005-07-27 Thread Jack Jackson
($page2); } because that's keeping it all in one script. But how should I be getting to the next page, sending headers to a new script, and at the end of the chain the script which pulls it all together? Thanks in advance, JJ Jack Jackson wrote: Thanks everyone. I take the poi

Re: [PHP] Multipage form redux

2005-07-27 Thread Jack Jackson
Thanks everyone. I take the point of Andre, but believe that the depth and sensitivity of the data require it be stored server side. I think that Richard and Mark have put their fingers on it - it's gotta be cookie based. Someone on the IRC suggested sessions and I think that it the way it goes

[PHP] Multipage form redux

2005-07-27 Thread Jack Jackson
Hi, I have searched the archives and seen links to tutorials at phpclasses (which seem to be down) and not found an answer to my question: I have a long form I want to break into seven pages. Rather than pass values from page to page as hidden, I'd rather write the results to the db after each

Re: [PHP] Prepopulating form fields afer an error

2005-07-25 Thread Jack Jackson
Message - From: "Jack Jackson" <[EMAIL PROTECTED]> To: "[php] PHP General List" Sent: Monday, July 25, 2005 2:37 PM Subject: [PHP] Prepopulating form fields afer an error Hi, I have a form and it does basic error checking after submission; when the user omits required f

[PHP] Prepopulating form fields afer an error

2005-07-25 Thread Jack Jackson
Hi, I have a form and it does basic error checking after submission; when the user omits required fields it kicks back the form with highlighted errors telling them the error of their ways. I've sussed out that by populating the value of the field with $fieldvalue I can have that form field "

Re: [PHP] Zipping on the fly

2005-06-29 Thread Jack Jackson
Thanks for this Philip and Andre! Philip Hallstrom wrote: hi, I'm providing a download script which lets trusted users view a directory and select a file to download; I don't want to store the files zipped on the server. Is there a fast, built-in way to zip the selected file on the fly and le

[PHP] Zipping on the fly

2005-06-29 Thread Jack Jackson
hi, I'm providing a download script which lets trusted users view a directory and select a file to download; I don't want to store the files zipped on the server. Is there a fast, built-in way to zip the selected file on the fly and let the user download the zipped copy? I looked at php.net/zi

Re: [PHP] Verifying images with getimagesize()

2005-06-25 Thread Jack Jackson
Edward Vermillion wrote: Sorry to reply to this message but I wanted the OP to find it too... On Jun 23, 2005, at 9:42 AM, Jack Jackson wrote: [snip] Through your help I was able to validate image files using getimagesize() and have made a nice script to upload and rename images. [\snip

Re: [PHP] Uploading and verifying word and excel files

2005-06-24 Thread Jack Jackson
Thank you for ALL this great information, Richard! I really appreciate all the help. JJ Richard Lynch wrote: On Thu, June 23, 2005 7:42 am, Jack Jackson said: I cannot see a way to validate or examine Word or Excel files for validity (and assume that older word files would validate

Re: [PHP] Uploading and verifying word and excel files

2005-06-23 Thread Jack Jackson
Tom Rogers wrote: Hi, Friday, June 24, 2005, 12:42:33 AM, you wrote: JJ> Hi, JJ> I checked at JJ> http://www.php.net/manual/en/features.file-upload.php and JJ> all the user notes, and also the PEAR solution for uploading files and I JJ> still have a couple of questions. JJ> I need to create

Re: [PHP] Uploading and verifying word and excel files

2005-06-23 Thread Jack Jackson
John Nichel wrote: Jack Jackson wrote: Also, it seems that directories must be blown wide open (777) to allow the script to copy the file over from /tmp. My ISP won't allow directories to be set to 777 under public_html/ -- but we need to access the files via web browser which is the

[PHP] Uploading and verifying word and excel files

2005-06-23 Thread Jack Jackson
Hi, I checked at http://www.php.net/manual/en/features.file-upload.php and all the user notes, and also the PEAR solution for uploading files and I still have a couple of questions. I need to create a form to allow users to upload (and later to delete) MS word, excel and jpg files. Through yo

Re: [PHP] Amy's Site question

2005-06-22 Thread Jack Jackson
Thanks everyone! I did look in the manual under operators and must have missed the link to round. Thanks to all who replied! Simon Allison wrote: http://au3.php.net/round -Original Message- From: Jack Jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, 22 June 2005 9:18 PM To

[PHP] Amy's Site question

2005-06-22 Thread Jack Jackson
Hello, On a site I'm listing measurements in both inches and cm; in the db they're stored as inches. To convert them to cm I'm doing: x ($cartoon['art_height'] * 2.54); ?> cm How can I limit the result of that math to one decimal place, ie, 9.5 cm, not 9.523 cm? Thanks in advance, JJ -

Re: [PHP] Re: rename

2005-06-18 Thread Mister Jack
ok depper into it. (since i've been bitten by it with my website being 'blank page' since it grew out of space...) Thanks, On 6/18/05, Bob Winter <[EMAIL PROTECTED]> wrote: > Look at http://us2.php.net/manual/en/function.rename.php > > Mister Jack wrote: > > Hi, >

[PHP] rename

2005-06-18 Thread Mister Jack
Hi, I would like to know precisely what rename do in case of error. any link for that ? I do a : @rename($old, $new), what happens if I run out of space ? is the rename just an alias for C function library ? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Those checkboxes again

2005-06-16 Thread Jack Jackson
thing like this.. using arrays for the check box values if($permissions_data <> NULL) { if(in_array($row_rsPermissions['permission_short_name'], $permissions_data)) { $checked_per = " checked"; } else { $checked_per = ""; } } hope that helps you out Joe On 6/1

  1   2   3   4   5   6   7   >