Hi everybody,

I don't know if I'm at the right place to post this but I'm kinda stuck with a basic question here.

I'm using drupal webform module with drupal 6. I'm trying to send a query to an external database. Everything works fine but my problem is that I have unwanted text in my field names attributes I'd like to remove to make things work.

Examples speak better than words, so:

This is what I have:

for my input fields:

<input maxlength="128" name="submitted[all]" id="edit-submitted-all" size="60" value="" class="form-text" type="text">

or my checkboxes:

<input name="submitted[catalogue][USCC]" id="edit-submitted-catalogue-9" value="USCC" class="form-checkbox" type="checkbox">USCC</label>

This is what I want:

 <input maxlength="128" name="all" id="edit-submitted-all" size="60" value="" class="form-text" type="text">

or

<input name="catalogue" id="edit-submitted-catalogue-9" value="USCC" class="form-checkbox" type="checkbox"> USCC</label>

Could anybody help me with that?

Thanks a lot!

Comments

shawngo’s picture

Can you explain the issue you're running into in using Webform's default name values?

At what point are you sending a query to an external database? I would imagine adapting to Webform would be easier than changing this specific default behavior.

Donatoo’s picture

Thanks for your answer.

I have no direct access to the database I'm doing my query on, so I can't adapt it.

Maybe the best way to obtain the wanted result is to write a module even though it would be easier to override the field names.

jkpeter’s picture

Did you find a solution for this?