close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Contact Form upload intergration

Thread began 8/08/2011 3:42 am by Brett | Last modified 8/09/2011 9:50 am by Jason Byrnes | 2557 views | 7 replies |

Brett

Contact Form upload intergration

Hello,

Ive used the basic contactus.php in the Contact Form Solution Pack and added an upload field and it works perfect on a wamp server but when uploaded to the online site it sends the email but with no attachment and no image goes to the upload folder on the server.

Any help would be grateful.

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of your contact us file in a zip archive so i can examine the code.

Sign in to reply to this post

Brett

Thanks Jason.

Here is the contactus.php that works fine on my wamp server. The email sends when uploaded to our Quadra server but no attachment is included on the live server???? Hopefully you can assisist this novice to understand what im doing wrong.

Brett

Attached Files
contactus.zip
Sign in to reply to this post

Jason ByrnesWebAssist

where it works in one environment, but not another, it ios probably not something you are doing wrong, but a server errror.

to troubleshoot the problem, add the following code at line 1:

php:
<?php
error_reporting
(E_ALL);
ini_set('display_errors','on');
?>



then change :

php:
$GoToPage = "thankyou.php";



to:

php:
$GoToPage = "";




and add this code after the <body> tag:

php:
<?php echo WA_DFP_AllUploadsDebug(); ?>



post back the results after sending another email, this will give me information for troubleshooting the issue.

Sign in to reply to this post

Brett

Got this error above the form when i hit refresh

Status object: WA_UploadResult1
statusCode : -1
errorMessage :
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult1_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1


Im still not sure what is going wrong?

Email sent fine but still with no attachment and redirected back to "thankyou.php" with no further error messages.

Sign in to reply to this post

Jason ByrnesWebAssist

change this line:

php:
$GoToPage = "thankyou.php";



to:

php:
$GoToPage = "";



so that it will not redirect to the thank you page

Sign in to reply to this post

Brett

How could i be so stupid! I didnt change the file permisions for the upload folder on the live server. Thanks heaps for ya help as it would of been days before i had of realised my error.

Sign in to reply to this post

Jason ByrnesWebAssist

no worries.

glad to hear you found the problem.

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