homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Capturing input from a form
Sending input from a form to two different places

 12:56 am on Jun 5, 2004 (gmt 0)

I currently have a search form on my website. When you type something in, it redirects you to a page that displays the results. I would also like the users searches to get input into an access database at the same time.

How would I do this?

Thanks for any help.




 2:25 am on Jun 5, 2004 (gmt 0)

add something in the page that displays the results


 7:19 am on Jun 5, 2004 (gmt 0)


I want to log what the user types into my website search box in an access database. I looked on PHP.net for a command that would do this hwoever could not find one. Does anyone know how I would accomplish this?


 10:46 am on Jun 5, 2004 (gmt 0)

The action="..." part of the form would have to point to your script. The script would input the search string into database, and then redirect to the search page.
As for databases, the most common combination with PHP i mySQL (also free licence).


 4:32 pm on Jun 5, 2004 (gmt 0)

Thanks.... I wil give that a try.... I have never worked with MySql but there is never a time like the present to learn. :-)


 5:59 pm on Jun 5, 2004 (gmt 0)

Yes, you can do this in one PHP script. The script will display everything in an echo command and then connect to the MySQL database and do an UPDATE or INSERT command.

I do this now on our ecommerce web site to track hits everytime a customer view the product details.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved