|
| Index | Recent Threads | Unanswered Threads | Who's Online | User List | Help |
|
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 19
|
|
| Author |
|
|
Stranger Joined: Dec 11, 2008 Post Count: 11 Status: Offline |
I tried everything you told me and i'm i still can't get the thing to display anything....I have wampserver on my machine and i even tried puting up on the server but i can't it display anything i mean the wording when i press send......there must me something else...could it be the order of the programming or have something to do with php file name on there.... |
||
|
|
Advanced Member USA Joined: Aug 14, 2007 Post Count: 1129 Status: Offline |
When you view the file in your browser, what is the URL? ---------------------------------------- Benjamin Falk | student : designer : developer Twitter: falkencreative |
||
|
|
Stranger Joined: Dec 11, 2008 Post Count: 11 Status: Offline |
http://127.0.0.1/php%20code/index1.php thats my url when i start it up and here is the one when i press send http://127.0.0.1/php%20code/set_post.php |
||
|
|
Stranger Joined: Dec 11, 2008 Post Count: 11 Status: Offline |
and here is the code im using <html> <head> <title>Form</title> <body> <?php if ($_POST['action'] == 'send'){ echo ('Data = '.$_POST['keyword']); } ?> <form method="POST" action="set_post.php" > <fieldset> <legend>From Data</legend> <p> <label for="keyword">keyword:</label> <input type="text" name="keyword" size="25" /> </p> <p> <input type="submit" name="action" value="send" /> </p> </fieldset> </form> </body> </html> |
||
|
|
Advanced Member USA Joined: Aug 14, 2007 Post Count: 1129 Status: Offline |
<form method="POST" action="set_post.php" > Here is the issue. When the form submits, the action section sends the user to set_post.php (which I am guessing either doesn't exist or doesn't include the correct code). If you remove the value in the action (action="") your code should work, since the form will redirect to the same page. Or, alternately, you should add this code to your set_post.php file (and remove it from your index1.php): ---------------------------------------- Benjamin Falk | student : designer : developer Twitter: falkencreative |
||
|
|
Stranger Joined: Dec 11, 2008 Post Count: 11 Status: Offline |
thanks for all the help.....i got it now.......I have one more question....How do i get my web address to show up on googles? |
||
|
|
Advanced Member USA Joined: Aug 14, 2007 Post Count: 1129 Status: Offline |
thanks for all the help.....i got it now.......I have one more question....How do i get my web address to show up on googles? I'm assuming you already have a domain name and web hosting... Basically, it's just a matter of waiting until Google indexes your site. You can manually submit it, either way, you'll just have to wait. Where you rank in the search depends a lot on the quality of your content and the number of links pointing to your site. ---------------------------------------- Benjamin Falk | student : designer : developer Twitter: falkencreative |
||
|
|
Stranger Joined: Dec 11, 2008 Post Count: 11 Status: Offline |
How time do i have to wait for before it shows up on googles..I just got it yesterday.... |
||
|
|
Advanced Member USA Joined: Aug 14, 2007 Post Count: 1129 Status: Offline |
Depends. If it is a completely new site, that no one would have links to, I'd suggest submitting it to Google (http://www.google.com/addurl/) and waiting. There is no fixed amount of time until it gets indexed, but I've usually found about two to four weeks. ---------------------------------------- Benjamin Falk | student : designer : developer Twitter: falkencreative |
||
|
|
|
|
|
Current timezone is GMT Mar 21, 2010 6:26:23 AM |