OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-general Digest 8 Feb 2007 16:26:15 -0000 Issue 4615

php-general-digest-helplists.php.net
Date: Thu Feb 08 2007 - 10:26:15 CST


php-general Digest 8 Feb 2007 16:26:15 -0000 Issue 4615

Topics (messages 248533 through 248587):

Unable to load Dynamic Link Library
        248533 by: viquar.x.shaikh.jpmchase.com
        248534 by: Chris
        248535 by: viquar.x.shaikh.jpmchase.com

Re: what do i need to disable
        248536 by: Don

PHP/MySQL Create DB user
        248537 by: Stephen
        248538 by: Chris

Re: Text Editor for Windows?
        248539 by: Andrei
        248540 by: Alexandre B.
        248544 by: Brice
        248561 by: Juan Felipe Alvarez Saldarriaga

phpexplorator has released phpexplorator
        248541 by: Tchouamou Eric Herve

Release phpexplorator
        248542 by: Tchouamou Eric Herve

Re: [DOC-LICENSE] Release phpexplorator
        248543 by: Derick Rethans
        248550 by: Robert Cummings

Re: Multi lingual pages
        248545 by: Frank Arensmeier

reading in XML document and getting attribute values in PHP4
        248546 by: Angelo Zanetti

Re: JS prompt -> php
        248547 by: Ryan A
        248586 by: Colin Guthrie

WinSCP and PHP
        248548 by: George Pitcher
        248549 by: Edward Kay
        248552 by: George Pitcher

SOLVEDRe: [PHP] reading in XML document and getting attribute values in PHP4
        248551 by: Angelo Zanetti

open_basedir
        248553 by: Christopher Deeley
        248554 by: Stut

Re: Javascript and $_POST
        248555 by: Dan Shirah
        248556 by: Németh Zoltán
        248559 by: Németh Zoltán
        248560 by: Németh Zoltán
        248563 by: Dan Shirah
        248564 by: T.Lensselink
        248566 by: Németh Zoltán
        248571 by: Jon Anderson
        248572 by: Dan Shirah
        248573 by: T.Lensselink
        248576 by: Jon Anderson
        248578 by: Jon Anderson
        248580 by: Dan Shirah
        248581 by: Robert Cummings

graphical form validation
        248557 by: Ross
        248558 by: Németh Zoltán

Sorting a multidimensional array
        248562 by: Dave Goodchild
        248565 by: Roman Neuhauser
        248567 by: Dave Goodchild
        248569 by: Németh Zoltán
        248570 by: Edward Kay

is_dir reading a folder with a space in the name?
        248568 by: Angelo Zanetti
        248574 by: T.Lensselink
        248575 by: Roman Neuhauser
        248577 by: Angelo Zanetti
        248579 by: T.Lensselink
        248584 by: Roman Neuhauser

Boolean-cast and arrays
        248582 by: Tim
        248583 by: Tim

Error compiling lib
        248585 by: Mário Gamito
        248587 by: Tim

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php-generallists.php.net

----------------------------------------------------------------------

attached mail follows:


Hi

I have installed Apache2Triad

Apache2Triad version 1.5.4
Apache version 2.2.0
MySQL version 5.0.18
PostgreSQL version 8.1.2
Openssl version 0.9.8a
Slimftpd version 3.18
Xmail version 1.22

The php.ini file has the extension=php_curl.dll line enabled (uncommented)
and the file is available in the windows installation directory.

When starting PHP from command-line with PHP.exe, I get the following
error.

Please help, as I'm a PHP newbie.

Regards,
Viquar R. Shaikh
( Phone: +91 22 6695 3770 |) GDP: 695 3770 |) Mob: +91 9867611123 | +
viquar.x.shaikhjpmorgan.com

-----------------------------------------
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.

attached mail follows:


viquar.x.shaikhjpmchase.com wrote:
>
> Hi
>
> I have installed Apache2Triad
>
> Apache2Triad version 1.5.4
> Apache version 2.2.0
> MySQL version 5.0.18
> PostgreSQL version 8.1.2
> Openssl version 0.9.8a
> Slimftpd version 3.18
> Xmail version 1.22
>
> The php.ini file has the *extension=php_curl.dll *line enabled
> (uncommented) and the file is available in the windows installation
> directory.
>
> When starting PHP from command-line with PHP.exe, I get the following
> error.

Don't send screenshots.

Copy/paste the errors.

--
Postgresql & php tutorials
http://www.designmagick.com/

attached mail follows:


Hi

I have installed Apache2Triad

Apache2Triad version 1.5.4
Apache version 2.2.0
MySQL version 5.0.18
PostgreSQL version 8.1.2
Openssl version 0.9.8a
Slimftpd version 3.18
Xmail version 1.22

The php.ini file has the extension=php_curl.dll line enabled (uncommented)
and the file is available in the windows installation directory.

When starting PHP from command-line with PHP.exe, I get the following
error.

The first ScreenShot
Runtime Error
Program: C:\apache2triad\php\bin\php.exe

R6034
An application has attempted to load the C runtime library incorrectly.
Please contact the application's support team for more information

The Second Screenshot
PHP Startup : Unable to load dynamic link library
'C:\Apache2Triad\php\extensions\php_curl.dll' - A dynamic link library
(DLL) initialization routine failed.

Please help, as I'm a PHP newbie.

Regards,
Viquar R. Shaikh
( Phone: +91 22 6695 3770 |) GDP: 695 3770 |) Mob: +91 9867611123 | +
viquar.x.shaikhjpmorgan.com

-----------------------------------------
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.

attached mail follows:


I asked this question awhile ago and never really visited the issue till
now. The response I got showed me how to disable everything, but I want to
allow basic html tags.

~My original question~

My next task is disable harmful tags/scripts in a full text field.

I want to store a bio type field and I am considering allowing html (to
allow a MySpace type of customization to the page), but I am really new to
this so I really don't know what kind of trouble I am asking for.

I'm sure that I need to block JavaScript, but are there other things (tags,
scripting, etc.) that can be input into my DB that will cause problems
either being stored as such or when accessed?

I'm thinking along the lines outlined below, I just need to complete the
list and would like some assistance form the seasoned vets here.

$bio = strtr($bio, "<script>, "");
$bio = strtr($bio, "<?php>, "");
$bio = strtr($bio, "<?>, "");

Again, thanks for the advice in advance.

 

Don

attached mail follows:


There seems to be no PHP function to create a DB user.

I am trying to automate setting up virtual domains in a shared environment.

Am I missing something obvious?

Thanks
Stephen

attached mail follows:


Stephen wrote:
> There seems to be no PHP function to create a DB user.

It doesn't have one to create a database either... php can't do
everything for you ;)

> I am trying to automate setting up virtual domains in a shared environment.
>
> Am I missing something obvious?

http://dev.mysql.com/doc/refman/4.1/en/user-account-management.html

or if you're using mysql 5+,

http://dev.mysql.com/doc/refman/5.0/en/create-user.html

--
Postgresql & php tutorials
http://www.designmagick.com/

attached mail follows:


    Lots of ppl would tell u lots of different php editors. I personally
use editplus2 bcuz it's very light and has syntax hightlighting on php
code and html code in same time and other bla bla features. And I use it
on linux too with wine.
    But anyway you will have to try them yourself to tell this is the
one for u.

    Andy

Stephen wrote:
> I am finding that notepad is lacking when correcting syntax errors in my php code. No line numbers.
>
> What can people recommend for use under Windows?
>
> Thanks
> Stephen
>
> .
>
>

attached mail follows:


u can try PSPad, a freeware code editor (kind of ultraedit but free)
http://www.pspad.com/
ALexandre B

On 2/8/07, Andrei <phplisttextbill.com> wrote:
>
>
> Lots of ppl would tell u lots of different php editors. I personally
> use editplus2 bcuz it's very light and has syntax hightlighting on php
> code and html code in same time and other bla bla features. And I use it
> on linux too with wine.
> But anyway you will have to try them yourself to tell this is the
> one for u.
>
> Andy
>
> Stephen wrote:
> > I am finding that notepad is lacking when correcting syntax errors in my
> php code. No line numbers.
> >
> > What can people recommend for use under Windows?
> >
> > Thanks
> > Stephen
> >
> > .
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


On 2/8/07, Stephen <stephen-drogers.com> wrote:
>
> I am finding that notepad is lacking when correcting syntax errors in my
> php code. No line numbers.
>
> What can people recommend for use under Windows?

Try notepad++. It's a great software, specially when you code with many
languages :
 http://notepad-plus.sourceforge.net/

Brice

Thanks
> Stephen
>

attached mail follows:


Stephen wrote:
> I am finding that notepad is lacking when correcting syntax errors in my php code. No line numbers.
>
> What can people recommend for use under Windows?
>
> Thanks
> Stephen
>
>
Hey, well, actually I use gVim on windows + WinSCP :)

http://wiki.freaks-unidos.net/gvim_on_steroids_(windoze)

attached mail follows:


Project "phpexplorator" ('phpexplorator') has released the new version of package
'phpexplorator'. You can download it from SourceForge.net by following this link:
<https://sourceforge.net/project/showfiles.php?group_id=183073&release_id=483795>
or browse Release Notes and ChangeLog by visiting this link:
<https://sourceforge.net/project/shownotes.php?release_id=483795>

Description: phpexplorator is a web interface to remote explore, manage,
preview , edit, create, copy, rename, download, upload, zip, unzip ...etc,
files, images, and directory in the server site. Integrated with TinyMce,
useful for computer programmer and admin

Release Name: 2.0
Notes:
This new version can preview images in all your disk, and download a folder
in zip format. Explore your file remotely will be now very fast and will
more informations. Support preview of text files and images files. More than
50 new functionalities are available in this new version. All was write in
object oriented, you easily use his file to be class and integrate it in
your personal application.
Thank and use with caution this admin appplication.
T.Eric.H

Changes:
- Better interface
- 4 differents login mode (challenge form, basic, url, apache, no)
- All object oriented
- More informations on files.
- More command to be use
- Preview of images
- Download directories
- Zip compression and download list of files and folders
- More configutions option
- Correct some bugs
- Move and copy array of folders and files with one click
- support apache icons, and apache configuration
- Icon internal saved in base64..etc

--
Eric Herve Tchouamou
http://www.tchouamou.homeunix.com
Via Portofino, 8 - 10135 Torino - Italy
phone: +39 011 3720145
Cel: +39 328 6928649
email: tchouamougmail.com

attached mail follows:


Project "phpexplorator" ('phpexplorator') has released the new version of
package
'phpexplorator'. You can download it from SourceForge.net by following this
link:
<https://sourceforge.net/project/showfiles.php?group_id3073&release_idH
3795
>
or browse Release Notes and ChangeLog by visiting this link:
<https://sourceforge.net/project/shownotes.php?release_idH3795>

Description: phpexplorator is a web interface to remote explore, manage,
preview , edit, create, copy, rename, download, upload, zip, unzip ..etc,
files, images, and directory in the server site. Integrated with TinyMce,
useful for computer programmer and admin

Release Name: 2.0

Notes:
This new version can preview images in all your disk, and download a folder
in zip format. Explore your file remotely will be now very fast and will
more informations. Support preview of text files and images files. More than
50 new functionalities are available in this new version. All was write in
object oriented, you easily use his file to be class and integrate it in
your personal application.
Thank and use with caution this admin appplication.
T.Eric.H

Changes:
- Better interface
- 4 differents login mode (challenge form, basic, url, apache, no)
- All object oriented
- More informations on files.
- More command to be use
- Preview of images
- Download directories
- Zip compression and download list of files and folders
- More configutions option
- Correct some bugs
- Move and copy array of folders and files with one click
- support apache icons, and apache configuration
- Icon internal saved in base64..etc

--
Eric Herve Tchouamou
http://www.tchouamou.homeunix.com
Via Portofino, 8 - 10135 Torino - Italy
phone: +39 011 3720145
Cel: +39 328 6928649
email: tchouamougmail.com

attached mail follows:


Hello,

please do not spam our mailinglists with release announcements.

regards,
Derick

On Tue, 6 Feb 2007, Tchouamou Eric Herve wrote:

> Project "phpexplorator" ('phpexplorator') has released the new version of
> package
> 'phpexplorator'. You can download it from SourceForge.net by following this
> link:
> <https://sourceforge.net/project/showfiles.php?group_id=183073&release_id=48
> 3795
> >
> or browse Release Notes and ChangeLog by visiting this link:
> <https://sourceforge.net/project/shownotes.php?release_id=483795>
>
>
> Description: phpexplorator is a web interface to remote explore, manage,
> preview , edit, create, copy, rename, download, upload, zip, unzip ..etc,
> files, images, and directory in the server site. Integrated with TinyMce,
> useful for computer programmer and admin
>
> Release Name: 2.0
>
> Notes:
> This new version can preview images in all your disk, and download a folder
> in zip format. Explore your file remotely will be now very fast and will
> more informations. Support preview of text files and images files. More than
> 50 new functionalities are available in this new version. All was write in
> object oriented, you easily use his file to be class and integrate it in
> your personal application.
> Thank and use with caution this admin appplication.
> T.Eric.H
>
> Changes:
> - Better interface
> - 4 differents login mode (challenge form, basic, url, apache, no)
> - All object oriented
> - More informations on files.
> - More command to be use
> - Preview of images
> - Download directories
> - Zip compression and download list of files and folders
> - More configutions option
> - Correct some bugs
> - Move and copy array of folders and files with one click
> - support apache icons, and apache configuration
> - Icon internal saved in base64..etc
>
>
>

attached mail follows:


On Thu, 2007-02-08 at 10:13 +0100, Derick Rethans wrote:
> Hello,
>
> please do not spam our mailinglists with release announcements.

Release announcements have always been allowed, the preferable method is
to prefix the subject with [Release] and not to send it twice as was the
case with phpexplorator.

Although, as I was about to send this I just noticed it was sent to
every PHP list under the sun and that certainly is frowned upon. I have
trimmed off all but general.

Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'

attached mail follows:


Hello.

I would like to hook up on this issue a little bit more. I am
wondering if anybody is willing to share some good advices regarding
how to implement a good (normative) url structure so to say when it
comes to multi lingual sites. Let me give you an example.

IBM has many different domains including .se, .de, .com, .es and so
on. But, all local domains are redirected to e.g. www.ibm.com/de or
www.ibm.com/se and so on. Is this "common practise"? Right now, I am
about to restructure my employers site. But, in contrast to for
example the IBM site, I would like to bind the content to the
corresponding domain - without redirecting the visitor. All english
content for example will be under the .com domain, all swedish
content will be under .se domain. Hope you see what I mean.

I am not seeking advices about how to implement such a structure (I
have done this already). I am more interested in pros and cons with
either way. My hope is that the site will be more Google friendly.

Am I making sense? I might also add that I read some articles from W3
org about localization / internationalization, but I couldn't find
anything useful so far.

What is your opinion?

regards,

//frank

27 jan 2007 kl. 01.12 skrev Jochem Maas:

> Otto Wyss wrote:
>> Paul Novitski wrote:
>>
>> I formulated my question in general since I couldn't find an other
>> message here about supporting multiple languages.
>>
>>> http://www.w3.org/International/articles/
>>>
>>> http://www.w3.org/TR/i18n-html-tech-lang/
>>>
>>> http://php.net/setlocale
>>>
>> Thanks a lot, these are good points for reading.
>>>
>>> 1) Switching language downloads a new version of the current page,
>>> generally with the same markup but new text. Example:
>>> http://partcon.ca/
>>>
>> I'll favor this way especially if several languages have to be
>> provided.
>>
>>> In both cases I store the text in database tables that contain a
>>> language field I can select on to match the user's request.
>>>
>> I wonder if retrieving static texts from the database draws too much
>> performance. I know from somebody who stores texts in large data
>> arrays
>> an uses shared memory, yet I haven't figured it out how.
>>
>> I consider storing static texts as defines and just load a different
>> definition file when the user switches language. Is this practical?
>
> don't go down the define('LANG_KEY', 'lang string value'); route -
> defines
> are comparatively SLOW to create. IF you go down the road of
> loading in text
> from 'per lang' files I would suggest using an array as the storage
> mechanism:
>
> $Lang = array(
> 'LANG_KEY' => 'lang string value',
> // .. etc
> );
>
> assoc array are much less heavy to create.
>
> also consider that there are, imho, 2 kinds of language specific data:
>
> 1. 'static' values - button texts, [error] messages - these are
> specified during site/application
> design.
>
> 2. 'dynamic' values - document titles, headers, content - these are
> specified by the owner/user during
> the lifetime of the site/application
>
> for the rest I'll just say 'ditto' to most of what the other list
> members replied :-)
>
>>
>> O. Wyss
>>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Frank Arensmeier
........................................................................
........................
Marketing Support & Webmaster

NIKE Hydraulics AB
Box 1107
631 80 Eskilstuna
Sweden

phone +46 - (0)16 16 82 34
fax +46 - (0)16 13 93 16
frank.arensmeiernikehydraulics.se
www.nikehydraulics.se
........................................................................
........................

attached mail follows:


Dear all,

I have been searching the web and manual for solutions for receiving an
XML document and getting the values for the attributes out. I found that
PHP5 handles it well but in PHP4 there are many scripts people have
written but Im struggling to get something that is working 100%.

Are there any pointers to the correct way of doing it? I have been
looking also at DOM XML functions that seems to be suitable but am still
investigating.

Thanks in advance.
--
------------------------------------------------------------------------
Angelo Zanetti
Systems developer
------------------------------------------------------------------------

*Telephone:* +27 (021) 469 1052
*Mobile:* +27 (0) 72 441 3355
*Fax:* +27 (0) 86 681 5885
*
Web:* http://www.zlogic.co.za
*E-Mail:* angelozlogic.co.za <mailto:angelozlogic.co.za>

attached mail follows:


Hey Tedd,
Thanks for replying.

The problem is, I know how to do this via a drop down select box and a text box... I want to do this via a javascript prompt, which is where I am getting stumped.

Cheers!
R

tedd <teddsperling.com> wrote: At 5:11 AM -0800 2/7/07, Ryan A wrote:
>Hey all!
>
>Quick question (and hopefully a simple one)
>
>I have a link on a page, when the client clicks that link it should
>show them a JS prompt and ask for their name (so far I have done
>this)
>
>When they write their name, I want that data to be sent to my php
>script via AJAX (yes?) so the page does not reload or anything....
>(actually, how can i reload the page to reflect the change?)
>
>I have googled but I see whole ajax classes and what not, I dont
>know if I am using the correct keywords or what... you would happen
>to have a working piece of code that you could share with me.. would
>you?
>
>Thanks!
>Ryan

Ryan:

Your terminology is clear enough and you're on the right path, but
it's not simple.

The way it works is that you have a javascript ajax file, which is
loaded by your main page and creates a request object. When the user
clicks something, it receives a send request, and handles the
response, which in turn updates the page via the DOM without a
refresh. Clear?

Keep looking at ajax.

Cheers,

tedd

--
-------
http://sperling.com http://ancientstones.com http://earthstones.com

------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
---------------------------------
Sucker-punch spam with award-winning protection.
 Try the free Yahoo! Mail Beta.

attached mail follows:


Ryan A wrote:
> Quick question (and hopefully a simple one)
>
> I have a link on a page, when the client clicks that link it should
> show them a JS prompt and ask for their name (so far I have done
> this)
>
> When they write their name, I want that data to be sent to my php
> script via AJAX (yes?) so the page does not reload or anything....
> (actually, how can i reload the page to reflect the change?)
>
> I have googled but I see whole ajax classes and what not, I dont know
> if I am using the correct keywords or what... you would happen to
> have a working piece of code that you could share with me.. would
> you?

You don't need any Ajax here.

All you need is to take the value entered into the js box and use normal
javascript commands to store this value in a cookie. This cookie will be
sent automatically to your PHP script the next time a user requests a
page from your server.

If you want to provide immediate visual feedback, you can use standard
DOM methods to insert the users name into the page where you want.

No need for any fancy Web 2.0 nonsense here..... move along, nothing to
see... ;)

Disclaimer: this may not work for your needs but I cannot see why not
from the info given :)

Col.

attached mail follows:


Hi,

I run specialised websites on my NT server on behalf of some universities.
These sites offer processes to librarians (mainly) enabling them to order
services from my company as well as doing some processes themselves. The
processes involve handling PDF files, and I've done all the
PDF-building-scripts etc that they need.

I would now like to extend the services, allowing users more interactivity
with their own filesystems - checking that PDFs are in the right place,
being able to put them in the right place and removing them when the
licencing says they must be removed - etc etc.

By testing, I know that I can do this using PHP's ftp functions, but when I
visited one of my main customers recently, they said they would prefer me to
use SCP. I've found WinSCP (as it will need to run on the NT box) but am
stumped as to how I can use it with PHP to offer equivalent (or even close)
functionality to PHP's ftp function.

Does anyone have any experience of using SCP/WinSCP as part of a PHP
application, and if so, could they help me on to the next stage please?

Cheers

George in Edinburgh

attached mail follows:


What about the secure shell2 functions?:
http://uk.php.net/manual/en/ref.ssh2.php

I haven't used them myself but these two functions sound like the could be
useful:

ssh2_scp_recv — Request a file via SCP
ssh2_scp_send — Send a file via SCP

Edward

> -----Original Message-----
> From: George Pitcher [mailto:george.pitcheringenta.com]
> Sent: 08 February 2007 11:30
> To: php-generallists.php.net
> Subject: [PHP] WinSCP and PHP
>
>
> Hi,
>
> I run specialised websites on my NT server on behalf of some universities.
> These sites offer processes to librarians (mainly) enabling them to order
> services from my company as well as doing some processes themselves. The
> processes involve handling PDF files, and I've done all the
> PDF-building-scripts etc that they need.
>
> I would now like to extend the services, allowing users more interactivity
> with their own filesystems - checking that PDFs are in the right place,
> being able to put them in the right place and removing them when the
> licencing says they must be removed - etc etc.
>
> By testing, I know that I can do this using PHP's ftp functions,
> but when I
> visited one of my main customers recently, they said they would
> prefer me to
> use SCP. I've found WinSCP (as it will need to run on the NT box) but am
> stumped as to how I can use it with PHP to offer equivalent (or
> even close)
> functionality to PHP's ftp function.
>
> Does anyone have any experience of using SCP/WinSCP as part of a PHP
> application, and if so, could they help me on to the next stage please?
>
>
> Cheers
>
> George in Edinburgh
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

attached mail follows:


Edward,

Thanks. This has pointed me towards ssh2_sftp, new negotiations with
customer ahead.

Cheers

George

> -----Original Message-----
> From: Edward Kay [mailto:edwardlabhut.com]
> Sent: 8 February 2007 11:45 am
> To: George Pitcher; PHP General List
> Subject: RE: [PHP] WinSCP and PHP
>
>
> What about the secure shell2 functions?:
> http://uk.php.net/manual/en/ref.ssh2.php
>
> I haven't used them myself but these two functions sound like the could be
> useful:
>
> ssh2_scp_recv — Request a file via SCP
> ssh2_scp_send — Send a file via SCP
>
> Edward
>
> > -----Original Message-----
> > From: George Pitcher [mailto:george.pitcheringenta.com]
> > Sent: 08 February 2007 11:30
> > To: php-generallists.php.net
> > Subject: [PHP] WinSCP and PHP
> >
> >
> > Hi,
> >
> > I run specialised websites on my NT server on behalf of some
> universities.
> > These sites offer processes to librarians (mainly) enabling
> them to order
> > services from my company as well as doing some processes themselves. The
> > processes involve handling PDF files, and I've done all the
> > PDF-building-scripts etc that they need.
> >
> > I would now like to extend the services, allowing users more
> interactivity
> > with their own filesystems - checking that PDFs are in the right place,
> > being able to put them in the right place and removing them when the
> > licencing says they must be removed - etc etc.
> >
> > By testing, I know that I can do this using PHP's ftp functions,
> > but when I
> > visited one of my main customers recently, they said they would
> > prefer me to
> > use SCP. I've found WinSCP (as it will need to run on the NT box) but am
> > stumped as to how I can use it with PHP to offer equivalent (or
> > even close)
> > functionality to PHP's ftp function.
> >
> > Does anyone have any experience of using SCP/WinSCP as part of a PHP
> > application, and if so, could they help me on to the next stage please?
> >
> >
> > Cheers
> >
> > George in Edinburgh
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
>
>

attached mail follows:


DOM XML functions are the way to go for PHP4

Angelo Zanetti wrote:

> Dear all,
>
> I have been searching the web and manual for solutions for receiving
> an XML document and getting the values for the attributes out. I found
> that PHP5 handles it well but in PHP4 there are many scripts people
> have written but Im struggling to get something that is working 100%.
>
> Are there any pointers to the correct way of doing it? I have been
> looking also at DOM XML functions that seems to be suitable but am
> still investigating.
>
> Thanks in advance.

--
------------------------------------------------------------------------
Angelo Zanetti
Systems developer
------------------------------------------------------------------------

*Telephone:* +27 (021) 469 1052
*Mobile:* +27 (0) 72 441 3355
*Fax:* +27 (0) 86 681 5885
*
Web:* http://www.zlogic.co.za
*E-Mail:* angelozlogic.co.za <mailto:angelozlogic.co.za>

attached mail follows:


Can anyone tell me how to set open_basedir in php.ini, to two directories
like

open_basedir = c:\www & c:\myhomepage

thanks

attached mail follows:


Christopher Deeley wrote:
> Can anyone tell me how to set open_basedir in php.ini, to two directories
> like
>
> open_basedir = c:\www & c:\myhomepage

 From the manual (http://php.net/features.safe-mode)...

"Under Windows, separate the directories with a semicolon. On all other
systems, separate the directories with a colon."

The manual exists for a reason, please use it.

-Stut

attached mail follows:


Okay, I edited my page per some suggestions here. Below is what I now have:

<script language="JavaScript">
function checkForm() {

 // ** START **
  if (inputForm.cc_phone_number.value == "") {
    alert( "Please enter a phone number." );
    inputForm.cc_phone_number.focus();
    return;
  }

******Lots of other checks here, just left out for length******

   document.inputForm.submit();
}

</script>
<title></title>
<LINK rel="stylesheet" type="text/css" href="../../CSS/background.css">
</head>
<body>
<div align="center"> <h2></h2>
   <h3>Submit a New Payment.</h3>
</div>
<form name="inputForm" action="save.php" method="post"
enctype="multipart/form-data">

******Lots of form data here******

<table align="center" border="0" cellpadding="0" cellspacing="0"
width="680">
 <tr>
 <td width="64" align="left"><a href="javascript:checkForm()"
title="Save">Save</a></td>
 <td width="616" align="left"><a href="javascript:closeThis()"
title="Close">Close</a></td>
 </tr>
</table>
</form>
</body>
</html>

Now when I submit my page it still perfroms all of the javascript checks
correctly, but once it gets to the document.inputForm.submit(); part it
returns the following error.

Error: Object doesn't support this property or method.
Code: 0

On 2/7/07, Paul Novitski <pauljuniperwebcraft.com> wrote:
>
> At 2/7/2007 01:34 PM, Dan Shirah wrote:
> >I have a form that uses Javascript to validate form field entries, and if
> >they are incorrect it returns an error to the user.
> >
> >After the Javascript processing is complete, it submits the form to my
> save
> >page. However it seems that once the processing is complete and it passes
> to
> >the save page, none of my $_POST variables are being passed.
>
>
> Of course, all of your form fields need to be inside the same
> <form></form> tags as your submit button. The sample HTML you posted
> did not indicate that you'd done this.
>
> Regards,
>
> Paul
> __________________________
>
> Paul Novitski
> Juniper Webcraft Ltd.
> http://juniperwebcraft.com
>
>

attached mail follows:


On cs, 2007-02-08 at 08:14 -0500, Dan Shirah wrote:
> Okay, I edited my page per some suggestions here. Below is what I now have:
>
>
> <script language="JavaScript">
> function checkForm() {
>
> // ** START **
> if (inputForm.cc_phone_number.value == "") {
> alert( "Please enter a phone number." );
> inputForm.cc_phone_number.focus();
> return;
> }
>
> ******Lots of other checks here, just left out for length******
>
> document.inputForm.submit();
> }
>
> </script>
> <title></title>
> <LINK rel="stylesheet" type="text/css" href="../../CSS/background.css">
> </head>
> <body>
> <div align="center"> <h2></h2>
> <h3>Submit a New Payment.</h3>
> </div>
> <form name="inputForm" action="save.php" method="post"
> enctype="multipart/form-data">
>
> ******Lots of form data here******
>
> <table align="center" border="0" cellpadding="0" cellspacing="0"
> width="680">
> <tr>
> <td width="64" align="left"><a href="javascript:checkForm()"
> title="Save">Save</a></td>
> <td width="616" align="left"><a href="javascript:closeThis()"
> title="Close">Close</a></td>
> </tr>
> </table>
> </form>
> </body>
> </html>
>
> Now when I submit my page it still perfroms all of the javascript checks
> correctly, but once it gets to the document.inputForm.submit(); part it
> returns the following error.
>
> Error: Object doesn't support this property or method.
> Code: 0
>

maybe because you don't have submit button in the form?
try to include something like this
<input type="image" src="./images/spacer.gif">
where spacer.gif is an 1x1 blank image

I remember some similar situation where it helped, but I'm not sure

hope that helps
Zoltán Németh

>
>
> On 2/7/07, Paul Novitski <pauljuniperwebcraft.com> wrote:
> >
> > At 2/7/2007 01:34 PM, Dan Shirah wrote:
> > >I have a form that uses Javascript to validate form field entries, and if
> > >they are incorrect it returns an error to the user.
> > >
> > >After the Javascript processing is complete, it submits the form to my
> > save
> > >page. However it seems that once the processing is complete and it passes
> > to
> > >the save page, none of my $_POST variables are being passed.
> >
> >
> > Of course, all of your form fields need to be inside the same
> > <form></form> tags as your submit button. The sample HTML you posted
> > did not indicate that you'd done this.
> >
> > Regards,
> >
> > Paul
> > __________________________
> >
> > Paul Novitski
> > Juniper Webcraft Ltd.
> > http://juniperwebcraft.com
> >
> >

attached mail follows:


On cs, 2007-02-08 at 08:41 -0500, Dan Shirah wrote:
> I should not need an actual Button if my link to checkForm() ends with
> document.inputForm.submit(); which tells the form to submit, right?

well, you should be right...
but I remember a year ago or so I had a similar problem and the image
input solved it... but I'm not sure whether it was exactly the same
problem or not, so it might be complete bullshit ;)

greets
Zoltán Németh

>
> On 2/8/07, Németh Zoltán <znemethalterationx.hu> wrote:
> On cs, 2007-02-08 at 08:14 -0500, Dan Shirah wrote:
> > Okay, I edited my page per some suggestions here. Below is
> what I now have:
> >
> >
> > <script language="JavaScript">
> > function checkForm() {
> >
> > // ** START **
> > if (inputForm.cc_phone_number.value == "") {
> > alert( "Please enter a phone number." );
> > inputForm.cc_phone_number.focus();
> > return;
> > }
> >
> > ******Lots of other checks here, just left out for
> length******
> >
> > document.inputForm.submit();
> > }
> >
> > </script>
> > <title></title>
> > <LINK rel="stylesheet" type="text/css"
> href="../../CSS/background.css">
> > </head>
> > <body>
> > <div align="center"> <h2></h2>
> > <h3>Submit a New Payment.</h3>
> > </div>
> > <form name="inputForm" action="save.php" method="post"
> > enctype="multipart/form-data">
> >
> > ******Lots of form data here******
> >
> > <table align="center" border="0" cellpadding="0"
> cellspacing="0"
> > width="680">
> > <tr>
> > <td width="64" align="left"><a
> href="javascript:checkForm()"
> > title="Save">Save</a></td>
> > <td width="616" align="left"><a
> href="javascript:closeThis()"
> > title="Close">Close</a></td>
> > </tr>
> > </table>
> > </form>
> > </body>
> > </html>
> >
> > Now when I submit my page it still perfroms all of the
> javascript checks
> > correctly, but once it gets to the
> document.inputForm.submit(); part it
> > returns the following error.
> >
> > Error: Object doesn't support this property or method.
> > Code: 0
> >
>
> maybe because you don't have submit button in the form?
> try to include something like this
> <input type="image" src="./images/spacer.gif">
> where spacer.gif is an 1x1 blank image
>
> I remember some similar situation where it helped, but I'm not
> sure
>
> hope that helps
> Zoltán Németh
>
> >
> >
> > On 2/7/07, Paul Novitski <pauljuniperwebcraft.com> wrote:
> > >
> > > At 2/7/2007 01:34 PM, Dan Shirah wrote:
> > > >I have a form that uses Javascript to validate form field
> entries, and if
> > > >they are incorrect it returns an error to the user.
> > > >
> > > >After the Javascript processing is complete, it submits
> the form to my
> > > save
> > > >page. However it seems that once the processing is
> complete and it passes
> > > to
> > > >the save page, none of my $_POST variables are being
> passed.
> > >
> > >
> > > Of course, all of your form fields need to be inside the
> same
> > > <form></form> tags as your submit button. The sample HTML
> you posted
> > > did not indicate that you'd done this.
> > >
> > > Regards,
> > >
> > > Paul
> > > __________________________
> > >
> > > Paul Novitski
> > > Juniper Webcraft Ltd.
> > > http://juniperwebcraft.com
> > >
> > >
>
>

attached mail follows:


On cs, 2007-02-08 at 08:56 -0500, Dan Shirah wrote:
> Okay, I'll try your spacer solution. Where do you think I should add
> it?

I put it right before the </form> tag, but I think you could put it
anywhere between the <form> and the </form>

greets
Zoltán Németh

>
> On 2/8/07, Németh Zoltán <znemethalterationx.hu> wrote:
> On cs, 2007-02-08 at 08:41 -0500, Dan Shirah wrote:
> > I should not need an actual Button if my link to checkForm()
> ends with
> > document.inputForm.submit(); which tells the form to submit,
> right?
>
> well, you should be right...
> but I remember a year ago or so I had a similar problem and
> the image
> input solved it... but I'm not sure whether it was exactly the
> same
> problem or not, so it might be complete bullshit ;)
>
> greets
> Zoltán Németh
>
> >
> > On 2/8/07, Németh Zoltán <znemethalterationx.hu> wrote:
> > On cs, 2007-02-08 at 08:14 -0500, Dan Shirah wrote:
> > > Okay, I edited my page per some suggestions
> here. Below is
> > what I now have:
> > >
> > >
> > > <script language="JavaScript">
> > > function checkForm() {
> > >
> > > // ** START **
> > > if (inputForm.cc_phone_number.value == "") {
> > > alert( "Please enter a phone number." );
> > > inputForm.cc_phone_number.focus();
> > > return;
> > > }
> > >
> > > ******Lots of other checks here, just left out for
> > length******
> > >
> > > document.inputForm.submit();
> > > }
> > >
> > > </script>
> > > <title></title>
> > > <LINK rel="stylesheet" type="text/css"
> > href="../../CSS/background.css">
> > > </head>
> > > <body>
> > > <div align="center"> <h2></h2>
> > > <h3>Submit a New Payment.</h3>
> > > </div>
> > > <form name="inputForm" action="save.php"
> method="post"
> > > enctype="multipart/form-data">
> > >
> > > ******Lots of form data here******
> > >
> > > <table align="center" border="0" cellpadding="0"
> > cellspacing="0"
> > > width="680">
> > > <tr>
> > > <td width="64" align="left"><a
> > href="javascript:checkForm()"
> > > title="Save">Save</a></td>
> > > <td width="616" align="left"><a
> > href="javascript:closeThis()"
> > > title="Close">Close</a></td>
> > > </tr>
> > > </table>
> > > </form>
> > > </body>
> > > </html>
> > >
> > > Now when I submit my page it still perfroms all of
> the
> > javascript checks
> > > correctly, but once it gets to the
> > document.inputForm.submit(); part it
> > > returns the following error.
> > >
> > > Error: Object doesn't support this property or
> method.
> > > Code: 0
> > >
> >
> > maybe because you don't have submit button in the
> form?
> > try to include something like this
> > <input type="image" src="./images/spacer.gif">
> > where spacer.gif is an 1x1 blank image
> >
> > I remember some similar situation where it helped,
> but I'm not
> > sure
> >
> > hope that helps
> > Zoltán Németh
> >
> > >
> > >
> > > On 2/7/07, Paul Novitski
> <pauljuniperwebcraft.com> wrote:
> > > >
> > > > At 2/7/2007 01:34 PM, Dan Shirah wrote:
> > > > >I have a form that uses Javascript to validate
> form field
> > entries, and if
> > > > >they are incorrect it returns an error to the
> user.
> > > > >
> > > > >After the Javascript processing is complete, it
> submits
> > the form to my
> > > > save
> > > > >page. However it seems that once the processing
> is
> > complete and it passes
> > > > to
> > > > >the save page, none of my $_POST variables are
> being
> > passed.
> > > >
> > > >
> > > > Of course, all of your form fields need to be
> inside the
> > same
> > > > <form></form> tags as your submit button. The
> sample HTML
> > you posted
> > > > did not indicate that you'd done this.
> > > >
> > > > Regards,
> > > >
> > > > Paul
> > > > __________________________
> > > >
> > > > Paul Novitski
> > > > Juniper Webcraft Ltd.
> > > > http://juniperwebcraft.com
> > > >
> > > >
> >
> >
>
>

attached mail follows:


Nope, same result unfortunately.

On 2/8/07, Németh Zoltán <znemethalterationx.hu> wrote:
>
> On cs, 2007-02-08 at 08:56 -0500, Dan Shirah wrote:
> > Okay, I'll try your spacer solution. Where do you think I should add
> > it?
>
> I put it right before the </form> tag, but I think you could put it
> anywhere between the <form> and the </form>
>
> greets
> Zoltán Németh
>
> >
> > On 2/8/07, Németh Zoltán <znemethalterationx.hu> wrote:
> > On cs, 2007-02-08 at 08:41 -0500, Dan Shirah wrote:
> > > I should not need an actual Button if my link to checkForm()
> > ends with
> > > document.inputForm.submit(); which tells the form to submit,
> > right?
> >
> > well, you should be right...
> > but I remember a year ago or so I had a similar problem and
> > the image
> > input solved it... but I'm not sure whether it was exactly the
> > same
> > problem or not, so it might be complete bullshit ;)
> >
> > greets
> > Zoltán Németh
> >
> > >
> > > On 2/8/07, Németh Zoltán <znemethalterationx.hu> wrote:
> > > On cs, 2007-02-08 at 08:14 -0500, Dan Shirah wrote:
> > > > Okay, I edited my page per some suggestions
> > here. Below is
> > > what I now have:
> > > >
> > > >
> > > > <script language="JavaScript">
> > > > function checkForm() {
> > > >
> > > > // ** START **
> > > > if (inputForm.cc_phone_number.value == "") {
> > > > alert( "Please enter a phone number." );
> > > > inputForm.cc_phone_number.focus();
> > > > return;
> > > > }
> > > >
> > > > ******Lots of other checks here, just left out for
> > > length******
> > > >
> > > > document.inputForm.submit();
> > > > }
> > > >
> > > > </script>
> > > > <title></title>
> > > > <LINK rel="stylesheet" type="text/css"
> > > href="../../CSS/background.css">
> > > > </head>
> > > > <body>
> > > > <div align="center"> <h2></h2>
> > > > <h3>Submit a New Payment.</h3>
> > > > </div>
> > > > <form name="inputForm" action="save.php"
> > method="post"
> > > > enctype="multipart/form-data">
> > > >
> > > > ******Lots of form data here******
> > > >
> > > > <table align="center" border="0" cellpadding="0"
> > > cellspacing="0"
> > > > width="680">
> > > > <tr>
> > > > <td width="64" align="left"><a
> > > href="javascript:checkForm()"
> > > > title="Save">Save</a></td>
> > > > <td width="616" align="left"><a
> > > href="javascript:closeThis()"
> > > > title="Close">Close</a></td>
> > > > </tr>
> > > > </table>
> > > > </form>
> > > > </body>
> > > > </html>
> > > >
> > > > Now when I submit my page it still perfroms all of
> > the
> > > javascript checks
> > > > correctly, but once it gets to the
> > > document.inputForm.submit(); part it
> > > > returns the following error.
> > > >
> > > > Error: Object doesn't support this property or
> > method.
> > > > Code: 0
> > > >
> > >
> > > maybe because you don't have submit button in the
> > form?
> > > try to include something like this
> > > <input type="image" src="./images/spacer.gif">
> > > where spacer.gif is an 1x1 blank image
> > >
> > > I remember some similar situation where it helped,
> > but I'm not
> > > sure
> > >
> > > hope that helps
> > > Zoltán Németh
> > >
> > > >
> > > >
> > > > On 2/7/07, Paul Novitski
> > <pauljuniperwebcraft.com> wrote:
> > > > >
> > > > > At 2/7/2007 01:34 PM, Dan Shirah wrote:
> > > > > >I have a form that uses Javascript to validate
> > form field
> > > entries, and if
> > > > > >they are incorrect it returns an error to the
> > user.
> > > > > >
> > > > > >After the Javascript processing is complete, it
> > submits
> > > the form to my
> > > > > save
> > > > > >page. However it seems that once the processing
> > is
> > > complete and it passes
> > > > > to
> > > > > >the save page, none of my $_POST variables are
> > being
> > > passed.
> > > > >
> > > > >
> > > > > Of course, all of your form fields need to be
> > inside the
> > > same
> > > > > <form></form> tags as your submit button. The
> > sample HTML
> > > you posted
> > > > > did not indicate that you'd done this.
> > > > >
> > > > > Regards,
> > > > >
> > > > > Paul
> > > > > __________________________
> > > > >
> > > > > Paul Novitski
> > > > > Juniper Webcraft Ltd.
> > > > > http://juniperwebcraft.com
> > > > >
> > > > >
> > >
> > >
> >
> >
>
>

attached mail follows:


There is nothing wrong with the way you want to submit this form.
Although it's JS :) The sample code you posted was broken in some ways...

missing document. in JS en missing input field to check.

This sample works fine ...

test.html

<script language="JavaScript">
function checkForm() {

if (document.inputForm.cc_phone_number.value == "") {
    alert( "Please enter a phone number." );
    document.inputForm.cc_phone_number.focus();
    return;
}

document.inputForm.submit();
}

</script>
<title></title>
<LINK rel="stylesheet" type="text/css" href="../../CSS/background.css">
</head>
<body>
<div align="center">
<h2></h2>
<h3>Submit a New Payment.</h3>
</div>

<form name="inputForm" action="save.php" method="post" enctype="multipart/form-data">
<input type="text" name="cc_phone_number" value="8756765756757" />
<table align="center" border="0" cellpadding="0" cellspacing="0" width="680">
<tr>
    <td width="64" align="left"><a href="javascript:checkForm()" title="Save">Save</a></td>
    <td width="616" align="left"><a href="javascript:closeThis()" title="Close">Close</a></td>
</tr>
</table>
</form>

</body>
</html>

save.phhp

<?php print_r($_POST); ?>

Think some other code or JS errors might stop the form from sending data.

On Thu, 8 Feb 2007 09:09:34 -0500, "Dan Shirah" <mrsquash2gmail.com> wrote:
> Nope, same result unfortunately.
>
> On 2/8/07, Németh Zoltán <znemethalterationx.hu> wrote:
>>
>> On cs, 2007-02-08 at 08:56 -0500, Dan Shirah wrote:
>> > Okay, I'll try your spacer solution. Where do you think I should add
>> > it?
>>
>> I put it right before the </form> tag, but I think you could put it
>> anywhere between the <form> and the </form>
>>
>> greets
>> Zoltán Németh
>>
>> >
>> > On 2/8/07, Németh Zoltán <znemethalterationx.hu> wrote:
>> > On cs, 2007-02-08 at 08:41 -0500, Dan Shirah wrote:
>> > > I should not need an actual Button if my link to checkForm()
>> > ends with
>> > > document.inputForm.submit(); which tells the form to submit,
>> > right?
>> >
>> > well, you should be right...
>> > but I remember a year ago or so I had a similar problem and
>> > the image
>> > input solved it... but I'm not sure whether it was exactly the
>> > same
>> > problem or not, so it might be complete bullshit ;)
>> >
>> > greets
>> > Zoltán Németh
>> >
>> > >
>> > > On 2/8/07, Németh Zoltán <znemethalterationx.hu> wrote:
>> > > On cs, 2007-02-08 at 08:14 -0500, Dan Shirah wrote:
>> > > > Okay, I edited my page per some suggestions
>> > here. Below is
>> > > what I now have:
>> > > >
>> > > >
>> > > > <script language="JavaScript">
>> > > > function checkForm() {
>> > > >
>> > > > // ** START **
>> > > > if (inputForm.cc_phone_number.value == "") {
>> > > > alert( "Please enter a phone number." );
>> > > > inputForm.cc_phone_number.focus();
>> > > > return;
>> > > > }
>> > > >
>> > > > ******Lots of other checks here, just left out for
>> > > length******
>> > > >
>> > > > document.inputForm.submit();
>> > > > }
>> > > >
>> > > > </script>
>> > > > <title></title>
>> > > > <LINK rel="stylesheet" type="text/css"
>> > > href="../../CSS/background.css">
>> > > > </head>
>> > > > <body>
>> > > > <div align="center"> <h2></h2>
>> > > > <h3>Submit a New Payment.</h3>
>> > > > </div>
>> > > > <form name="inputForm" action="save.php"
>> > method="post"
>> > > > enctype="multipart/form-data">
>> > > >
>> > > > ******Lots of form data here******
>> > > >
>> > > > <table align="center" border="0" cellpadding="0"
>> > > cellspacing="0"
>> > > > width="680">
>> > > > <tr>
>> > > > <td width="64" align="left"><a
>> > > href="javascript:checkForm()"
>> > > > title="Save">Save</a></td>
>> > > > <td width="616" align="left"><a
>> > > href="javascript:closeThis()"
>> > > > title="Close">Close</a></td>
>> > > > </tr>
>> > > > </table>
>> > > > </form>
>> > > > </body>
>> > > > </html>
>> > > >
>> > > > Now when I submit my page it still perfroms all of
>> > the
>> > > javascript checks
>> > > > correctly, but once it gets to the
>> > > document.inputForm.submit(); part it
>> > > > returns the following error.
>> > > >
>> > > > Error: Object doesn't support this property or
>> > method.
>> > > > Code: 0
>> > > >
>> > >
>> > > maybe because you don't have submit button in the
>> > form?
>> > > try to include something like this
>> > > <input type="image" src="./images/spacer.gif">
>> > > where spacer.gif is an 1x1 blank image
>> > >
>> > > I remember some similar situation where it helped,
>> > but I'm not
>> > > sure
>> > >
>> > > hope that helps
>> > > Zoltán Németh
>> > >
>> > > >
>> > > >
>> > > > On 2/7/07, Paul Novitski
>> > <pauljuniperwebcraft.com> wrote:
>> > > > >
>> > > > > At 2/7/2007 01:34 PM, Dan Shirah wrote:
>> > > > > >I have a form that uses Javascript to validate
>> > form field
>> > > entries, and if
>> > > > > >they are incorrect it returns an error to the
>> > user.
>> > > > > >
>> > > > > >After the Javascript processing is complete, it
>> > submits
>> > > the form to my
>> > > > > save
>> > > > > >page. However it seems that once the processing
>> > is
>> > > complete and it passes
>> > > > > to
>> > > > > >the save page, none of my $_POST variables are
>> > being
>> > > passed.
>> > > > >
>> > > > >
>> > > > > Of course, all of your form fields need to be
>> > inside the
>> > > same
>> > > > > <form></form> tags as your submit button. The
>> > sample HTML
>> > > you posted
>> > > > > did not indicate that you'd done this.
>> > > > >
>> > > > > Regards,
>> > > > >
>> > > > > Paul
>> > > > > __________________________
>> > > > >
>> > > > > Paul Novitski
>> > > > > Juniper Webcraft Ltd.
>> > > > > http://juniperwebcraft.com
>> > > > >
>> > > > >
>> > >
>> > >
>> >
>> >
>>
>>
>
>

attached mail follows:


On cs, 2007-02-08 at 09:09 -0500, Dan Shirah wrote:
> Nope, same result unfortunately.

well, sorry, then my memories were incorrect....
maybe I should run a memtest86 on myself ;)

greets
Zoltán Németh

>
> On 2/8/07, Németh Zoltán <znemethalterationx.hu> wrote:
> On cs, 2007-02-08 at 08:56 -0500, Dan Shirah wrote:
> > Okay, I'll try your spacer solution. Where do you think I
> should add
> > it?
>
> I put it right before the </form> tag, but I think you could
> put it
> anywhere between the <form> and the </form>
>
> greets
> Zoltán Németh
>
> >
> > On 2/8/07, Németh Zoltán < znemethalterationx.hu> wrote:
> > On cs, 2007-02-08 at 08:41 -0500, Dan Shirah wrote:
> > > I should not need an actual Button if my link to
> checkForm()
> > ends with
> > > document.inputForm.submit(); which tells the form
> to submit,
> > right?
> >
> > well, you should be right...
> > but I remember a year ago or so I had a similar
> problem and
> > the image
> > input solved it... but I'm not sure whether it was
> exactly the
> > same
> > problem or not, so it might be complete bullshit ;)
> >
> > greets
> > Zoltán Németh
> >
> > >
> > > On 2/8/07, Németh Zoltán <znemethalterationx.hu>
> wrote:
> > > On cs, 2007-02-08 at 08:14 -0500, Dan
> Shirah wrote:
> > > > Okay, I edited my page per some
> suggestions
> > here. Below is
> > > what I now have:
> > > >
> > > >
> > > > <script language="JavaScript">
> > > > function checkForm() {
> > > >
> > > > // ** START **
> > > > if (inputForm.cc_phone_number.value ==
> "") {
> > > > alert( "Please enter a phone
> number." );
> > > > inputForm.cc_phone_number.focus ();
> > > > return;
> > > > }
> > > >
> > > > ******Lots of other checks here, just
> left out for
> > > length******
> > > >
> > > > document.inputForm.submit();
> > > > }
> > > >
> > > > </script>
> > > > <title></title>
> > > > <LINK rel="stylesheet" type="text/css"
> > > href="../../CSS/background.css">
> > > > </head>
> > > > <body>
> > > > <div align="center"> <h2></h2>
> > > > <h3>Submit a New Payment.</h3>
> > > > </div>
> > > > <form name="inputForm" action="save.php"
> > method="post"
> > > > enctype="multipart/form-data">
> > > >
> > > > ******Lots of form data here******
> > > >
> > > > <table align="center" border="0"
> cellpadding="0"
> > > cellspacing="0"
> > > > width="680">
> > > > <tr>
> > > > <td width="64" align="left"><a
> > > href="javascript:checkForm()"
> > > > title="Save">Save</a></td>
> > > > <td width="616" align="left"><a
> > > href="javascript:closeThis()"
> > > > title="Close">Close</a></td>
> > > > </tr>
> > > > </table>
> > > > </form>
> > > > </body>
> > > > </html>
> > > >
> > > > Now when I submit my page it still
> perfroms all of
> > the
> > > javascript checks
> > > > correctly, but once it gets to the
> > > document.inputForm.submit(); part it
> > > > returns the following error.
> > > >
> > > > Error: Object doesn't support this
> property or
> > method.
> > > > Code: 0
> > > >