close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Upload with Dynamic Dimensions Entered

Thread began 7/21/2011 4:14 am by martin400112 | Last modified 7/21/2011 9:22 am by martin400112 | 1044 views | 2 replies |

martin400112

Upload with Dynamic Dimensions Entered

Hi,

I have a problem with uploading files via an Insert for on one of my sites whilst using a recordset to determine the width and height settings of the image to upload. I have attached the file in question.

In a nutshell, the form works perfectly with all the data added to the database, but the upload script fails to upload the image when the dimensions are set with the recordset.

Also, when an image is uploaded with static dimensions added (which may be different to that of the image to be uploaded), the image is not resized how I want it to be. Is it possible for an image to be forced into the dimensions (up or down scaling) accordingly?

Any ideas?

Thanks,

Martin

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

Ray BorduinWebAssist

I think the problem is that you aren't maintaining the recordset active record across the submit.

Try updating your form action to:
<form action="advert_Insert.php?id_adCo=<?php intval($_GET['id_adCo']) ?>"

Sign in to reply to this post
Did this help? Tips are appreciated...

martin400112

Hi Ray,

Thanks for coming back to me. Your solution almost worked...it made me think....the form action was just 'advert_Insert.php' when the actual page is 'advert_Insert.php?id_adCo=1'

The intval you gave didn't work, so I thought I would just echo the original query like this:

advert_Insert.php?id_adCo=<?php echo $row_rs_adIns['id_adCo']; ?>

and guess what....it worked!!

Many thanks,

Martin

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