Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Submit Thingy HTML/PHP
Old 06-27-2009, 12:39 AM Submit Thingy HTML/PHP
Junior Talker

Posts: 3
Name: N/a
Trades: 0
Hello,

I have a quick question, regarding html/php dunno which one it would fall under.

ok so right to the point.

i need a link to a tutorial or someone to help me write/guide me threw making a simple html/php questionaire script. this is what i want it to do


I want it to have like a small imput box that says Full Name: Imput box | Age: imput box | then a submit button and when they click the submit button it returns with there name like this

Full Name: Beta Tester | Age: 18 | Price: FREE | Why Is It Free (?)

and have w/e age they type in the price i set it to be. and when they click the (?) they get forwarded to another page but i want it to show up as always FREE in price thing after they click submit it shows up like that.


anyone can direct me to how to make this and if it would need to be in XHTML/PHP?


I know about 1/100th of programming in php/html lol

not enough to build this tho, maybe enough to build a small if not non functioning website


Thanks In Advance!
~CrossFaith
CrossFaith is offline
Reply With Quote
View Public Profile Visit CrossFaith's homepage!
 
 
Register now for full access!
Old 06-27-2009, 07:46 PM Re: Submit Thingy HTML/PHP
thomasfrank09's Avatar
Experienced Talker

Posts: 43
Name: Thomas Frank
Trades: 0
First off, do you want the results forwarded to you in an email? Since I don't know that right now, I won't guide you through that part until you need it. But to just display the page like you want it to here, you need two files. The first file is the XHTML file with the form. Here's one I wrote for you:

<html>
<head>
<title>a;lkjds;lfka</title>
</head>

<body>

<form name="theForm" method="GET" action="submit.php">

Full Name: <input type="text" name="fullname" size="30">
<br />
Age: <input type="text" name="age" size="2">
<br />
<input value="submit" type="submit">
</form>

</body>

</html>

and here's the php file that will display the results of the form, and say FREE for the price. Since you always want the price to be free, it doesn't need to be called by php. just put it in the file, like this:

<html>
<head>
</head>
<body>

<?php

print $_GET["fullname"] . "<br />";
print $_GET["age"] . "<br />";

?>

<p>Price - FREE | <a href="nextpage.html">Why is this free?</a></p>

</body>

</html>

that will work.
__________________

Please login or register to view this content. Registration is FREE
- my website design company
thomasfrank09 is offline
Reply With Quote
View Public Profile
 
Old 06-27-2009, 08:52 PM Re: Submit Thingy HTML/PHP
Junior Talker

Posts: 3
Name: N/a
Trades: 0
Hey thanks for the reply.

how do i get it that when they click Submit it displays the results of the 2nd part of the code on the same page and how can i get it displayed in box form such as this

|Full Name: Nicholas A | Age: 24 | Price: Free | Why Is It Free (?)|


and No i don't need it emailed heh i'll get alot of spam that way :P thank you tho!
__________________

Please login or register to view this content. Registration is FREE
CrossFaith is offline
Reply With Quote
View Public Profile Visit CrossFaith's homepage!
 
Old 06-27-2009, 09:00 PM Re: Submit Thingy HTML/PHP
thomasfrank09's Avatar
Experienced Talker

Posts: 43
Name: Thomas Frank
Trades: 0
Well you can't make it display on the exact same page without AJAX, but if you want it to look like |Full Name: Nicholas A | Age: 24 | Price: Free | Why Is It Free (?)|

get rid of the <br />'s in the php file. I don't have time to test the code right now but I'll try to put something up later if you still need help.
__________________

Please login or register to view this content. Registration is FREE
- my website design company
thomasfrank09 is offline
Reply With Quote
View Public Profile
 
Old 06-27-2009, 09:17 PM Re: Submit Thingy HTML/PHP
Junior Talker

Posts: 3
Name: N/a
Trades: 0
I tried removing the <br>'s and well it got a parse error lol :P

lol ok thank you ^^
__________________

Please login or register to view this content. Registration is FREE
CrossFaith is offline
Reply With Quote
View Public Profile Visit CrossFaith's homepage!
 
Reply     « Reply to Submit Thingy HTML/PHP
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 2.59226 seconds with 12 queries