Hello,
I have a page A with a combobox. Next to the combobox I have a link to
another page (B). The idea is that I select a value in my combobox, then
click the link and the value of the selected value in the combobox should be
send to the page B. Is this possible with php and html? I've tried something
like:
<select name=choice>
    <option>aaa
    <option>bbb
</select>
....
<a href="B.php?var=$choice" target="this">B</a>

but this didn't work, guess it only works if you insert a value directly in
the link and not a variable.

I thought of working with buttons but the problem got more complicated. Page
A actually is a form (the global form), containing three comboboxes, each
one with a link (to page B). The global form has a submit button which leads
to page C. If I click the global forms button all the values selected in the
comboboxes should be sent (easily done with sessionvariables). If I click a
link then only the value of the combobox under whom the link is found should
be sent to page B. I tried to make  three subforms and to replace the links
with a postbutton but that didn't work (guess subform don't exist cause I
didn't find any information about them). So I tried something like:
<form action="page C" method="post">
        <form action = "page B" method="post">
                <select name="cmbox1">
                    <option>aaa
                    <option>bbb
                </select>
                <input type="submit" name="toB_1">
        </form>
        <form action = "page B" method="post">
                <select name="cmbox2">
                    <option>aaa
                    <option>bbb
                </select>
                <input type="submit" name="toB_2">
        </form>
        <form action = "page B" method="post">
                <select name="cmbox3">
                    <option>aaa
                    <option>bbb
                </select>
                <input type="submit" name="toB_3">
        </form>
<input type="submit" name="toC">
</form>

 The idea now was when I clicked toB_1 or toB_2 or toB_3 then page B would
be loaded and only one value (of the right combobox) should be sent to page
B. But when I click toC then all three values should be sent to page C.

My question is if there is a solution in php to solve this problem (to send
those variables seperately) and so to solve the above stated problem.

Thanks in advance

Pascal




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to