close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

tSelection with multiple forms so now using framework but has problems to

Thread began 12/28/2010 10:41 pm by Miguel | Last modified 12/29/2010 10:36 am by Ray Borduin | 756 views | 1 replies |

Miguel

tSelection with multiple forms so now using framework but has problems to

Ok i was trying to have like 3 form fields on a same page i was getting this error showthread.php?t=15153
I followed the recomendation on that post to use Framework builder to insert each of the forms, so far things worked good, until i test them with dynamic data, i have a page that has articles and another that has recipies for cooking each of them arfe called by dynamic variables example:

article.php?ID=3&CAT=1

or

recepie.php?ID=77

on those pages i have 2 forms made each with css formbuilder ones is for comments of the articles or recipies and the other one is to send the page by email like a recomend or tell a friend, the problem is that calling the forms with the framework builder on submit they lose the variables they where at, even when i add the complete route on data assist insert (article.php?ID=<?php echo ((isset($_POST["articulacion"]))?$_POST["articulacion"]:""); ?>&mechada=comenta) using a hidden field with a capture of GET or even adding a recordset to fill it with the id of the article, so i check and see that form builder adds the action to:

action="<?php echo $_SERVER["PHP_SELF"]; ?>"

with this each time i submit it looses the ?ID=XX

throwing back a page with not article on it cause it can't find it article.php with nothing else no get variable or anything, if i delete the <?php echo $_SERVER["PHP_SELF"]; ?> it does not even find the article .php file just throws me to the main folder, what solution can i use so that after submiting any of those forms it takes me back to the orginal link i was on?

The only thing that has work so far is action="<?php echo filter_var($_SERVER['HTTP_REFERER'], FILTER_SANITIZE_STRING); ?>" but i get a very nasty WCS· validation error with that also it seems to fail on the real server but works on my local pc.

Any advice on how to make these 2 cssform builder and framework builder work together as they should not to complain but i remeber with addt i never had this issue before please losing hair with this lol help :confused:

Sign in to reply to this post

Ray BorduinWebAssist

Set the form action to:

action="<?php echo (htmlentities($_SERVER["PHP_SELF"]));?><?php echo(isset($_SERVER['QUERY_STRING'])?"?".str_replace("<","%3C",str_replace(">","%3E",str_replace('"',"%22", $_SERVER['QUERY_STRING']))):""); ?>"

that should do the trick.

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