close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Form Action (encrypted password)

Thread began 4/02/2013 3:04 pm by Cologne | Last modified 4/02/2013 4:55 pm by Cologne | 639 views | 4 replies |

Cologne

Form Action (encrypted password)

Hello Jason,

can you tell me, if I can use this FORM ACTION anytime I use IDs in the URL to uldate?

<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?>?<?php echo preg_replace("/^&/", "", preg_replace("/&?invalid=true/", "", $_SERVER["QUERY_STRING"])); ?>



When I use this

<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?>



The update or delete of my recorset does not work.

Is the first one ready to use on every update or delete? I dont understand the first FORM ACTION. In my case I only use ID as integer parameter.

Cheers,
Denis

Sign in to reply to this post

Jason ByrnesWebAssist

use this for the action if you want to preserver Query string variables:

php:
 action="<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != ""?"?".htmlentities($_SERVER["QUERY_STRING"], ENT_QUOTES):""); ?>"
Sign in to reply to this post

Cologne

Thanks a lot.

so the first one is only for the RETURN PAGE of the Mail Encrypted Password behavior?

Sign in to reply to this post

Jason ByrnesWebAssist

the first one will keep the URL variables, but it has extra code to remove the "invalid=true" url variable from a failed validation.

Sign in to reply to this post

Cologne

Thanks a lot Jason!

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