close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Getting White Screen When Using Universal Email.

Thread began 12/03/2019 11:49 am by BillHobbs | Last modified 12/04/2019 12:13 pm by Ray Borduin | 45 views | 8 replies |

BillHobbs

Getting White Screen When Using Universal Email.

I've created a contact form and I want to pass the content and some dynamic data to the email that gets sent. In the previous version there was a way to create the data with dynamic links from the contact page via a window where you just selected the data. I don't see that feature in the latest version. So I'm not sure how to do this now. Currently I just get a white screen when I try to submit the form.

Is there a tutorial some where on how you pass data from the form to the page being emailed. I've attached the form and the page to be emailed so you can tell me where I'm going wrong. Thanks in advance.

I did do an error check and this is the error:

Notice: Undefined variable: connSiteDB in /home/xllqtqsxkjyu/public_html/contact-email.php on line 7

Fatal error: Uncaught Error: Call to a member function query() on null in /home/xllqtqsxkjyu/public_html/webassist/mysqli/rsobj.php:213 Stack trace: #0 /home/xllqtqsxkjyu/public_html/contact-email.php(9): WA_MySQLi_RS->execute() #1 /home/xllqtqsxkjyu/public_html/webassist/email/WA_Email.php(314): require('/home/xllqtqsxk...') #2 /home/xllqtqsxkjyu/public_html/webassist/email/WA_Email.php(473): WA_Email->getFromPage('contact-email.p...') #3 /home/xllqtqsxkjyu/public_html/contact.php(27): WA_Email->send(0) #4 {main} thrown in /home/xllqtqsxkjyu/public_html/webassist/mysqli/rsobj.php on line 213

Attached Files
contact-email.php
contact.php
Sign in to reply to this post

Ray BorduinWebAssist

This appears to be an issue with your Connections/connSiteDB.php file. It doesn't seem to define a connection with the name $connSiteDB like it should. That causes the errors on the page.

Sign in to reply to this post

BillHobbs

I can look at the page contact-email.php and I see the dynamic data. It just shows the error when I submit the contact form.

I'm really not sure how to echo the data from the contact form into the email being sent.

Sign in to reply to this post

Ray BorduinWebAssist

I see. You just have to add this to the top of your email body page:

<?php
global $connSiteDB;
?>

That will make the connection available for use on that page.

Sign in to reply to this post

BillHobbs

Okay that made the database work. Now how do I display the information that was in the contact form. Name, Email, Message, etc. on that page?

Sign in to reply to this post

Ray BorduinWebAssist

You can add the form bindings to that page from the Bindings panel and then reference them on the email body page that way.

Sign in to reply to this post

BillHobbs

I'm not sure how to do that. On the page that is submitted the only bindings that show up are for the rsSiteInfo recordset data. I don't see any bindings for the email form data. If you can just show me how to echo one form field I can take it from there. Thanks.

I've uploaded the two files.

It tried <?php echo $_POST["contactName"]; ?> and that gives me the values. Is there another way I should be doing with Universal Email?

One other this I noticed is that the email being sent isn't including images that are dynamic, links or css style sheets that have a dynamic url. The dynamic code shows the right information, but the links, css or images are shown.

You can see the form at http://focusonmybusiness.com/contact.html

Attached Files
contact-email.php
contact.php
Sign in to reply to this post

sharon386323

Click the plus button from the bindings panel and choose "Form data" and then browse to your form page. That will add the form to the bindings so you can add it to the email body more easily.

It is supposed to automatically update relative paths to full paths in your email body. It might be doing something wrong. If you give me FTP access and steps to reproduce then I can debug the image and css issue. It should work and I don't see any obvious issues in your code.

Sign in to reply to this post

BillHobbs

Thank you Sharon. The form binding worked.

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