Need some work done? Post a Project Today
I have a PHP and ASP Script that I need to have updated. It’s not a big task, but I am no PHP or ASP coder myself. The current scripts are simple and around 70 lines of code.
The scripts are receiving a number of variables from a Flash and will then send these to an email address, which is also received in a variable from Flash. The variables are sent to the scripts using a POST action from Flash.
This is what I need to have done:
Update the script so it sends an HTML based email instead of the “raw text” it does now. There is no need for fancy HTML or images – essentially I want the email to be placed in (invisible) tables or similar to ensure that the data is presented in the correct layout.
The script I have now is for ASP 1.x. I need you to go through this script and verify that this will work with ASP 1.x.
I also need an ASP 2.x (or whatever people are using now) version of the script that will work on newer ASP installations. It is important that the script is pretty much plug-and-play since the people using this script most likely do not have any larger understanding of ASP.
For both ASP scripts I also need a summary of what version of ASP and server settings are required in order for them to work.
Both scripts need to have built in some additional logic.
Currently the scripts send 43 variables to the email. I would like to have the PHP and ASP script modified so it will send the first 13 and then based on the value of a variable received from Flash (true/false) I want it to either add the remaining 30 variables and send them all or not add the 30 variables and just send the first 13.
In addition to this the above I also need both scripts to check the value of another variable received from Flash (true/false).
If the variable is true, then the script needs to process and add information from another variable received from Flash. This variable will contain XML data sent from flash and the amount of data varies. Therefore the scripts need to loop through the data in this variable and separate each <question> node and add this to the email that will be sent along with some labels for each of the nodes. Each <question> node contains 13 separate pieces of data so there will also be 13 labels. The labels will be static while the <question> data will change from node to node.
I have included an example of what one of these <question> nodes looks like.
<questionText>Type the question here</questionText>
There might be one (1) node or there might be a hundred (100) nodes, so the script needs to take this into account.
I will supply you with the existing scripts, a description of the new variable names to be added and also two separate test files in Flash that you can use to test with.