- #1
- 4,652
- 37
I am working on my midterm project and I have two pieces I can't put together with php.
I am supposed to create a form that let's a user enter a keyword to search Amazon books, so I have the form that catches the data and gives it to the php file:
http://www.pic.ucla.edu/~jctaylor/midterm.htm
the php is just this:
"hello" is the variable that hold the entered search keyword.
I need the php script to append that keyword to a long URL that goes to Amazon web services and gets the books, and then returns the content to the div in my HTML.
I have a page with a link that will go get the books. I hard coded the search word "Oprah" in the query. (note: this only works correctly in firefox, as far as I know).
http://www.pic.ucla.edu/~jctaylor/getbooks.htm
Anyway..
I'm not sure how to make php append the keyword, get the data, and send it back.
Any tips? I am pretty lost. Thanks.
I am supposed to create a form that let's a user enter a keyword to search Amazon books, so I have the form that catches the data and gives it to the php file:
http://www.pic.ucla.edu/~jctaylor/midterm.htm
the php is just this:
Code:
#!/usr/local/bin/php
<?php
echo $_GET["hello"];
?>
I need the php script to append that keyword to a long URL that goes to Amazon web services and gets the books, and then returns the content to the div in my HTML.
I have a page with a link that will go get the books. I hard coded the search word "Oprah" in the query. (note: this only works correctly in firefox, as far as I know).
http://www.pic.ucla.edu/~jctaylor/getbooks.htm
Anyway..
I'm not sure how to make php append the keyword, get the data, and send it back.
Any tips? I am pretty lost. Thanks.
Last edited by a moderator: