By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,890 Members | 1,050 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,890 IT Pros & Developers. It's quick & easy.

forms

P: n/a
How could I get the form fields filled from a database?

One idea I have is to do a redirect, but it doesn't quite
work because it ends to an infinite loop cause the page
is redirecting to itself:

header("Location: " . $_SERVER['PHP_SELF'] .
"?field1=something&field2=something else");
That would bee neet. I just would create a string from the contents
I receive from the db and just redirect, but as I said, it doesn't
work easily. You have to use the apache rewrite, but I didn't quite
get it.

Another solution is to check if the request is not empty for the
particular field.

Any other solutions?

Shmuel.

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Shmuel" <sd*@nic.fi> wrote in message
news:4H*****************@reader1.news.jippii.net.. .
How could I get the form fields filled from a database?

One idea I have is to do a redirect, but it doesn't quite
work because it ends to an infinite loop cause the page
is redirecting to itself:

header("Location: " . $_SERVER['PHP_SELF'] .
"?field1=something&field2=something else"); so write a php script that queries the database and returns/outputs a form
on stdout, given the parameters.
use $_GET['whatever--..'];
etc...
/G
--
www.gh-webinteractive.com


That would bee neet. I just would create a string from the contents
I receive from the db and just redirect, but as I said, it doesn't
work easily. You have to use the apache rewrite, but I didn't quite
get it.

Another solution is to check if the request is not empty for the
particular field.

Any other solutions?

Shmuel.

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.