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
Form coding - i need some help!
Old 05-13-2009, 02:47 PM Form coding - i need some help!
Junior Talker

Posts: 3
Name: sksksk
Trades: 0
Hi there, i can't seem to incorporate a google custom search box onto my site.

If i try to the the vote button on my poll takes you to a blank search results page.

Yup, i went over it a few times but let's just say that forms arn't exactly my thing, here's the code for the poll:

<div id="tinc_content">

<form action="http://lost-dharma.com/tinc" method="post">

<input type="hidden" name="key" value="2QAH7CFW">

<table class="poll content">

<tr class="header"><th colspan="2">Are You Looking Forward To The LOST Finale?</th></tr>

<tr><td width="20">

<input type="radio" name="id" value="1" id="id1"></td>

<td><label for="id1">Hell Yeah!</label></td></tr>

<tr><td width="20"><input type="radio" name="id" value="2" id="id2"></td>

<td><label for="id2">Yup - Looks Great</label></td></tr>

<tr><td width="20"><input type="radio" name="id" value="3" id="id3"></td><td>

<label for="id3">Umm...</label></td></tr>

<tr><td width="20"><input type="radio" name="id" value="4" id="id4"></td>

<td><label for="id4">No, Not At All</label></td></tr><tr><td width="20">

<input type="radio" name="id" value="5" id="id5"></td>

<td><label for="id5">I'm Not Going To See It</label></td></tr>

<tr><td></td><td><input type="submit" class="button" value="Vote"></td></tr>

<tr><td></td><td><a class="resultLink" href="http://lost-dharma.com/tinc?key=2QAH7CFW" target=" _blank">Show

Results</a></td></tr></table></form></div>


here's the code for the search box:

<div id="search_box_wrap">

<form action="http://www.lost-dharma.com/5bj687lk/results.php" id="cse-search-box">
<div id="search_box">
<input type="hidden" name="cx" value="001536219460824086773:cbj7352z0to" />
<input type="hidden" name="cof" value="FORID:10" />
<input type="hidden" name="ie" value="UTF-8" />

<div id="another_wrap">
<input class="input_text" type="text" name="q" size="31" />
<input class="submit_search" type="submit" name="sa" value="Search" />

</div>

</div>

</div><!-- end searh box wrap -->
sksksk is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-13-2009, 07:02 PM Re: Form coding - i need some help!
Junior Talker

Posts: 3
Name: sksksk
Trades: 0
don't worry i realized there wasn't a </form> closing tag for the search box.

Sometimes you just need to take a break & clear your head, (watching t.v. also helps).
sksksk is offline
Reply With Quote
View Public Profile
 
Old 05-26-2009, 09:33 AM Re: Form coding - i need some help!
Junior Talker

Posts: 2
Name: mamunur
Trades: 0
Use this type of format.
I am new to writing HTML.

I have read HTML tuts, looked at examples and tried different things, but I'm stuck on how to make my Form do what I need it to do.

I have a simple Form that a user inputs information in and clicks a submit button.

When the information is submitted, it must match a specific line of text (which is always the same and is specified somewhere within the code of that same page).

If the submitted information does not match the specified line of text, then I need to present a message to the user to enter the correct information.

If the submitted information does match the specified line of text, then I want to send the user to another (specified) page within the site.

This is what I have so far;

<html>
<body>
<form name="input" action="html_form_action.asp"
method="get">



<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
Enter your answer and click Go
</p>
<form>
Answer:
<input type="text" name="answer">
<input type="submit" value="Go">
</form>

Question>>>If the answer is not correct, what code do I need to put in here (???) to return a message like, "Please enter the correct answer"

Question>>>If the answer is correct, what code do I need to put in here (???) to send the user to a specified page within the site?

</font>
</body>
</html>

Also, is this the correct type of form for what I am trying to do? <form name="input" action="html_form_action.asp"
method="get">

Can anyone help by providing me with the code that I need to make this Form do what I need it to do?

Thank you,
Charles
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
mamun12 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Form coding - i need some help!
 

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 1.47573 seconds with 12 queries