OXID Community Forum

> International Forums > Templates and Design > How to send selected data from form to controller?
Login
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread: How to send selected data from form to controller?


Reply
 
Thread Tools Search this Thread Display Modes
#Top   #1  
Old 07-10-2017, 02:20 PM
Junior Member
Join Date: Apr 2017
Posts: 10
m20@euroblaze.de is on a distinguished road
Default How to send selected data from form to controller?

Hello,

How can I send the selected data from the form to the controller?

I have:

HTML Code:
[{foreach from=$manufacturers item="manufacturer"}]
  <li onclick="manSelector.submit();manSelector();">
  <input type='hidden' name="editval[oxmanufacturers__oxtitle]" value="[{ $manufacturer }]">				
	[{$manufacturer}]
  </li>
[{/foreach}]
With
PHP Code:
$aParams oxRegistry::getConfig()->getRequestParameter("editval"); 
I am getting all the manufacturers and not the selected one.

Thank you,
Martina
Reply With Quote
#Top   #2  
Old 07-10-2017, 02:33 PM
rubbercut rubbercut is offline
Senior Member
Join Date: Nov 2009
Posts: 1,300
rubbercut is on a distinguished road
Default Re: How to send selected data from form to controller?

This must be so, because each hidden field in the foreach has a value and not just the selection. The hidden field usually has nothing to look for in the foreach. Here only the selection from the list is re-written.
__________________
Grüße

rubbercut
Reply With Quote
Reply

Bookmarks

Tags
controller, data, form, selected, send

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Nicht Sichtbar
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Zoombild -> selected Marcello_Martin Templates und Design 5 08-09-2016 10:50 AM
Fetch form data value. heartsblack Modules 1 10-05-2015 11:13 AM
Empty Payment Method Selected hardikbadani Developers 1 03-08-2012 10:15 AM
A country by default selected on the address form (checkout Step 2) mhamilton Installation and configuration 5 03-12-2009 04:08 PM

All times are GMT +1. The time now is 11:28 PM.