Page 1 of 1
[SOLVED]submission to another page
Posted: Mon Aug 29, 2005 2:36 pm
by word32
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,
Posted: Mon Aug 29, 2005 3:17 pm
by Burrito
Code: Select all
<input type="text" name="whatever">
Posted: Mon Aug 29, 2005 8:25 pm
by word32
no, i mean like on 2 diferrent web pages
Posted: Mon Aug 29, 2005 8:53 pm
by feyd
that is two different pages.
Your form (with the text field) submits (posts) to a page, that page then has the posted information.
Posted: Tue Aug 30, 2005 12:50 am
by s.dot
Page 1 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>
Page 2 would look like this:
Posted: Wed Aug 31, 2005 10:14 am
by word32
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
Posted: Wed Aug 31, 2005 10:17 am
by feyd
a mountain of exclamation points in your topic is entirely uncalled for.
You're submitting values to an HTML page. You need to submit to php, not HTML.
Posted: Wed Aug 31, 2005 10:34 am
by s.dot
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.
Posted: Wed Aug 31, 2005 5:20 pm
by word32
thanks and sorry about the exclaimation points

Posted: Wed Aug 31, 2005 5:45 pm
by word32
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
Posted: Wed Aug 31, 2005 5:48 pm
by feyd
I would bet the host disallows all "files" outside of .html (and images) ...
Posted: Wed Aug 31, 2005 6:07 pm
by word32
hm.......
ok
thank you know i know exactly what to do
