Dreamweaver dynamic forms...
Greetings all,
Once again, please forgive my ignorance here...lol...I'm doin' the best I can.
I'm working with PHP and Dreamweaver 6.1 on a hosted server with PHP 4.3.3 installed.
Since I am working in Dreamweaver, dynamic forms should be a breeze to put together - and for the most part they are. I do have a couple of questions, though:
I have a mySQL table all set up for a particular form. It has rows for all the fields on the form as well as a couple of other that are not on the form or visible to the user...such as IP address & user agent.
In entry-level language, can someone give me a clue as to how to pass the http-user-agent and the remote-address variables from my form in Dreamweaver to mySQL table? I'm assuming it is done with hidden fields, but I'm not exactly sure how to do this or what my string should look like...
Any help or suggestions are greatly, greatly appreciated.
Thanks once again,
Humble Dude
Suzanne posted this at 23:37 — 23rd May 2004.
She has: 5,507 posts
Joined: Feb 2000
<?php
<input type=\"hidden\" name=\"msqlFieldName\" value=\"=$_SERVER['variable']\" />
?>
http://www.php.net/manual/en/reserved.variables.php for what those variables might be.
Humble Dude posted this at 23:43 — 23rd May 2004.
They have: 3 posts
Joined: May 2004
Thanks very much for your response. I think this is exactly what I was looking for.
It's appreciated very much.
Humbly,
Humble Dude
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.