|
-
Jun 20th, 2005, 06:59 PM
#1
Thread Starter
Addicted Member
[HTML] - Form Scope - [Resolved]
I don't know if it's the php forum or in this forum this question apply too but here it goes:
I have a a sheet asking some information about a user name, address, zipcode etc...
In the middle of the questionnaire, I'm asking information that change the next question available answer thus creating a "mini" questionnaire into the actual questionnaire.
So I wrote code like this:
(I've cut the unimportant part of the code)
<form action="validation_formulaire_utilisateur.php" method="post" name="formulaire_utilisateur">
<form name="selection_pays" action="<? $PHP_SELF; ?>" method="post">
Pays: <select name="choix_pays" onChange="Javascript:submit()"><BR>
</select><BR>
</form>
Nom d'utilisateur (alias): <input type="text" name="txtAlias" size="20"><BR>
Mot de passe: <input type="text" name="txtMDP" size="20"><BR>
email: <input type="text" name="txtEMail" size="20"><BR>
<input type="submit" value="Créer le compte!" name="btnSubmit"><BR>
</form>
When I use the "onChange" from the javacript in the "middle" <Form>, it submit the whole questionnaire asking "validation_formulaire_utilisateur.php" instead of self as if I've push the submit button.
What I want to do is if the <Select> is change, refresh on self and when I click on the submit button, then use "validation_formulaire_utilisateur.php" how can I achieve this?
Thks
Last edited by Megistal; Jun 21st, 2005 at 12:34 PM.
Reason: Adding Topic category
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|