ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Using form variables in subject, and email body (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Using form variables in subject, and email body
#6942
MasterC (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Using form variables in subject, and email body 3 Months, 1 Week ago Karma: 0  
Hi,

I've got a form that requests information from our student and emails it to our advisors. For now this function is all I'm working on, later I'd like to instead be able to save it to a database and email a link of the saved form instead of the contents of the form. I'm interested in how I should use form data for email variables. I have seen this thread: http://www.chronoengine.com/index.php?option=com_fireboard&Itemid=37&func=view&id=5672&catid=2

And I've seen the tutorial, but I must be missing something "obvious" somewhere. I have these fields in my Form HTML:
Code:

<td>Name:</td> <td colspan="3"><input name='name' type='text' size="30" /></td> </tr> <tr> <td>Student ID: </td> <td colspan="3"><input name='studentID' type='text' size="20" /></td> </tr> <tr> <td>Email address: </td> <td colspan="3"><input name='email' type='text' size="40" /></td>
I'll be transforming it to a CSS-based layout later, so please just ignore the table formatting for now And then in the second tab called "Special Fields" I have subject name and email in the corresponding fields. Then in the next tab in the OnSubmit before email is sent I have the following PHP code:
Code:

<?php $_POST['subject'] = "Major Status application for" $_POST['name'] ?>
Yet when I fill out the form with a name, ID and email address, I only get the name and email variables working (they show up in the From line); the subject is always blank. If I remove the OnSubmit code, the special fields "subject" and put something in the General subject box, it gets passed through appropriately. Is it something wrong with my PHP code? Any help would be appreciated! -Chad
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
      Topics Author Date
    thread link
Using form variables in subject, and email body
MasterC 2008/03/25 18:51
    thread link
thread linkthread link Re:Using form variables in subject, and email body
GreyHead 2008/03/25 20:54
    thread link
thread linkthread linkthread link Re:Using form variables in subject, and email body
MasterC 2008/03/26 19:46
    thread link
thread linkthread linkthread linkthread link Re:Using form variables in subject, and email body
MasterC 2008/03/28 01:30
    thread link
thread linkthread linkthread linkthread linkthread link Re:Using form variables in subject, and email body
GreyHead 2008/03/28 01:41
    thread link
thread linkthread linkthread linkthread linkthread linkthread link Re:Using form variables in subject, and email body
MasterC 2008/03/28 02:00
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Using form variables in subject, and email body
admin 2008/03/28 15:02
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:Using form variables in subject, and email body
MasterC 2008/03/28 22:47
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials