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.

Coding Forum


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



Reply
help with website forms
Old 02-20-2004, 08:02 PM help with website forms
java_dude's Avatar
Average Talker

Posts: 26
Location: Good ol' U.S. of A. Leicester, MA.
Trades: 0
hi, i just have a small (hopefully) question about forms and was hoping that someone here could help. See, I wanted to have a kind of feedback form for site visitors with different categories. and depending on which category they chose from a drop-down box it would bring them to the specific page with that contact form.

It would be much more simple to find the contact page they need because right now there's pages scattered all over. Just letting them select the page from a list and bringing them to it automatically (or via submit button) would be much better.

I know- i probably need some sort of CGI form to do this but I can't seem to find the right one. can some1 help?
java_dude is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-20-2004, 09:09 PM
dbzguy's Avatar
Ultra Talker

Posts: 345
Location: Artic
Trades: 0
i use this script to search my audio index by audio type
paste this code in your head tags

<script language="javascript" type="text/javascript">
<!--
function menu_goto( menuform )
{
var baseurl = "index.html" ;
selecteditem = menuform.newurl.selectedIndex ;
newurl = menuform.newurl.options[ selecteditem ].value ;
if (newurl.length != 0) {
location.href = baseurl + newurl ;
}
}
//-->
</script>

and this where you want the form you can chande it

<form action="dummyvalue">
Select a filetype
<select name="newurl" onchange="menu_goto(this.form)">
<option value="" selected="selected">----- Select A Page -----</option>
<option value="" disabled="disabled">All</option>
<option value="_au.html">Sun Systems(.au)</option>
<option value="_wav.html">Windows sound(.wav)</option>
<option value="_adint.html">Audio Interchange(.aiff, .aifc)</option>
<option value="mpegaudio.html">MPEG audio(.mpg, .mpeg)</option>
<option value="_voc.html">SoundBlaster Voice(.voc)</option>
<option value="streaming_audio.html">Streaming(.ra, .ram)</option>
<option value="_mp3.html">Mp3</options>
</select>
</form>

its petty easy to under stand and once you select the selection it rederects you to that page but not with thw submit button
__________________

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


PHP Code:
<?PHP if(ping == true) { attackuserip(); } ?>
dbzguy is offline
Reply With Quote
View Public Profile
 
Old 02-20-2004, 10:13 PM
java_dude's Avatar
Average Talker

Posts: 26
Location: Good ol' U.S. of A. Leicester, MA.
Trades: 0
ok, cool! thx a lot ive been looking all over for something that could help. I'll have to give it a try tonight and see if i can get it to work!
java_dude is offline
Reply With Quote
View Public Profile
 
Old 02-21-2004, 08:54 PM
java_dude's Avatar
Average Talker

Posts: 26
Location: Good ol' U.S. of A. Leicester, MA.
Trades: 0
hey, it worked! I just wanted to say thanks a ton! its exactly what i need for the job, and it works great. I would have thought i would need a complex cgi script or something, but javascript works just as well. Thx again!
java_dude is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to help with website forms
 

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