Current location: Hot Scripts Forums » Programming Languages » Perl » form processor help please


form processor help please

Reply
  #1 (permalink)  
Old 10-25-06, 09:51 AM
vbsaltydog vbsaltydog is offline
Newbie Coder
 
Join Date: Sep 2006
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
form processor help please

I have a drop down list form that I would like to include in a website that simply shows categories in a drop down list using option tags. My current form processing script works however, it requires the target URL in the "value" field and I cannot have this in there for SEO reasons (keyword density and placement) so my question is ....can anyone help me with a form processor that can process a drop down list of target pages on the same domain while masquerading the target url?

Thanks to all for your help
Reply With Quote
  #2 (permalink)  
Old 10-25-06, 12:05 PM
Drunken Perl Coder Drunken Perl Coder is offline
Wannabe Coder
 
Join Date: Aug 2006
Posts: 110
Thanks: 0
Thanked 0 Times in 0 Posts
If the URL is always the same you can hard code the URL in the pel script and leave it out of the drop down menu in the form.
Reply With Quote
  #3 (permalink)  
Old 10-25-06, 12:48 PM
vbsaltydog vbsaltydog is offline
Newbie Coder
 
Join Date: Sep 2006
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
The url is not always the same.
Reply With Quote
  #4 (permalink)  
Old 10-25-06, 01:04 PM
Drunken Perl Coder Drunken Perl Coder is offline
Wannabe Coder
 
Join Date: Aug 2006
Posts: 110
Thanks: 0
Thanked 0 Times in 0 Posts
post an example of the drop down menu form code.
Reply With Quote
  #5 (permalink)  
Old 10-25-06, 01:24 PM
vbsaltydog vbsaltydog is offline
Newbie Coder
 
Join Date: Sep 2006
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Code:
<form action="http://www.mydomain.com/cgi-bin/selector.cgi" method="GET"><select name="URL" onChange=form.submit()><option VALUE="none">Select a Category</option><option value="http://www.mydomain.com/cat/abec_wheels.html">Abec  Wheels</option>
Reply With Quote
  #6 (permalink)  
Old 10-25-06, 02:25 PM
Drunken Perl Coder Drunken Perl Coder is offline
Wannabe Coder
 
Join Date: Aug 2006
Posts: 110
Thanks: 0
Thanked 0 Times in 0 Posts
looking back at your original question:

Quote:
can anyone help me with a form processor that can process a drop down list of target pages on the same domain while masquerading the target url?
You could maybe put the domain in a hidden form field:

Code:
<input type ="hidden" name="domain" value="http://www.mydomain.com">
then when the script gets the form data it can concatenate the fields to form the URL:

Code:
my $URL = param('URL');
my $domain = param('domain');
my $domain .= $URL;
or maybe I don't understand your question.
Reply With Quote
  #7 (permalink)  
Old 10-25-06, 03:20 PM
vbsaltydog vbsaltydog is offline
Newbie Coder
 
Join Date: Sep 2006
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
The last part of the url
Code:
abec_wheels.html
from my example code in my previous post is the part that messes up my SEO so if I were to concatenate wouldnt I still need the final section of the url in the form field?
Reply With Quote
  #8 (permalink)  
Old 10-25-06, 03:38 PM
Drunken Perl Coder Drunken Perl Coder is offline
Wannabe Coder
 
Join Date: Aug 2006
Posts: 110
Thanks: 0
Thanked 0 Times in 0 Posts
Yes, you would still need it. Maybe the answer lies in a pure javascript solution since the problem is in the html code. Maybe ask in the javascript forum.
Reply With Quote
  #9 (permalink)  
Old 10-25-06, 03:54 PM
vbsaltydog vbsaltydog is offline
Newbie Coder
 
Join Date: Sep 2006
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you for your help on this.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
submit from form 1 to form 3 bypassing form 2 buzzby PHP 1 06-01-05 02:06 PM
focus is lost once modal form is unloaded substance Visual Basic 0 01-31-05 08:29 PM
checkCheckboxGroup broken after form consolidation ski_woman JavaScript 0 01-12-05 11:00 AM
formmail problem gscraper Perl 12 08-27-04 03:06 AM
Limit the form submission according to time bionicsamir PHP 7 05-09-04 11:10 PM


All times are GMT -5. The time now is 04:45 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.