You are here: form action to same file opens new window « PHP Programming Language « IT news, forums, messages
form action to same file opens new window

Posted by Joe Blow on 11/03/50 11:16

Two questions late at night and going stir crazy. Anybody who takes pity on
me will have my undying gratitude and a virtual bottle of beer.
I've tried to look them both up on the php.net, and elsewhere, but without
success.

1. Am writing a php program which checks entries in a form on a previous
page. It then asks for any empty fields to be filled, and submits the
resulting form back to itself to check it again.

In other words the file "checkblank.php" includes this line within the php:

echo "<form target=\"checkblank.php\" method=\"post\">";

When the form is submitted it opens in a new window (in FireFox). In Firefox
it is not a disaster as the variables and arrays are not lost, and the
program works, but popups are not something I like. In IE the whole thing
collapses in a heap as the variables appear not to be passed to the new
window. Needless to say, the vast majority of users will have IE. Is there a
reason I'm unaware of, and can it be stopped easily?

2. Can anybody suggest a quick and easy way to strip arrays? stip_tags is
fine with variables, but converts arrays to variables. I'd like to use it
for the sake of security though. I don't particularly want to translate the
array into a whole lot of variables, as it's a big array.

Thanks
JB

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация