Re: [PHP] How do I validate input using php?

2002-07-24 Thread JSheble
you're returning a literal true if the condition matches, and nothing if it fails... function validate() { // if ( is_numeric($input1) && is_numeric($input2) && ctype_alpha($input3) && ctype_alpha($input4) ) return true; else return f

[PHP] Odd Request: Image 2 HEX

2002-07-09 Thread JSheble
I'm using a Zebra label printer in an application I have and in order to display an image on the label, according to the ZPL II printer language, any image must be converted to HEX code. Does anyone hvae a code snippet or know of a free utility that will take a graphic image (BMP, GIF, JPG, et

RE: [PHP] GOTO command. Doest it exist?

2002-06-11 Thread JSheble
I sure hope I'm not going to stir up any trouble, but why exactly would you need a GOTO statement? Many languages have no such construct because the ability to use functions or routines makes GOTO statements obsolete. They are most likley only in VB because it's a legacy thing, but AFAIK C, C++,

Re: [PHP] Mail responders

2002-04-26 Thread JSheble
How would you set this up via PHP? I've wanted to do this, but I always thought it was something specific to SendMail, and in a hosted environment, mucking about with SendMail generally isn't allowed... I'd like to send an email to something like [EMAIL PROTECTED] but have a PHP script get t

[PHP] mySQL Data Limits

2002-04-23 Thread JSheble
I have a database with a TEXT field in it, and I've been using it this way for over three years... today was the first time an INSERT was truncated on this field... It was an unusually large INSERT, and due to the truncation I'm now has wondering what are the limits (if any) on inserting data

[PHP] mailing address regexp

2002-04-09 Thread JSheble
I ask this here because PHP developers are notoriously famous for knowing RegExp... the project in question isn't for PHP, but perhaps you can still be a bit of a help? I need help in formulating a RegExp that'll detect PO Box addresses... the problem is the many different ways a PO Box can b

Re: [PHP] Re: php and html image tag...

2002-04-08 Thread JSheble
I don't know if anybody else sent you an email about this or not, but there's a much easier way to do what you're doing in this snippet of code... $record = @mysql_query("SELECT wel_area, ad01, ad02, ad03, ad04, ad05, ad06, ad01_t, ad02_t, ad03_t, ad04_t, ad05_t, ad06_t FROM $table",$dbh); wh

Re: [PHP] Please help

2002-03-26 Thread JSheble
I realize that this is a newbie list, but isn't this just a tad bit ridiculous? It's not even a PHP question really, it's a SQL question. Here's a question... I need a form that accepts a name. Please write the code for me so I don't have to bother looking anything up, reading anything, a

Re: [PHP] Re: help with date formatting

2002-03-18 Thread JSheble
I always use the mySQL DATE_FORMAT function in my queries themselves... SELECT DATE_FORMAT( someDatField, "%m/%d/%Y" ) as thedate FROM someTable At 12:23 PM 3/18/2002 -0600, Ryan wrote: >On Mon, 18 Mar 2002 11:51:07 -0600 >Ryan <[EMAIL PROTECTED]> wrote: > >By, the way I'm getting the date fro

Re: [PHP] putting a url in an anchor tag

2002-03-14 Thread JSheble
Here's a function that was sent to me in response to me needing the exact same thing: function pb_t2h_URLMarkup ($Text, $StyleClass = '', $Target = '') { if ($StyleClass != '') $ClassS = " class='$StyleClass'"; else $ClassS = ""; if

RE: [PHP] Novice Question

2002-02-18 Thread JSheble
with this type of naming convention, how would you write a javascript function to access these form elements for client side validation? JavaScript vomits when accessing window.document.frmName.poly[].value??? At 03:35 PM 2/18/2002 -0600, Rick Emery wrote: >name each field with an array name.

Re: [PHP] IE vertical scrollbars changing color

2002-02-12 Thread JSheble
CSS... here's an example: BODY { font-size : 10pt; font-family : Arial, Helvetica, sans-serif; scrollbar-face-color: MidnightBlue; scrollbar-highlight-color: MidnightBlue; scrollbar-shadow-color: Gray; scrollbar-3dlight-color: #f3f3f3; scrollbar-arrow-color: #f3f3f3; scrollbar-track-color: #E

Re: [PHP] check this new site

2002-02-08 Thread JSheble
looks like every other SLashdot, PHP-Nuke or PHP-Mutant web site out there with,just a lot less content... At 07:52 AM 2/8/2002 -0800, Sagar Chand wrote: >hi all out there, > >just tell me howz this new site >"www.linuxfornerds.com" >A site meant for ardent linux lovers but every one r >invited

RE: [PHP] Got a problem I cant figure out

2002-01-28 Thread JSheble
typically this means a missing semi-colon or a control structure that wasn't closed somewhere in the code... it won't tell you where, so you'll just have to check and double-check all the lines of code At 08:28 AM 1/28/2002 -0600, Rick Emery wrote: >SHOW US YOUR CODE > >-Original Message-

Re: [PHP] Uploading a file

2002-01-24 Thread JSheble
the MAX_FILE_SIZE field is OPTIONAL, so just because you didn't see it in his code does not mean that's where it was broken at. At 04:42 PM 1/24/2002 -0600, you wrote: >If you READ, under the first example posted on the URL I referenced, >you would see mention of MAX_FILE_SIZE field... which I

Re: [PHP] File upload

2002-01-21 Thread JSheble
you could write a bit of JavaScript to run on the form's onSubmit event or even the fields onBlur event. Then in your JavaScript, parse out the file name and extension to validate. It's not 100% accurate since users could rename any file to have a JPG extension, but it works for the majority.

Re: [PHP] Date

2001-12-12 Thread JSheble
you could use the mySQL DATE_FORMAT() directly in your query: SELECT DATE_FORMAT( mydatefield, '%m/%d/%Y ' ) as d_mydatefield from MyTable At 11:23 PM 12/12/2001 +0100, you wrote: >Hi to all, > >I'm using this to get date from mySQL database: > >.. >$p_datum = $row["mydatefield"]; >$mydate = get

Re: [PHP] PHP to ASP ?

2001-11-26 Thread JSheble
Oh really? I know ASP, PHP, ColdFusion and a few others. You really shouldn't make such global statements... just because you don't know ASP doesn't mean it's not a viable tool, nor is it a good idea as a web developer to lock yourself into one singular technology. Knowing more than one mak

RE: [PHP] auto form submit

2001-11-20 Thread JSheble
When POST data is sent to a page, it's as if somebody typed the text into a textarea and hit a submit button. Even though this is being done programmatically, the POST method will behave the same. SOmebody in their (your)code will have to write something similiar to: $postData = "xVar=" . rawu

RE: [PHP] Re: how can I get the post content in php

2001-11-15 Thread JSheble
When POST data is sent to a page, it's as if somebody typed the text into a textarea and hit a submit button. Even though this is being done programmatically, the POST method will behave the same. SOmebody in their (your)code will have to write something similiar to: $postData = "xVar=" . rawu

RE: [PHP] cron or something similar ?

2001-11-03 Thread JSheble
One way would be to choose a web hoster that provides you with cron access. See JTL Networks at http://www.jtlnet.com > -Original Message- > From: Srinivasan Ranganathan [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 02, 2001 10:22 PM > To: [EMAIL PROTECTED] > Subject: [PHP] cron or

[PHP] sending email to php script

2001-10-26 Thread JSheble
A while ago an email came through here about how to parse out email message from a php script. The thing that was mostly of interest to me is the ability to send an email to a php script, I guess through a sendmail alias? I asked how to accomplish this, and never saw an answer come through.