Hi All
I am using Erics (TiddlyTools) contact form so that people can send me
an email...registering for courses.
I can change the form to include new courses...using check boxes and
dropdown lists of up-coming courses......and managed to change the
mailtext.php file that resends this information as an email...so that
it passes on the information from the contacts (html) form.
The issue is that new courses keeping coming up and older courses
dropping off the list (they are passed/finished)...so I will be
continually and laboriously editing the html and php scripts all the
time........
...SO is it possible to have the html form dynamically generate the
courses lists....maybe from tiddler slides? and include this into the
form ?...........AND then have the serverside php script use the same
info to structure the construction of the body of the email.
It may be easier to give an example......
A tiddler...or part of one (using tiddler.name##part names...or
slices) has the information about courses....
NameCourse#1, startingdate#1, startingdate#2 startingdate#3...
NameCourse#2, startingdate#1, startingdate#2.....
....
..now script in the mail form tiddler converts that information into
something like -
NameCourse#1<input name=NameCourse#1 type=checkbox /><sub><b>Select
date:</b></sub><br/>
<select name=NameCourse#1Dates >
<option>startingdate#1
<option>startingdate#2
<option>startingdate#3
</select >
<br>
NameCourse#2<input name=NameCourse#2 type=checkbox /><sub><b>Select
date:</b></sub><br/>
<select name=NameCourse#2Dates >
<option>startingdate#1
<option>startingdate#2..................
STEP 1 - do-able?
STEP 2 - I imagine more tricky
The courses information...gets copied (I guess manually) into the
mailtext.php file.....and now it generates the code so that the
information from the html form is formated into the body of the email
that is sent....resulting in something like ---
else { // send message
mail($to,$subj,'[ Visitor IP: '.$id." ]\n\n".$name."\n
NameCourse#1: ".$NameCourse#1. "selected date: ".$NameCourse#1Dates
$."\n NameCourse#2:"........"\n".$msg."\n\n From: <".$from.'>');
echo "Thank you. Your message has been sent";
}
I am imagining this will not be so easy...and I see it as a great tool
for anyone using TWs online and interacting with the public.....I hope
this is possible...the other alternative might be GoogleDocs
Forms........but I am much more comfortable inside a TiddlyWiki !!!!!!
Thanks in advance
Skye
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.