Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
How do i pull a value from a java menu in a php form
Old 09-06-2005, 03:42 AM How do i pull a value from a javascript menu in a php form
Junior Talker

Posts: 2
Trades: 0
OK so i have setup my js 2 stage menu

select from 1st list is area

addOption("First-Select", "Select an Area", "", 1); //HEADER OPTION
addList("First-Select", "Aberdeen", "", "1");
addList("First-Select", "Aberdeenshire", "", "2");

From what is selected shows town in that are only

from

addOption("1", "Select a Town", "", 1); //HEADER OPTION
addList("1", "Ballater", "", "Ballater");
addList("1", "Balnagask", "", "Balnagask");
addList("1", "Banchory", "", "Banchory");
addList("1", "Bankhead", "", "Bankhead");
addList("1", "Bieldside", "", "Bieldside");

Now that all works fine but what i need to know now is how to tell the Form what has been selected

PS the above is in a config.js file to run the menu

Below is in my sumbit.php form page

This is what i have now

PHP Code:
<select nameselect name="PROPERTYLOCATION" style="width:180px;"></select><br><br><select nameselect name="PROPERTYTOWN" size="4" style="width:160px;"></select
Were PROPERTYLOCATION is the 1st menu and PROPERTYTOWN is the second menu this works on the form as in it displai it on the page and i can select from eather menu just fine

What it is not doing is deting the value and writing it to SQL table so i need to know how or what i need to chang in this live of code please

PHP Code:
<select nameselect name="PROPERTYLOCATION" style="width:180px;"></select><br><br><select nameselect name="PROPERTYTOWN" size="4" style="width:160px;"></select

Last edited by TheStig; 09-06-2005 at 05:54 AM.. Reason: missleaging title
TheStig is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-06-2005, 04:40 AM
Junior Talker

Posts: 2
Trades: 0
The thing i need is the select and options here is what i have and it is not adding the value to sql table it did before when i just had a php menu select form

I have added the PROPERTYTOWN to write to the sql table and i am getting no error on the page it is just not getting the value that has been selected from the 2 menus that are jarva cascade menu

here is the show menu on the for code

PHP Code:
          <select nameselect name="PROPERTYLOCATION" style="width:180px;"></select>
          <
option value="1">Please Select</option>
          <
br><br><select nameselect name="PROPERTYTOWN" size="4" style="width:160px;"></select>
          <
option value="0" selected>Any</option
The Jarva menu works fine i just need the php for to pull the value selected on the php form page
Any help please as i need to get this finnished today please
TheStig is offline
Reply With Quote
View Public Profile
 
Old 09-06-2005, 02:41 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
select nameselect name ? lloks like you are duplicating bits of your form....

Once your javascript (Java is something totally different to javascript) has assembled the select boxes and you have selected the desireditems, you can submit and process the form as normal. Can we see the PHP code that does the SQL updates?
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Reply     « Reply to How do i pull a value from a java menu in a php form
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14515 seconds with 12 queries