Hi everybody,
For a travel agency, I should create a simple form with which the vistor can send the detailed itinerary to his e-mail address. The reason for that is, that the site owner should have control over the requested itineraries.
A similar procedure is already in use at another travel site: http://www.geoex.com. There you have to insert your e-mail-address to get the itinerary, which at the same time stored in their database.
How should I proceed? As the itineraries ar not available for all the trips, there will be a hidden download link at the end of the content page. Could php somehow retract this link and send it to the recpient?
I'm definitively not a PHP geek and spent already hours of trial-and-error and searching the web...
Any help is deeply appreciated...
Kind regards
Martin *marscom* Scheidegger
For a travel agency, I should create a simple form with which the vistor can send the detailed itinerary to his e-mail address. The reason for that is, that the site owner should have control over the requested itineraries.
A similar procedure is already in use at another travel site: http://www.geoex.com. There you have to insert your e-mail-address to get the itinerary, which at the same time stored in their database.
How should I proceed? As the itineraries ar not available for all the trips, there will be a hidden download link at the end of the content page. Could php somehow retract this link and send it to the recpient?
I'm definitively not a PHP geek and spent already hours of trial-and-error and searching the web...
Any help is deeply appreciated...
Kind regards
Martin *marscom* Scheidegger
Hi Martin,
I'm really not very sure what your question is here?
Can you attach files to emails? Yes
Can you save info in the database? Yes
Can you send a link from a hidden input? Yes
You don't say where the itineraries come from so it's hard to say much more.
Bob
I'm really not very sure what your question is here?
Can you attach files to emails? Yes
Can you save info in the database? Yes
Can you send a link from a hidden input? Yes
You don't say where the itineraries come from so it's hard to say much more.
Bob
Hi Bob,
sorry for not being more specific. Maybe this short workflow description helps to explain my need:
The user visits the product page > Wants to download the itinerary > inserts his name and e-mail address into a form field > gets an e-mail with the itinerary attached. > The user's mail address will be stored in the site's database.
The documents (=itineraries) are stored in a directory on the web server. Actually, they're not dynamically linked to the content. But if the webmaster puts the chronoform plugin code at the end of the content, he could eventually insert the static link..?
As mentioned, the idea is the same as they're using on geoex.com when requesting the itinerary.
Hope, this is more specific..? ;-)
sorry for not being more specific. Maybe this short workflow description helps to explain my need:
The user visits the product page > Wants to download the itinerary > inserts his name and e-mail address into a form field > gets an e-mail with the itinerary attached. > The user's mail address will be stored in the site's database.
The documents (=itineraries) are stored in a directory on the web server. Actually, they're not dynamically linked to the content. But if the webmaster puts the chronoform plugin code at the end of the content, he could eventually insert the static link..?
As mentioned, the idea is the same as they're using on geoex.com when requesting the itinerary.
Hope, this is more specific..? ;-)
Hi typomaniac,
Sorry, I didn't take time hunting round geoex.com. I took a quick look but didn't see anything obviously to do with itineraries.
Yes - all that is pretty straightforward to do. You'd probably need to capture the article ID in a hidden filed in the form and then look up the appropriate itinerary file in the OnSubmit Before code box and attach either the file or a download link to the email before it is sent.
Bob
PS Most of this is explained in more detail in Chapters 2 & 8 of The ChronoForms Book
Sorry, I didn't take time hunting round geoex.com. I took a quick look but didn't see anything obviously to do with itineraries.
Yes - all that is pretty straightforward to do. You'd probably need to capture the article ID in a hidden filed in the form and then look up the appropriate itinerary file in the OnSubmit Before code box and attach either the file or a download link to the email before it is sent.
Bob
PS Most of this is explained in more detail in Chapters 2 & 8 of The ChronoForms Book
Hi Bob,
thanks for your precious hints; I'll try that and - in case of success - will post the solution here.
Kind regards
Martin
thanks for your precious hints; I'll try that and - in case of success - will post the solution here.
Kind regards
Martin
This topic is locked and no more replies can be posted.