Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form post
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
ActiveVFP
Titre:
Divers
Thread ID:
00869696
Message ID:
00869793
Vues:
14
Check out http://developer.irt.org/script/script.htm . This is one of the best JavaScript sites I've found. I think they have an example of what you want under JavaScript Form...
>Considder the following html-code (from activeVFP demo)
>
><form method="POST" action="/avfpdemo2/Default.asp?action=vfpscript">
><input type="text" name="txtCompany" value="" size="20">
><input type="Submit" value=" Get Customers">
></form>
>
>On submit the page calls itself, but this time oRequest.Form("txtCompany") is not .null. it is whatever you typed into the textbox. This is great and it works good.
>My question is: Is there a way to change the action string to something else when the submitt button is pressed?
>Lets say I entered: EINAR into the textbox and his submit. Is there a way that the page would redirect me to:
>
>/avfpdemo2/Default.asp?action=vfpscript&company=EINAR"
>
>
>This would be like passing a parameter to the next page instead of grabing a parameter from the previous page.
>
>Does this make any sense? Is it better to grab the value from the previous page?
>I assume some javascript code would be nessesary to accomplish what I want. Has anyone ever done anything like this before?
>
>Einar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform