I have to thank everybody for helping me and I do appreciate all the help I
also take onboard that it is difficult to debug anything you cannot see. So
I have included 3 files the HTML with JavaScript in, another HTML with the
JavaScript stripped out and (I would not insult Mickey Mouse) a PHP test
script to echo back what has been entered. albeit only the first field using
"HELLO WORLD".
The objective of the JavaScript is to achieve word-processing style text
wraparound upto to a max length (in this case 255 characters, being a nice
round computer number and exceeding the maximum single text length of most
peoples screens) all simply because HTML does appear to support text
wraparound and maximum length (TEXTAREA MAXLENGTH). I have been told some it
can and by others it cannot I have even been pointed to the 1x1 pixel trick
which I don't really understand.
My goal is to talk clientside to serverside keep users focused instead of
just truncating without their knowledge and by doing so keep them on my side
and keep my i/o and processing down to a minimum thus avoiding things such
as bottleneck and keep traffic flowing as smoothly as possible.
Paul
----- Original Message -----
From: "Morgan Craft" <[EMAIL PROTECTED]>
To: "NYPHP Talk" <[email protected]>
Sent: Thursday, June 21, 2007 5:08 PM
Subject: Re: [nyphp-talk] Javascript & PHP
really hard to debug this without any code provided. It could be numerous
things... Your javascript could be clearing your form data before submit?
How do you have the onEvent handles configured for your javascript?
Also, there could be things wrong with your server-side logic. Do you
have your echo statements wrapped in any logic that are dependent on the
request variables? Maybe your echo statements are skipped because
something happened to one of the request values? What type of echo
statements are you using? Have you tried doing print_r($_POST) or
print_r($_REQUEST). Gotta give us something more to run with on this one
:)
PaulCheung wrote:
I have put together an HTML form that uses Javascript which works well.
However when I fill it in and fire it off to my PHP script (which for the
purpose of testing simply echos what was entered in to the form) it
cannot find the entered data; But when I strip out the Javascript and the
fields that uses the javascript my PHP script happly echos back what was
entered into the form. does anubody know what I am doing wrong??
Paul
------------------------------------------------------------------------
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
| MRT - NETWORK: |
|
REGION: |
|
| DATE: |
|
CALL TAKEN BY: |
|
| CALL NUMBER: |
|
| CALL INFORMATION: |
|
| REPORTED FAULT: |
|
TestReport.PHP
Description: Binary data
| MRT - NETWORK: |
|
REGION: |
|
| DATE: |
|
CALL TAKEN BY: |
|
| CALL NUMBER: |
|
| CALL INFORMATION: |
|
| REPORTED FAULT: |
|
RESOLUTION:
Maximum length 255 characters:
ACTION TAKEN : ---
Maximum length 255 characters:
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php