04-25-2003, 07:03 PM | #1 (permalink) |
Upright
|
question about php, or javascript stuff
ok
the question i have is.... does anyone know what to use to place values back into a form, from a pop-up type page, to the original page there is a catch though i know how to do it with self.opener but it doesn't seem to work in all browsers (netscape, and some versions of IE) do you any of you know another, better, way to do this??? Maybe in php.. without reloading the original page??? |
04-25-2003, 07:06 PM | #2 (permalink) | |
Crazy
Location: London, Ontario, Canada
|
Re: question about php, or javascript stuff
Quote:
EDIT I messed something up there. Not all of my message is showing. sorry guys, and thanks for the help. I think i am just going to keep using the script the way that i have it. It reloads the page, but that's ok. It will work in all browsers, no matter what. Thanks again for the help. Last edited by taog; 04-26-2003 at 02:14 AM.. |
|
04-25-2003, 11:29 PM | #4 (permalink) |
Tilted
|
As not everybody is using a javascript-capable browser, and not everybody with one even has javascript turned on, I'd like to recommend an alternative. Process the page with PHP, and if there's anything missing/incorrect, re-output the page with little red asterisks or whatever, maybe some instructions.
It's pretty easy to do. Setup a function that outputs the page. Now, when the user submits the form, validate all the data. If something is wrong, call the function that outputs the page, and pass an array of fields with errors. The function that outputs it should see if that array is empty, and if not, output a red asterisk or something before every errored field. I can provide further help if you need it. The advantage is, <b>everybody</b> will be able to use your form. |
04-26-2003, 01:07 AM | #6 (permalink) | |
Upright
Location: Within GMT+10
|
Quote:
You can never be too secure. |
|
04-28-2003, 01:58 PM | #8 (permalink) | |
Crazy
Location: London, Ontario, Canada
|
Quote:
exactly what i am going to do. I am going to be selling this, so i will have to make sure it works on every browser. If it doesn't, webmasters won't use it. thanks a lot for your advice everyone!!! Are there any freelance php programmers here?? |
|
04-28-2003, 06:02 PM | #9 (permalink) |
Psychopathic Akimbo Action Pirate
Location: ...between Christ and Belial.
|
PHP owns your soul.
__________________
On the outside I'm jazz, but my soul is rock and roll. Sleep is a waste of time. Join the Insomniac Club. "GYOH GWAH-DAH GREH BLAAA! SROH WIH DIH FLIH RYOHH!!" - The Locust |
Tags |
javascript, php, question, stuff |
|
|