close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

keep form data on page refresh

Thread began 7/23/2013 8:46 am by randyw2394710 | Last modified 7/24/2013 9:29 am by Jason Byrnes | 1358 views | 3 replies |

randyw2394710

keep form data on page refresh

on the insert update pages in power cms, ihave an overlay to add images, that works fine. the question is, when the add image is pressed the page reloads and clears all data previously entered. How do i keep original form data which the user entered, before it goes to data base.

content ref id
<input type="text" name="ContentRefID" id="ContentRefID" value="<?php echo((isset($_POST["ContentRefID"]))?$_POST["ContentRefID"]:"") ?>" class="validate['required','alphanum']" />

ck editor
<?php
// The initial value to be displayed in the editor.
$CKEditor_initialValue = "".((isset($_POST['ContentValue']))?$_POST['ContentValue']:"") ."";
$CKEditor = new CKEditor();
$CKEditor->basePath = "../webassist/ckeditor/";
$CKEditor_config = array();
$CKEditor_config["wa_preset_name"] = "Blank (custom)";
$CKEditor_config["wa_preset_file"] = "(custom)";
$CKEditor_config["width"] = "98%";
$CKEditor_config["height"] = "300px";
$CKEditor_config["skin"] = "kama";
$CKEditor_config["docType"] = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";
$CKEditor_config["contentsLanguage"] = "";
$CKEditor_config["dialog_startupFocusTab"] = false;
$CKEditor_config["fullPage"] = false;
$CKEditor_config["tabSpaces"] = 4;
$CKEditor_config["filebrowserBrowseUrl"] = "../webassist/kfm/index.php?uicolor=".urlencode(isset($CKEditor_config["uiColor"])?str_replace("#","#",$CKEditor_config["uiColor"]):"#eee")."&theme=webassist_v2";
$CKEditor_config["toolbar"] = array(

array( 'Cut','Copy','Paste','PasteText','PasteFromWord','-','SpellChecker'),
array( 'Undo','Redo','-','Find','Replace','-'),

('/'),
array( 'Format','Font','FontSize'),
array( 'TextColor','BGColor'),
array('Bold','Italic')
);
$CKEditor_config["scayt_autoStartup"] = true;
$CKEditor_config["contentsLangDirection"] = "ltr";
$CKEditor_config["entities"] = false;
$CKEditor_config["pasteFromWordRemoveFontStyles"] = false;
$CKEditor_config["pasteFromWordRemoveStyles"] = false;
$CKEditor->editor("ContentValue", $CKEditor_initialValue, $CKEditor_config);

?>

Sign in to reply to this post

Jason ByrnesWebAssist

This would require hand coding to accomplish, you would need to make sure the add image button also submits the other form data and save it to session variables.

we could help you configure this in a premiere support appointment.

Sign in to reply to this post

randyw2394710

ive tride to set sessions to the insert form content refid and contvalue using the add-Image to start session but not working

also how do you clear session if user goes to another page

Attached Files
contents_insert.php
Sign in to reply to this post

Jason ByrnesWebAssist

The image form is a different form, the initial form does not get submitted when the image upload form posts.

This is a custom coding implementation to accomplish, we could help with this in a premiere support appointment.

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