close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Submission form not sending photos

Thread began 3/19/2010 1:20 pm by mrobben375515 | Last modified 3/30/2010 9:45 am by Jason Byrnes | 1449 views | 17 replies |

mrobben375515

Submission form not sending photos

I just spoke with Jason Barnes a couple weeks ago about a few issues we had on support tickets... We got the submission form to work, but now it's not working again. I check the line of code that he changed ($WAFV_Errors .= WAValidateRQ((isset($_FILES["Registration_group_Upload_Pet_Photo"])?$_FILES["Registration_group_Upload_Pet_Photo"]:"") . "",true,6);) and the "FILES" is still there just as he put it. When I hit the submit button, the photo file isn't sent to the database...

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of your page so I can take a look at the code.

Sign in to reply to this post

mrobben375515

it's index.php... I've gotten it to work but when others have tested it on other computers and browsers we haven't had success. It's also displaying an error at the very bottom of the page because some of the php code is outside of the html tags. I don't know how it got there, or where to place it. Thanks for your help...

Sign in to reply to this post

neilo

Are you using a recordset called Pet_Reg on your page?

If so, the php code that finishes your page (after the closing </html> tag) would be:

<?php
mysql_free_result($Pet_Reg);
?>

Are you still using a recordset called Pet_Reg (it will show in your Server Behaviors Panel), and what do the last few lines of your page code look like?

Sign in to reply to this post

mrobben375515

there isn't a Pet_Reg in server behaviors, but there is a pgl_gallery_images recordset in the bindings...so I deleted the Pet_Reg part but the page is even more messed up now. When I hit submit it processes it for a little while and then goes to a blank screen. Here's the code for the last few lines of the page before i deleted the pet_reg part...

</body>
</html>
<?php
mysql_free_result($pg1_gallery_images);

mysql_free_result($Pet_Reg);
?>

and then after I deleted it...

</body>
</html>
<?php
mysql_free_result($pg1_gallery_images);
?>

Sign in to reply to this post

neilo

Hiya,

I think you should zip and upload the page as Jason suggested originally before I butted in!

Sign in to reply to this post

mrobben375515

sorry bout that...here it is

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

Jason ByrnesWebAssist

for the error message, delete the code at 897:
mysql_free_result($Pet_Reg);


you do not have a recordset named "Pet_Reg" on the page, thus the error is occurring trying to destroy it.

If the image upload is working for some, but not for others there are a few possibilities:

a) On slower connections, submitting the image may exceed the php max_execution_time setting

b) uploading larger files may exceed the post_max_size setting


see the following page for information on PHP.ini settings that can effect upload:
config.php

Sign in to reply to this post

neilo

Hi there,

Hopefully Jason will check out your page more thoroughly, but it seems that there is redundant code on your page, left over perhaps from previous forms and validations that are no longer part of your page's functionality.

There are three blocks of WA Server Validations server behaviors on your page (and listed in your Sever Behaviours panel) - the first two blocks (SimpleRegistration_submit and PetReg_submit) no longer seem to relate to a current form.

I would wait for Jason to cast an eye over things, but in the meantime if you wanted to, you could back up your page, and try removing the first two blocks of validations from the server behaviors panel and again remove the 'mysql_free_result($Pet_Reg);' line from the end of your page, as before.

Sign in to reply to this post

neilo

Sorry Jason,

Didn't see you had posted!

Sign in to reply to this post
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...