![]() |
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??? |
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. |
Post removed.
|
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. |
I think most browsers are JavaScript capable now ... A simple (fast) javascript check might be better imo, and a lot less serverload.
|
Quote:
You can never be too secure. |
Post removed.
|
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?? |
PHP owns your soul.
|
I don't know if I would call myself freelance, but I feel I'm pretty strong w/ PHP &/or ASP.
check out my site by clicking on the little cute 'www' button below |
All times are GMT -8. The time now is 01:41 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project