91
General / Re: anyform error
« Last post by xmanhattan on February 10, 2024, 12:44:00 »Hello Datahell,
Yes, you are correct in assuming that the rest of the xml works. I also tested the format using https://codebeautify.org/xmlvalidator and it is valid even though this is a different situation.
A note for others: the name parameter must be one word no spaces. Also be aware of the ending slash.
I am using php 7.4 on wamp but 8.1 on the host. On 7.4 the following works but on 8.1 it doesn't.
Regarding html theory and select, the https://www.w3schools.com/tags/att_option_selected.asp
example shows
I tested each on the host separately by commenting them as shown in the code below.
I added the choose options to see what would happen but neither one of them worked on the host but it still displayed:
Not acceptable option for field Best time to call, if necessary!
Not acceptable option for field How did you find us?!
I don't know what else to try. I have removed these and the form works.
Yes, you are correct in assuming that the rest of the xml works. I also tested the format using https://codebeautify.org/xmlvalidator and it is valid even though this is a different situation.
A note for others: the name parameter must be one word no spaces. Also be aware of the ending slash.
I am using php 7.4 on wamp but 8.1 on the host. On 7.4 the following works but on 8.1 it doesn't.
Regarding html theory and select, the https://www.w3schools.com/tags/att_option_selected.asp
example shows
Code: [Select]
<option value="audi" selected>Audi</option>
so based on this, I assume that the value is what should be in Code: [Select]
default=
but it does not work in either of the two selects below.I tested each on the host separately by commenting them as shown in the code below.
I added the choose options to see what would happen but neither one of them worked on the host but it still displayed:
Not acceptable option for field Best time to call, if necessary!
Not acceptable option for field How did you find us?!
I don't know what else to try. I have removed these and the form works.
Code: [Select]
comment here
<item type="openfieldset" label="Communication Preferences" />
<item type="select" name="callclient" label="Best time to call, if necessary" default="Choose" tip="Best time to call, your Local Time?">
<option value="Choose">Choose</option>
<option value="Anytime">Anytime</option>
<option value="10:00">10:00</option>
<option value="12:00">12:00</option>
<option value="14:00">14:00</option>
<option value="16:00">16:00</option>
<option value="18:00">18:00</option>
<option value="20:00">20:00</option>
</item>
<item type="closefieldset" />
end comment here
comment here
<item type="openfieldset" label="For Statistical Purposes" />
<item type="select" name="statistics" label="How did you find us?" default="xxx" tip="Help us to help you better.">
<option value="xxx">Choose</option>
<option value="Search">Search engine, Google, Bing, etc.</option>
<option value="Social">Social Media</option>
</item>
<item type="closefieldset" />
end comment here