[SOLVED]submission to another page
Moderator: General Moderators
[SOLVED]submission to another page
i just need to know how to have 1 page with an input feild and anothe page that displays the text you submitted in the input feild.
Visual ex.:
------------------------------------------------
page one
[-INPUT TEXT BOX-]
------------------------------------------------
===========================
------------------------------------------------
page two
this is what i put in the input text box
------------------------------------------------
thx in advance,
Visual ex.:
------------------------------------------------
page one
[-INPUT TEXT BOX-]
------------------------------------------------
===========================
------------------------------------------------
page two
this is what i put in the input text box
------------------------------------------------
thx in advance,
Last edited by word32 on Wed Aug 31, 2005 6:08 pm, edited 4 times in total.
Code: Select all
<input type="text" name="whatever">Code: Select all
<?php
echo $_POST['whatever'];
?>Page 1 would look like this:
Page 2 would look like this:
Code: Select all
<form action="page2.php" method="post">
<input type="text" name="field" size="20">
<input type="submit" value="Submit">
</form>Code: Select all
<?
echo $_POST['field'];
?>Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
do u need a database to do that?
because i did it from my admin page
http://habbotime.biz.ly/admin/admin_values.html
and it comes out on
http://habbotime.biz.ly/raretrades/raretrades.html
i only have 1 test line on the raretrades.html
but anyway, when i submit my info on admin values it takes me to raretrades.html and the info i typed in isnt there
because i did it from my admin page
http://habbotime.biz.ly/admin/admin_values.html
and it comes out on
http://habbotime.biz.ly/raretrades/raretrades.html
i only have 1 test line on the raretrades.html
but anyway, when i submit my info on admin values it takes me to raretrades.html and the info i typed in isnt there
Yes, feyd is correct. PHP doesn't just happen
You have to have a PHP enabled webserver (remotely or locally) and change your .html extension to .php on the page where you want to show the form input.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
now when i go to admin page and test the first line, it says posting is forbidden
and now there's something going on with my host (i dont know if any of you use biz.ly but mabee you could still fix it) that when i go to raretrades.php it says it is forbidden to veiw the page.
can someone help me fix and finish this please? and all of you that have helped me, your help is greatly appreciated.
thanks x10 in advance,
word32
and now there's something going on with my host (i dont know if any of you use biz.ly but mabee you could still fix it) that when i go to raretrades.php it says it is forbidden to veiw the page.
can someone help me fix and finish this please? and all of you that have helped me, your help is greatly appreciated.
thanks x10 in advance,
word32