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:
Form post
Divers
Thread ID:
00869696
Message ID:
00869696
Vues:
43
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
Semper ubi sub ubi.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform