Hi all,
We have the form which uses checkboxes for several fields and the target
action points to outside webservice. Unfortunatelly they do not support
checkboxes. How to pass it as a radio buttons or pull down select box with
Yes/No options for example (which they support) using still checkboxes as an
input entry.
Thank you for any hint,
emanuel 3 2510
On Mon, 8 Mar 2004 10:12:37 -0500, "Emanuel Marciniak"
<em********@pat ientcare.com> wrote: Hi all, We have the form which uses checkboxes for several fields and the target action points to outside webservice. Unfortunatelly they do not support checkboxes. How to pass it as a radio buttons or pull down select box with Yes/No options for example (which they support) using still checkboxes as an input entry. Thank you for any hint, emanuel
Server-side there are no such things as "checkboxes " or "radio
buttons". All <input>s submit themselves as name/value pairs. A
server-side script cannot determine what type of form element was
used.
If you want a checkbox to submit the value "yes", use:
<input type='checkbox' name='whatever' value='yes'>
Checkboxes don't submit a value if they're unselected. This may be the
problem you're having. If it is, then other than using Javascript
client-side (not recommended), I can't see a way around it.
--
David ( @priz.co.uk )
David Mackenzie wrote: On Mon, 8 Mar 2004 10:12:37 -0500, "Emanuel Marciniak" <em********@pat ientcare.com> wrote:
Hi all, We have the form which uses checkboxes for several fields and the target action points to outside webservice. Unfortunatelly they do not support checkboxes. How to pass it as a radio buttons or pull down select box with Yes/No options for example (which they support) using still checkboxes as an input entry. Thank you for any hint, emanuel
Server-side there are no such things as "checkboxes " or "radio buttons". All <input>s submit themselves as name/value pairs. A server-side script cannot determine what type of form element was used.
If you want a checkbox to submit the value "yes", use: <input type='checkbox' name='whatever' value='yes'>
Checkboxes don't submit a value if they're unselected. This may be the problem you're having. If it is, then other than using Javascript client-side (not recommended), I can't see a way around it.
Actually, I wonder if he could make the page submit to itself, make sure there
are variable="no"'s whereever there aren't variable="yes"' s upon submit, then
redirect the page to the outside webservice. This would take a bit longer and
probably wouldn't work for POST (at least without re-prompting the user about
resending the data).
Or, he could make his custom form, submit it to his server and have the server
submit it to the outside web service. On completion he could send a
success/error message to the user. This would take even longer, though, and
could cause problems if the outside web service logs/blocks IPs to prevent
spamming, etc.
Both of these options assume he has access to PHP, which may be an incorrect
assumption.
Regards,
Shawn
--
Shawn Wilson sh***@glassgian t.com http://www.glassgiant.com
Dave, Shawn - thank you for your comments.
Yes I do have an access to PHP. I think I will play with Shawn's first
option. (resubmitting will be just another form with fields filled-up with
user's original entry - if ok then submit to webservice if not then refresh
an original form). PHP if statement will check value/name of 'checkbox' and
submit corresponding value/name of 'radio button'.
thank you
emanuel
"Shawn Wilson" <sh***@glassgia nt.com> wrote in message
news:40******** *******@glassgi ant.com... David Mackenzie wrote: On Mon, 8 Mar 2004 10:12:37 -0500, "Emanuel Marciniak" <em********@pat ientcare.com> wrote:
Hi all, We have the form which uses checkboxes for several fields and the
targetaction points to outside webservice. Unfortunatelly they do not support checkboxes. How to pass it as a radio buttons or pull down select box
withYes/No options for example (which they support) using still checkboxes
as aninput entry. Thank you for any hint, emanuel Server-side there are no such things as "checkboxes " or "radio buttons". All <input>s submit themselves as name/value pairs. A server-side script cannot determine what type of form element was used.
If you want a checkbox to submit the value "yes", use: <input type='checkbox' name='whatever' value='yes'>
Checkboxes don't submit a value if they're unselected. This may be the problem you're having. If it is, then other than using Javascript client-side (not recommended), I can't see a way around it.
Actually, I wonder if he could make the page submit to itself, make sure
there are variable="no"'s whereever there aren't variable="yes"' s upon submit,
then redirect the page to the outside webservice. This would take a bit longer
and probably wouldn't work for POST (at least without re-prompting the user
about resending the data).
Or, he could make his custom form, submit it to his server and have the
server submit it to the outside web service. On completion he could send a success/error message to the user. This would take even longer, though,
and could cause problems if the outside web service logs/blocks IPs to prevent spamming, etc.
Both of these options assume he has access to PHP, which may be an
incorrect assumption.
Regards, Shawn -- Shawn Wilson sh***@glassgian t.com http://www.glassgiant.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Joe |
last post by:
having this script:
-------------------------------------------------------------------
<script language="JavaScript" type="text/javascript">
<!--
function isanumber()
{
var antal = document.insert.antal.value;
var isanumber = /^+$/;
if(isanumber.test(antal))
{
|
by: szar |
last post by:
I'm passing numerous array elements called list when a form is submitted.
the brackets are necessary for PHP to see all the values as an array.
The problem is I can't seem to reference the form elements from javascripts
because of the brackets. For example,
form.list.value is no good. Anyone know a way around this? Thanks.
|
by: multimatum2 |
last post by:
Hello,
I need to enable/disable input text forms...
But...
I need to have the same style (color...) in both modes..
Could you help me ?
Thanx a lot
A small sample...
<HTML><HEAD><TITLE></TITLE></HEAD>
|
by: Ryan |
last post by:
I have a hidden field as such:
<INPUT TYPE=\"hidden\" name=xmlfield >
I have a button that i want to use to call a function to change the value:
<INPUT TYPE=submit VALUE="Display XML" Name="displayXML"
OnClick="ChangeFieldName('XML')">
here is the function
|
by: horos |
last post by:
hey all,
Ok, a related question to my previous one on data dumpers for
postscript.
In the process of putting a form together, I'm using a lot of
placeholder variables that I really don't care about in the submitted
action. I'd therefore
like to get rid of them by doing something like:
| |
by: Good Man |
last post by:
Hi there
I'm adding form fields on the fly with some javascript DOM programming.
I basically just clone a hidden <div>, then adjust node properties to
make this new <div> have unique values (style, size, etc.)
the original code of the input tag is:
<input type="file" onchange="alert('original')" size="30" id="filea"
name="filea">
|
by: yawnmoth |
last post by:
Say I have two input elements and that I wanted to make it so that when
the first ones input was what it should be, the focus would
automatically be shifted to the next input element.
ie. something like...
<input onkeyup="if (this.value.length == this.maxlength)
document.forms.elements.focus()" value="whatever"
maxvalue="x" type="text" />
<input value="whatever" maxvalue="x" type="text" />
|
by: Cerebral Believer |
last post by:
Hi folks,
Can anyone help me with this form:
http://futurebydesign-music.com/_member/club_fbd_reg.php
I have followed to coding instructions aas closely as I can, but I am
getting errors about not filling in all the fields on the form correctly
when I test it. Is validating a form with radio buttons difficult?
|
by: peck2000 |
last post by:
Related to my earleir post ... this is the same project to re-purpose the Classifieds application in BEGINNING ASP 3.0 (Wrox) to a comicbook database ...
This is a brainteaser that should have been easy to resolve but just doesn't seem to work for me ... The original application includes a form page for editing the details of an "item". In my case the item is a comicbook. The page functions just fine as long as I stick with text fields, but I...
|
by: sbettadpur |
last post by:
Hi everybody,
Hi iam strugling with more than one submit buttons with in one form
here is my code
<form method="post" action="Offer.php" name='issueFrm' onSubmit="return fullOfferfields();">
OFFER <input type=image src="amarok_rewind.png " title="rewind" > <input type=image src="amarok_back.png" title="back"> <input type="text" size=3 name='txt'> <input type=image src="amarok_next.png " title="next" > <input type=image...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |