How can I get rid of the commas in string of a html form to be sent to a server?

faby1910

New member
Hi, I am trying to create a form that allows you to select terms, that then can be produce a search in PubMed. I am using html code, and so far I managed to almost do it, but because I am using SELECT function and the same control NAME="term" for the three pull-down boxes, the combined string that is sent to the server with SUBMIT contains commas (,), which alter the results. I have to get rid of the commas... how can I do it? Below I post the code, the string I get in the server (PubMed) and the string I need to get (without the commas)... please help me, if possible adding the missing code lines!!

Thank you,
Alpha



<form method="get" action="http://www.ncbi.nlm.nih.gov/entr… target="new">
<SELECT NAME="term">

<OPTION SELECTED VALUE="aspirin">aspirin
<OPTION VALUE="tylenol">Tylenol
<OPTION VALUE="viagra">Viagra
</SELECT>

<SELECT NAME="term">
<OPTION SELECTED VALUE="AND (headache[tiab] OR pain[tiab] OR ache)">Pain
<OPTION VALUE="AND (fever OR temperature)">Fever
<OPTION VALUE="AND (nausea OR vomiting)">Nausea
</SELECT>

<SELECT NAME="term">
<OPTION VALUE="AND Germany">Germany
<OPTION VALUE="AND Italy">Italy
<OPTION VALUE="AND Spain">Spain
</SELECT>

<input type="submit" value="Go">


The server gets the following search string (note the commas):
aspirin,AND (headache[tiab] OR pain[tiab] OR ache),AND Germany

The server should get (note that there are no commas here):
aspirin AND (headache[tiab] OR pain[tiab] OR ache) AND Germany
 
Back
Top