It will be host to different businesses - each of which will have an identical email form
When an email is sent, I need to know which business the email is for
This worked great. I tested many times. Perfect
Except recently I stress tested a little more - the code doesn't work
Problem: when a user chooses one business and sends and email, all is fine. But then if they navigate to another business, the email that is sent STILL has the previous directory name :(
Different problems occur if the user enters the app anywhere other than the main index.html page
I assume this has to do with how jQueryMobile works?
Is it possible for me to have 100 different shops - and 100 different email forms?
I have 3 further options to try:
- Use a hidden field (I'm having trouble identifying the form element - but I'll get there in the end)
- Pass the name of the shop on the command line when calling the email file
- Force a fresh load of the email page - I really don't want to do this - but I guess I'll have to do if I have to
EDIT: I just thought of another solution, name the files differently - so one is called shop-a-email.html shop-b-email.html