Moderators: Derry, Goldie, Harpo
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Mechanic
Posted
Compliments of the season!
Using SiteSpinner V2.70c.
I am busy creating a web page that has a textbox(txthold) and a submit button(butSub). The textbox and submit button are set up to 'GET'. It works OK but I only want the string in the textbox to be submitted to a perl script, but for some reason the 'caption' of the button (value!?) is also submitted. i.e. The back of the URL created comes out like this:
/cgi-bin/create.pl?txthold=JIFDGEA&butSub=SUBMIT
Is there any way to submit only the txthold=JIFDGEA bit?
I have probably missed something small here.
Any help would be greatly appreciated.
Hans
 
Posts: 3 | Registered: January 01, 2007Reply With QuoteEdit or Delete MessageReport This Post
Guru 'Power' Mechanic
Picture of Bruceee
Posted Hide Post
Try setting the Name of your Submit button to blank (null). That should suppress submission of the name/value pair for the button itself (maybe!)

But I haven't tested it -- is there an easy way to view the form data that is appended to the URL?
 
Posts: 9265 | Location: Wellington, New Zealand | Registered: December 11, 2003Reply With QuoteEdit or Delete MessageReport This Post
Junior Mechanic
Posted Hide Post
Thanks for the suggestion Bruceee. But unfortunately it doesn't work.
As far as viewing the form data is concerned, the only way I know is preview the html page in my browser and the click the 'submit' button. The url is then displayed in the browser address bar.
 
Posts: 3 | Registered: January 01, 2007Reply With QuoteEdit or Delete MessageReport This Post
Guru 'Power' Mechanic
Picture of Bruceee
Posted Hide Post
That doesn't happen in my IE7, but I ran my test again under Firefox and did see the form data.

You're right -- a blank name still produces this code: name="" -- not truly null.

I just tried this and it does work: delete the name="butSub" from the code after you publish or preview. This is not a great solution, but if you're in a fix, better than nothing. Someone else may be able to suggest something better....
 
Posts: 9265 | Location: Wellington, New Zealand | Registered: December 11, 2003Reply With QuoteEdit or Delete MessageReport This Post
Junior Mechanic
Posted Hide Post
Thanks for that suggestion. Works great!
As far as I understand POST is limited to 100 characters. And I need as much space for the other variable 'txthold=' as possible, so at least we get to add a bit more space!
I'm still sure it's something small I'm doing wrong here. Probably a small setting somewhere!
Have a great day!
 
Posts: 3 | Registered: January 01, 2007Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 


™ & © 1998 - 2008, Virtual Mechanics Inc. All rights reserved.