homepage Welcome to WebmasterWorld Guest from 54.198.224.121
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
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
ProductivePC




msg:1285458
 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.

Wayne

 

WhosAWhata




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

add something in the page that displays the results

ProductivePC




msg:1285460
 7:19 am on Jun 5, 2004 (gmt 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?

mykel79




msg:1285461
 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).

ProductivePC




msg:1285462
 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. :-)

brucec




msg:1285463
 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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved