Killersites.com Homepage Welcome Guest   |   Register  |  Login
Login Name Password
  Search  
  Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help



Quick Go »

No member browsing this thread
Thread Status: Active
Total posts in this thread: 19
Posts: 19   Pages: 2   [ Previous Page | 1 2 ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 5181 times and has 18 replies Next Thread
Male badboy1245
Stranger




Joined: Dec 11, 2008
Post Count: 11
Status: Offline
Reply to this Post  Reply with Quote 
Re: using the $_POST

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....
[Dec 12, 2008 2:58:58 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male falkencreative
Advanced Member
Member's Avatar

USA
Joined: Aug 14, 2007
Post Count: 1129
Status: Offline
Reply to this Post  Reply with Quote 
Re: using the $_POST

When you view the file in your browser, what is the URL?
----------------------------------------
Benjamin Falk | student : designer : developer
Twitter: falkencreative
[Dec 12, 2008 3:03:06 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male badboy1245
Stranger




Joined: Dec 11, 2008
Post Count: 11
Status: Offline
Reply to this Post  Reply with Quote 
Re: using the $_POST

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
[Dec 12, 2008 4:51:30 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male badboy1245
Stranger




Joined: Dec 11, 2008
Post Count: 11
Status: Offline
Reply to this Post  Reply with Quote 
Re: using the $_POST

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>
[Dec 12, 2008 4:53:23 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male falkencreative
Advanced Member
Member's Avatar

USA
Joined: Aug 14, 2007
Post Count: 1129
Status: Offline
Reply to this Post  Reply with Quote 
Re: using the $_POST

<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):


<?php
if ($_POST['action'] == 'send'){

echo ('Data = '.$_POST['keyword']);
}
?>

----------------------------------------
Benjamin Falk | student : designer : developer
Twitter: falkencreative
[Dec 12, 2008 4:57:51 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male badboy1245
Stranger




Joined: Dec 11, 2008
Post Count: 11
Status: Offline
Reply to this Post  Reply with Quote 
Re: using the $_POST

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?
[Dec 12, 2008 8:58:43 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male falkencreative
Advanced Member
Member's Avatar

USA
Joined: Aug 14, 2007
Post Count: 1129
Status: Offline
Reply to this Post  Reply with Quote 
Re: using the $_POST

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
[Dec 12, 2008 9:16:20 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male badboy1245
Stranger




Joined: Dec 11, 2008
Post Count: 11
Status: Offline
Reply to this Post  Reply with Quote 
Re: using the $_POST

How time do i have to wait for before it shows up on googles..I just got it yesterday....
[Dec 12, 2008 10:00:11 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male falkencreative
Advanced Member
Member's Avatar

USA
Joined: Aug 14, 2007
Post Count: 1129
Status: Offline
Reply to this Post  Reply with Quote 
Re: using the $_POST

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
[Dec 12, 2008 10:11:35 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 19   Pages: 2   [ Previous Page | 1 2 ]
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread