Virtual Mechanics: Community Forums and FAQs
Virtual Mechanics: Community Forums and FAQs
Web General Discussion
Submit button problem!|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Junior Mechanic |
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 |
||
|
Guru 'Power' Mechanic![]() |
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? |
|||
|
|
Junior Mechanic |
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. |
|||
|
Guru 'Power' Mechanic![]() |
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.... |
|||
|
|
Junior Mechanic |
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! |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|

