close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

INSERT fails using mySQLi tools

Thread began 3/05/2015 10:54 am by LionsMane | Last modified 3/05/2015 2:32 pm by Jason Byrnes | 1604 views | 8 replies |

LionsMane

INSERT fails using mySQLi tools

I'm trying to implement an INSERT using your mySQLi tools, and it looks like the fields are mapped right, and the form is set to 'self', but on SUBMIT, the form just resets, and no actual insert happens. Everything looks right so I can't figure out what's going on. What am I missing that might cause this behavior?

Sign in to reply to this post

Jason ByrnesWebAssist

please attach a copy of the page.

Sign in to reply to this post

LionsMane

code included

Included in the Private message space

Sign in to reply to this post

Jason ByrnesWebAssist

the form element:
<form action="guest-profiles.php" id="Guest" name="Guest">

does not set the method. the Default method that is used when none is specified is the GET, the insert needs to have the method use the Post method.

edit the form tag to set the method to post:
<form action="guest-profiles.php" id="Guest" name="Guest" method="post">


in the future, please don't paste the code int your message, instead attach a the page to the post.

Sign in to reply to this post

LionsMane

next issue

This post has been deleted.

Jason ByrnesWebAssist

you have a logout behavior on the page set to trigger on any form post.

so by submitting the form, you are login out.

Sign in to reply to this post

LionsMane

Ah.. I didn't see that.. thanks for the clarification. I'm still wrapping my head around this new set of methods.

Sign in to reply to this post

LionsMane

Next issue

Stupid mistake on my part, sorry. I should have seen that. Next problem though is that upon SUBMIT, I get kicked out to my "failed login" page.. like the authorization restriction function (from the same suite of tools) doesn't see me as authorized to load the page, even though clearly I am because I was able to load the page to begin with BEFORE the SUBMIT. Ideas?

When I remove the Restriction function, everything works great. It might be somehow related to the Name field of the restriction? I'm unclear where it's getting this value from, so I can't track it down. Is it a session variable somewhere? How does this work?

Sign in to reply to this post

Jason ByrnesWebAssist

the name field for the restriction should beset to the same as the name set on the login page.

on the login page, you set a name for the login, use that same name in the restriction behavior.

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