close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Request Variable to sort Email sent in UE from a Registration Form

Thread began 1/07/2010 11:18 am by Daryl | Last modified 1/08/2010 10:07 am by Jason Byrnes | 1395 views | 3 replies |

DarylBeta Tester

Request Variable to sort Email sent in UE from a Registration Form

I have a UE registration form that sends data to a database and also sends two emails, one to the administrators and one to the person registering.

When a person registers they select a member organisation from a drop down which submits the record number of that organisation to the database.

When the admins receive the email it shows the record number and not the unit name.

php:
<?php echo((isset($_POST["unit"]))?$_POST["unit"]:""?>



How would I get the unit name to show instead?

I have tried linking the unit name

php:
<?php echo $row_unit['unit_name']?>



But this just displays the first unit name in the database.

So how do I show the unit name that corresponds to the unit number submitted in the form?

If I do this

SELECT units.unit_name
FROM units
WHERE units.unit_id
How would I do



WHERE units.unit_id = Request Variable?

or whatever is required to show the name based on the session variable sent from the submitted form?

Sign in to reply to this post

Jason ByrnesWebAssist

when creating the recordset, in simple view, set the filtering options to:
filter: unit_id =
Form variable $_POST["unit"]

Sign in to reply to this post

DarylBeta Tester

Sorry - School boy question!

Thanks again Jason

Sign in to reply to this post

Jason ByrnesWebAssist

no worries.

Sign in to reply to this post

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...