close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Sticky Forms

Thread begun 11/06/2010 12:09 pm by gpaul | Last modified 11/08/2010 2:23 pm by Jason Byrnes | 1736 views | 7 replies |

gpaul

Sticky Forms

I had created "sticky forms" for my checkout page, however for some reason they are now not working. I have used this code before and never a problem.

Here are the sticky form scripts I have tried:

<td><input type="text" name="firstname" id="firstname" "<?php if(isset ($_POST['firstname'])) {echo 'value="'.htmlentities ($_POST['firstname']).'"';}?>" /></td>

<td><input type="text" name="lastname" id="lastname" value="<?php if(isset ($_POST['lastname'])) {echo htmlentities($_POST['lastname']);}?>" /></td>

<td><input type="text" name="email" id="email" value="<?php if(isset ($_POST['email'])) {echo($_POST['email']);}?>" /></td>

All of these have worked on other sites. Since the code did work and now it does not, my first inclination was to see what had changed, but am unable to locate anything.

I have also added the

if(!isset($_SESSION)) {
session_start();
}
$_SESSION['firstname']=stripslashes($_POST['firstname']);

Although it was working without as the session variables are already set.

Anyone have a clue as to why I am having this issue or where I am having the issue?

Also, it would seem to me that this should have been included with the original code since there is a Modify Information button, is it possible I did not create the pages correctly or miss some option in the beginning?

Thank you

Gary

Sign in to reply to this post

Jason ByrnesWebAssist

when you click the modify button, there is no form post being made back to the checkout page.

When the checkout page posts to the confirm page, the information is stored in session variables.

On the checkout page, select each form element, then go to the properties inspector. Click the lightning bolt next to initial value and select the corresponding binding from the session collection.

Sign in to reply to this post

gpaul

Thank You

Jason

Thank you for your quick reply, works like a charm. My only problem now is that DW crashes when I try to set the state and country drop down menus through the properties window...

Thank you for your help.

Gary

Sign in to reply to this post

Jason ByrnesWebAssist

What version of Dreamweaver?


have you tried deleting the cache file from the users configuration folder:
common_installation_issues.pdf

Sign in to reply to this post

gpaul

CS3. I restarted the machine, then tried it again, but it still crashed. I also manually inserted the code prior to the restart and still got the crash.

I will read the info you sent me...

Thank you again.

Gary

Sign in to reply to this post

gpaul

Jason

I did a search of my computer and did not find a WinFileCache.dat file. Could it be a different name?

Gary

Sign in to reply to this post

gpaul

Jason

Never mind, found it, problem solved.

Thank you for your help.

GAry

Sign in to reply to this post

Jason ByrnesWebAssist

OK, glad to hear it is working.

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