close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

UE email subject as variable

Thread began 3/27/2012 8:34 am by stephen287384 | Last modified 3/28/2012 6:24 am by Jason Byrnes | 2563 views | 13 replies |

stephen287384

UE email subject as variable

I have created a form using CSS Formbuilder, then created an email but not all data is being sent.

I am trying to bind a recordset variable to the subject but when the form sends there is no subject data, am i missing something?
The results page recordset that is sending the email is filtered by unique ID but i can't get the recordset data to bind to the email subject line?

Sign in to reply to this post

Jason ByrnesWebAssist

how is the recordset created, it should work just binding the recordset column in the email, if the subject is empty, it suggests the recordset is not returning a result, I need details on how the recordset is configured to determine why it is not returning a result.

Sign in to reply to this post

stephen287384

The recordset is created by sending the url param eg: uniqueID=1

The resulting page loads the correct record but when i bind the column to the Subject in UE nothing gets sent, the subject is empty?

Recordset SQL is

Select * from Recordset WHERE UniqueID= colname

colname = $_GET['uniqueID']

Sign in to reply to this post

Jason ByrnesWebAssist

does the action of the form send the URL parameter as well?

when the form submits, it reloads the page, including the recordset, if the URL parameter is not a part of the action, the recordset will be empty at the time the UE code is running to send the email.


use the following code for the forms action to force it to retain any querystring variables:

php:
 action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".htmlspecialchars($_SERVER["QUERY_STRING"]):""?>"
Sign in to reply to this post

stephen287384

It is not a form sending the url param it is a link, eg:

link = myResultsPage.php?UniqueID=1


Do you mean the form that sends the final email?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, i mean the form that sends the email, it must also send the URL variable when the form submits

Sign in to reply to this post

stephen287384

The column i want to bind to the Subject line is not the URL variable that is originally received by the link page, ie the UniqueID is sent to the detail page but i want to bind another column from the recordet

Sign in to reply to this post

stephen287384

Just tried your code but made no difference

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the page please.

Sign in to reply to this post

stephen287384

This post has been deleted.

loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...