jericho
08-11-2003, 06:54 AM
I have a couple of problems, perhaps you could help me and post some helpful tips. Thanks
Problem 1. I use a html Form tag, which I use to get data from user and writing them in a database (using php) in MySQL. My Form tag looks like this:
<form action="poly_k.php" method=post>
<input type="text" name="polyvol" size="4" maxlength="4">
<input type="submit" value=" Buy ">
</form>
Everything up to this point works fine. File poly_k.php takes care of the writing into database actions.
Now, I'd like to use data which I enter into the window <input...> use in 2 ways, depanding which button I press. In other words, I'd like to have a "Buy" submit button and "Sell" submit button and they would both use data from one input window. How do I do that?
Is the following correct? (I suspect not...)
<form action="poly_k.php" method=post>
<form action="poly_s.php" method=post>
<input type="text" name="polyvol" size="4" maxlength="4">
<input type="submit" value=" Buy ">
<input type="submit" value=" Sell ">
</form>
How do I do that?
Problem 2. I use frames. Now, 'd like to click a link in one of the frames and I'd like it to modify the contents of the other frame, whichout changing the current frame. How do I do that?
Problem 3. I have a picture, which I use as a link (.jpg or .gif file). Now, I'd like this picture to have a couple of areas and depanding which area I click, I go to a different link (different URL). How do I do that? Do I have to use javascript for that?
If you can help me and post, please do.
Thanks,
Jericho
Problem 1. I use a html Form tag, which I use to get data from user and writing them in a database (using php) in MySQL. My Form tag looks like this:
<form action="poly_k.php" method=post>
<input type="text" name="polyvol" size="4" maxlength="4">
<input type="submit" value=" Buy ">
</form>
Everything up to this point works fine. File poly_k.php takes care of the writing into database actions.
Now, I'd like to use data which I enter into the window <input...> use in 2 ways, depanding which button I press. In other words, I'd like to have a "Buy" submit button and "Sell" submit button and they would both use data from one input window. How do I do that?
Is the following correct? (I suspect not...)
<form action="poly_k.php" method=post>
<form action="poly_s.php" method=post>
<input type="text" name="polyvol" size="4" maxlength="4">
<input type="submit" value=" Buy ">
<input type="submit" value=" Sell ">
</form>
How do I do that?
Problem 2. I use frames. Now, 'd like to click a link in one of the frames and I'd like it to modify the contents of the other frame, whichout changing the current frame. How do I do that?
Problem 3. I have a picture, which I use as a link (.jpg or .gif file). Now, I'd like this picture to have a couple of areas and depanding which area I click, I go to a different link (different URL). How do I do that? Do I have to use javascript for that?
If you can help me and post, please do.
Thanks,
Jericho