Welcome to WebmasterWorld Guest from 107.20.54.98

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Capturing input from a form

Sending input from a form to two different places

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

Junior Member

10+ Year Member

joined:May 30, 2004
posts:64
votes: 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.

Wayne

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

Preferred Member

10+ Year Member

joined:Nov 12, 2003
posts:454
votes: 0


add something in the page that displays the results
7:19 am on June 5, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:May 30, 2004
posts:64
votes: 0


what?

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 June 5, 2004 (gmt 0)

Full Member

10+ Year Member

joined:Jan 27, 2004
posts:222
votes: 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 June 5, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:May 30, 2004
posts:64
votes: 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 June 5, 2004 (gmt 0)

Full Member

10+ Year Member

joined:Jan 23, 2004
posts:338
votes: 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.