close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

DW CS5 Submit Button

Thread began 5/13/2011 7:39 am by cherry8723424721 | Last modified 5/18/2011 8:08 am by Jason Byrnes | 5960 views | 20 replies |

cherry8723424721

DW CS5 Submit Button

Hi:

Does anybody know why the Submit Button in my Log In User Form doesn't work? I have already set up the DW User Aunthentication > Log In User behavior, but when I click the Submit Button my LogIn page just erases the input text and stays put.

Browsing around the web I've read there's some extra php code needed to make the Submit Button work, is this true? Anybody has any idea on how to solve this? Jason?

Thank you for your attention.

Sign in to reply to this post

Jason ByrnesWebAssist

It could be that a php error is occurring on the page.

add the following code at line 1 to turn on error reporting:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>



post back any error that occur on testing and a copy of your page so I can take a look at the code.

Sign in to reply to this post

cherry8723424721

Jason:

I pasted the code you sent and got the following error message:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\LovingPandaTest\Index.php:5) in C:\xampp\htdocs\LovingPandaTest\Index.php on line 81

I haven't entered or changed any code manually. Whataver's wrong has been done internally.

Any suggestions?

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

see the following thread for details on the headers already sent error:
showthread.php?t=19285

Sign in to reply to this post

cherry8723424721

LogIn Page

Jason:

Here's a copy of the page in question.

Attached Files
CherryLogIn.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the error is caused by a blank space after the closing php tag on line 4:
"?> "

remove the blank space at the end of line 4.

to trouble shoot further, add the following after the <body> tag of the login page:
<pre><?php var_dump($_SESSION); ?></pre>


also double check that the server is capable of storing a sesion variable, use the session test page from the following thread:
showpost.php?p=23826&postcount=2

Sign in to reply to this post

cherry8723424721

Jason:

Inserting the code after the <body> tag generates the following message:

array(2) {
["sessemail"]=>
NULL
["test"]=>
string(4) "test"
}

The session variable test in the test page was always = NULL. What am I doing wrong?

Sign in to reply to this post

Jason ByrnesWebAssist

please send a link where i can see the session test page.

If the session is always null, it is not something you are doing wrong, it is a problem with the server settings, most likely the session.save_path setting in the php.ini file that will need to be corrected by the host.

Sign in to reply to this post

cherry8723424721

Jason:

I'm using XAMPP as local host testing server. How can I double check and correct the php.ini file that you mention?

Thank you for your attention.

Sign in to reply to this post

Jason ByrnesWebAssist

see the following page:
xampp-windows.html

in the what is where section, the list the location of the php.ini file

check the session.save_path setting.

make sure it points to a folder that exists on your computer.

if it s set correctly, the session test page should report the Test session variable having a value equal to "test" after clicking the second link.

Sign in to reply to this post
loading

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