Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

PHP - reading each parameter for the URL for a SQLite insert statement

I need to use PHP to grab the full URL from the browser, then creates an array with an item for each query parameter that was passed in.

I assume there are some pretty well written function I could just drop into my PHP code, then map to database columns and insert a DB row into SQLite.

I see I can pull values thusly:
echo "Name " . $_GET['name'] . " Company " . $_GET['company'];

But, I would like to see some boiler plate code, that builds an array, based on what has been found in the URL, and which is likely to be more robust than my code.

(BTW, what does the dot do between fields in the echo statement above?)

Thanks
SOLUTION
Avatar of Bembi
Bembi
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial