Use Dreamweaver Log In To use for recordset PHP

Hi I have gone through the tutorials on lost password
recovery for dreamweaver, but wondering if I can use the login
behaviour to do this.
Would it simply be this:
$loginFoundUser = "";
$message = "";
$from = "here is your [email protected]";
$headers = "From: $from";
if (isset($_POST['reg_username'])) {
$loginFoundUser = (get_magic_quotes_gpc()) ?
$_POST['reg_username'] : addslashes($_POST['reg_username']);
mysql_select_db($database_config, $config);
$LoginRS__query=sprintf("SELECT reg_username, reg_password
FROM regid WHERE reg_username='%s' AND reg_password='%s'",
get_magic_quotes_gpc() ? $loginUsername :
addslashes($loginUsername), get_magic_quotes_gpc() ? $password :
addslashes($password));
$LoginRS = mysql_query($LoginRS__query, $config) or
die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";
&& ($loginFoundUser> 0) {
mail($loginFoundUser['reg_username'],"Your password","Your
password is:
".$loginFoundUser['reg_password'],$headers);
$message = "Your password has been e-mailed to you";
} else {
$message = "Sorry, the e-mail address you supplied is not in
our database";

jjjhbj111 wrote:
> Would I be best doing a recordset that is basically
searching the database:
> SELECT reg_username, reg_password FROM regid WHERE
reg_username =
> 'varUsername' LIMIT 1;
> and have a variable where varUsername =
$GET['MM_Username'];
A little knowledge is a dangerous thing. It seems as though
you have
some knowledge of how PHP works, but not yet enough to be
able to adapt
Dreamweaver code to your own requirements. For one thing, it
should be
$_GET, not $GET. The other thing is that MM_Username is a
variable that
Dreamweaver creates after searching the database.
Rather than attempting to hack the Log In User server
behavior, you
would be much better off using an ordinary recordset to get
the
information that you want. I also think it's rather dangerous
to send
out someone's password without first checking the email
address of the
person requesting it. You might also want to employ the
common technique
of asking for the answer to a security question, such as
mother's maiden
name, date of birth, favourite food, or something similar.
Create a form that collects username, email address, and
optionally a
the answer to a security question. Use the post method to
submit the
form and build a query in the Advanced Recordset dialog box
using
variables to get the values of $_POST['username'],
$_POST['email'],
$POST['security_answer']. Recordsets automatically create a
variable
that begins with $totalRows_ followed by the recordset name.
If that
variable is greater than 0, send the email. The password will
be in
$row_recordsetName['reg_password'] (change recordsetName to
the actual
name of the recordset).
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Similar Messages

  • How can I import a non-BC site into BC, using Dreamweaver CC, and then use it as one of my free sites?

    I am trying to import one of my non-BC sites into BC, using Dreamweaver CC, and then use it as one of my free WebBasics sites.
    When I try to create a new BC site in Dreamweaver CC, it creates a BC template site, and I have unsuccessfully tried to update the files on BC - it won't let me connect.
    If I import the site from my portal, I don't get the option of a free site - when I try to upgrade, I get the credit card form asking for payment.
    I feel like I'm running around in circles with one foot nailed to the floor.
    Any tips?

    Thank you for your quick reply and for clearing up my confusion.  I'm exporting the first section now.  I choose the smallest size, 3x4 but I'd prefer to go higher as this DVD was originally a VHS home movie.  I'm wondering if after three conversions (VHS,->DVD->MPEG) the resolution will be so poor as to not support a larger size frame?  If it can, what size should I select when I export? 

  • Cannot use Dreamweaver CS6 because of "running for long time" script issue

    Started getting this error yesterday, it’s killing me....
    Dialog box says: "A script in file ~:Applications:ADOBE CS6:Adobe Dreamweaver CS6:Configuration:Shared:BC:JS:bc_sites.js has been running for a long time.  Do you want to continue?"
    The message keeps persisting almost everytime I try to edit something, the Yes or No options don’t seem to do anythin other than remove the dialogue box temporarily.
    Searched for a solution to this but only found unanswered questions, so I uninstalled the app, re-installed it and all seemed to be ok for a short while and now the issue is back.
    I’m using business catalyst and like the improved imtegration, but this is broken!!
    Please Help..

    designchiefkm wrote:
    Hi, yeah that link leads to "Ask the experts" which is this community forum...
    very bland support me thinks...
    I'm a strong supporter of DW and Adobe, but it's one of the reasons I'm not in the Cloud or using BC.  Support is charged at a per-incident or corporate rate: http://www.adobe.com/support/programs/ . 
    You can try trashing that Configuration folder ( http://helpx.adobe.com/dreamweaver/kb/troubleshoot-javascript-errors-dreamweaver-cs4.html - See steps 12 & 4 for details).  But that's about the extent of community support here for most technical issues.  Seeing as how you have only 3 posts since April  you probably were not around the last time customers spoke up and complained and prompted the Lambert Walsh letter almost 3 years back now. ( http://blogs.adobe.com/captivate/2009/08/open_letter_to_our_customers_o.html ).  Just don't be afraid to speak up or write to Adobe, they will listen.

  • Can't Use Dreamweaver Flash Embedding with ExternalInterface

    I've been trying to use ExtermalInterface to call ActionScript 3 functions from JavaScript and have been having a problem when embedding SWF files using Dreamweaver. When I use the sample code at the bottom of the ExternalInterface docs page (http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/external/ExternalInterface.html) the JavaScript/ActionScript function calls work fine. But when I insert a SWF with Dreamweaver CS4 they don't. They do actually work in Internet Explorer 8 but not in Firefox 3.5, Safari 4, or Chrome 3.
    The problem has to do with the the way the SWF embedding is done. On the ExternalInterface page mentioned above a different form of the <object/embed> tags is used than in DW. Here's the sample code from the docs page:
         <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                 id="ExternalInterfaceExample" width="500" height="375"
                 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">
             <param name="movie" value="ExternalInterfaceExample.swf" />
             <param name="quality" value="high" />
             <param name="bgcolor" value="#869ca7" />
             <param name="allowScriptAccess" value="sameDomain" />
             <embed src="ExternalInterfaceExample.swf" quality="high" bgcolor="#869ca7"
                 width="500" height="375" name="ExternalInterfaceExample" align="middle"
                 play="true" loop="false" quality="high" allowScriptAccess="sameDomain"
                 type="application/x-shockwave-flash"
                 pluginspage="http://www.macromedia.com/go/getflashplayer">
             </embed>
         </object>
    In DW, instead of an <embed> tag a second object tag is inserted. I did find that by manually giving the second <object> tag its own ID (a different ID from the one given the first tag by DW I could make the function call work in FF. But you would then have to choose the ID based on the browser. And, worse, that technique doesn't work in Chrome or Safari.
    So, the workaround seems to be to use the style of embedding used on the ExternalInterface page. But, I don't like that approach for several reasons. First, the page  won't tell the user they need to upgrade their FlashPlayer if that's a problem. Second, you have to manually copy/past the embedding code instead of using DW's nice menu option. And I suspect there may be other benefits to the DW approach,
    So, is there a way to make the DW embedding style work with ExternalInterface in all the major browsers??
    David Salahi

    Very interesting, thanks for your insight. Dreamweaver does seem to be a black sheep in this regard. Curiously, one of the reasons I wanted to stick with DW is because it highlights the <embed> tag in yellow—which normally means an HTML error. Not being entirely up on the ins and outs of the embed tag I thought maybe it's deprecated or something so wanted to avoid it. But now, I've found that it's apparently the right way to do things.
    I did a little testing; here are my results...
    My SWF was originally generated in FlexBuilder (as an ActionScript project) so I copied over the Flex-generated HTML page and modified it for use with ExternalInterface. That works fine in all four of the browsers I mentioned in my original post.
    Next, I grabbed an HTML page generated by Flash's Publish menu option and made the same modifications. Again, everything was copacetic.
    Each of the three tools (Flash, Flex & Dreamweaver) generate different HTML code for embedding a SWF file and only two of them work with ExternalInterface. I guess I'll steer clear of Dreamweaver's Insert-> Media -> SWF menu option in the future. This cost me an entire day of hair-pulling.
    But thanks for your tip!
    David Salahi

  • Alternate method to writing filter for recordset using session variable

    I'm not sure if this can be done.  I have a user page which I'd like to return database info based upon a userid entered on another page. So far, the session variable (userid) is captured on the user page however it is supposed to return the user's name rather than displaying the session variable.
    My problem is this. Within dreamweaver, I am able to create recordsets however I cannot create a filter. The connection works. At this point, I am searching for a workaround where I can tie in the session variable to recordsets. I should make mention that whenever I update the sql statement using the recordset widget, my recordset disappears. ?  At any rate, heres a sample of the code sans connection strings, etc.
    <%
    Dim Recordset1
    Dim Recordset1_cmd
    Dim Recordset1_numRows
    Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
    Recordset1_cmd.ActiveConnection = MM_newuniversity1_STRING
    Recordset1_cmd.CommandText = "SELECT name FROM table WHERE userid =  '" & Session("userid_my") & "'"
    Recordset1_cmd.Prepared = true
    Set Recordset1 = Recordset1_cmd.Execute
    Recordset1_numRows = 0
    %>
    On the user page, I have a 'Welcome' and the following code
    {Request.userid_my}
    Any suggestions? I'm afraid I'm a newbie to asp within dreamweaver cs3.

    >When I insert  request.userid_my code it returns the session variable
    AFAIK, session variables are not part of the request object - so I do not understand why you are referencing them this way. I would use the standard reference method : Welcome <%Response.Write(Session("username"))%>
    >when I insert the recordset associated with 'name' I get an Adobe End of file error. ?
    Sounds like a possible problem with your installation. You may need to try reinstalling DW. How are you "inserting" this recordset and when does the error occur?
    Regarding your next post...
    >select name from table_name where userid = '" & namemy & "'"
    >The statement consistently returns a 'quoted string not properly terminated' error.....
    The select statement you quoted is obviously not complete. If you are refering to the select in your OP:
    Recordset1_cmd.CommandText = "SELECT name FROM table WHERE userid =  '" & Session("userid_my") & "'"
    I see nothing wrong with that syntax and the string appears to be terminated correctly. If there is a different statement causing the error, please post the entire line and include a line above and below.

  • When I attempt to log on to I tunes I get the following message  "The registry settings used by the I tunes drivers for importing and burning CDs and DVDs are missing  This can happen as a result of installing other CD burning software  Please reinstall

    When I attempt to log on to I tunes I get the following message:
    "The registry settings used by the I Tunes drivers for importing and burning CDs and DVDs are missing.
      This can happen as a result of installing other CD burning software. Please re-install I Tunes."
    To my knowledge no new software has been installed.  I have tried un-installing and re-installing I Tunes but I still
    get the same message.
    Can anyone offer any suggestions?  Do I need to download a new driver?
    Bill Martin

    I can get down as far as step 11 but it shows nothing about upper filters and when I type on "If the Upper Filters entry is missing follow these instructions" nothing happens
    Do you mean you can't see the instructions on what to do if there is no UpperFilters entry?
    If so, here's the relevant instructions for that step:
    On the right side of the Registry Editor window, right-click the UpperFilters entry and choose Modify from the shortcut menu.
    Right-click the empty white space within the right-hand portion of the Registry Editor window. From the shortcut menu, choose New > Multi-String Value.
    Name this new value "UpperFilters" (without the quotes). Then, right-click the newly created UpperFilters entry and choose Modify from the shortcut menu.

  • HT201317 When I go to log onto iCloud using my Windows 7 and it asks for my login information, I get the error saying my Apple account is valid but not an iCloud account. How do I get an iCloud account? Thank you

    When I go to log onto iCloud using my Windows 7 and it asks for my login information, I get the error saying my Apple ID is valid but not an iCloud account. How do I get an iCloud account?
    I don't have any apple products personally, this is for work to use Photo Stream so when Superintendents & Project Managers take pictures of their construction site, I am able to have those images immediately.
    Thank you

    You can not create an iCloud account using a PC, you will need an Apple product. Once the account exists you can logon to it from a PC.

  • How do I search for a specific word in the code using Dreamweaver?

    I need to search for a specific word in the code for all of my website pages. How can I do that using Dreamweaver?

    To search local files of a Defined Site in DW...
    Open the Find & Replace tool with Ctrl + F
    Change the Find In dropdown to Entire Current Local Site
    Change the Search dropdown to Text or Source code
    Add the text to find in the Find field
    Add the text to replace in the Replace field (or nothing if you just want to delete the text)
    Hit Replace All

  • I want to set-up a network with our current two laptops for a family of 4 w/unique 4 profiles. I'd like everyone to be agnostic about which computer to log into and use but still have private docs and apps (i.e.mail/facebook). How best can I do this?

    I want to set-up a network with our current two laptops for a family of 4 with unique 4 profiles.  I'd like everyone to be agnostic about which computer to log into and use but still have private docs and apps (i.e. mail/facebook).  How best can I do this?

    iCloud Photo Sharing FAQ - Apple Support
    http://www.fatcatsoftware.com/iplm/Help/accessing%20an%20iphoto%20library%20on%2 0another%20mac.html

  • I have been using DREAMWEAVER MX for almost ten years to keep a website up-to-date. Can I switch to iWeb now to do the job, and if so, how do I go about it?

    With MacOS 10.7 looming on the horizon, using veteran software DREAMWEAVER MX any longer does not seem to be such a good idea. I would like to use an editor that can cope with the new MacOS. Is iWeb that editor?
    Specifically, I need some clarity on these issues:
    Can I switch to iWeb now to  create and publish content in my old website for which I have been using DREAMWEAVER MX?
    Can I use the html layout I have been using in DREAMWEAVER, or do I have to steel myself for drastic changes?
    How do I import the complete website into iWeb – if at all?

    If you switch to iWeb you will have to build the site from scratch since iWeb can't read or import html files.  Also since  the future of iWeb is a little uncertain as to if it will be continued to be supported by Apple it might not be the best move at this time.
    You might look into upgrading to Dreamweaver for Mac.
    OT

  • How do I fix my homepage for Internet Explorer use, when using dreamweaver?

    Hi,
    I have recently created my first two webpages, and they looked like they were working when I was using Firefox. But when using Internet Explorer one of the pages drop the text down to an area of the screen where it's impossible to read it. Can someone please help me out? I am using Dreamweaver and I'm sure there is a basic problem I've created for myself, but I can't figure out what it is! This is the webpage I'm having problems with: www.haanshuus.no.
    Thanks a lot for any help in resolving this problem!

    I don't think this has anything to do with the conditional comments.
    The problem is with your layout approach.  Trying to precisely fit content over a very large background image never works as planned.  If you increase text size in any browser (Zoom text only, Ctrl+++), your black content spills out of the gray box into the black region below.  Black text on black background becomes invisible.    Your approach works in Print design but fails on the web because web pages need to be flexible.
    Remove your Body background image and notice how your page flows.  A different approach would be to slice your background into sections to create a flexible gray box.
    Example here:
    http://alt-web.com/DEMOS/Image-slices-in-a-CSS-based-layout.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |  Print | Media Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • How to use the mirrored and log shipped secondary database for update or insert operations

    Hi,
    I am doing a DR Test where I need to test the mirrored and log shipped secondary database but without stopping the mirroring or log shipping procedures. Is there a way to get the data out of mirrored and log shipped database to another database for update
    or insert operations?
    Database snapshot can be used only for mirrored database but updates cannot be done. Also the secondary database of log shipping cannot used for database snapshot. Any ideas of how this can be implemented?
    Thanks,
    Preetha

    Hmm in this case I think you need Merge Replication otherwise it breaks down the purpose of DR...again in that case.. 
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Why use Dreamweaver for create web pages

    Hi I am new in Dreamweaver and I want to know why use Dreamweaver for create web pages?

    Twitter
    http://twitter.com/altweb
    Blog
    http://alt-web.blogspot.com/
    Site
    http://alt-web.com/

  • Can bookmarks be protable for multiple computers? Is it an option to log on and use my bookmarks with multiple computers and locations? Thanks

    Can bookmarks be protable for multiple computers? Is it an option to log on and use my bookmarks with multiple computers and locations? Thanks

    Profile is a folder which store all your personal data in a safe place
    * https://support.mozilla.com/en-US/kb/Profiles
    You can use this button to go to the current Firefox profile folder:
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    here explain how to backup profile
    * https://support.mozilla.com/en-US/kb/Backing%20up%20your%20information
    Here explain how to restore it
    *https://support.mozilla.com/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile

  • I have a website for my artwork.  I had a PC and. Now an iMAC.  I've used Dreamweaver to update the website.  I used to go to Filezilla on the PC a upload the updated pages which would then show updated on the internet.  What file like FileZilla should I

    I have a website for my artwork.  I had a PC and. Now an iMAC.  I've used Dreamweaver to update the website.  I used to go to Filezilla on the PC a upload the updated pages which would then show updated on the internet.  What file like FileZilla should I use?

    You can download it here:
    https://filezilla-project.org/download.php?show_all=1
    Click the Source Forge link - make sure you reject offers for any other software during the installation, Source Forge usually will ask you to install other stuff in addition to what you want (Filezilla).
    It works well on Mac.
    Dreamweaver also has built-in FTP functionality if you want to check that out.

Maybe you are looking for

  • Credit card question

    I am trying to remove my credit card from my itunes account. Not sure how to.

  • HT5622 Hi i m geting problem in verification can somebody help me plz

    I m geting problem in verification i have already varified my account but still they ask me u need verification

  • How to use Alias Columns in WHERE CLAUSE

    Hi , I have a query where in there are 2 alias columns, start_date and end_date where in i need to use them in my WHERE clause as start_date < end_date. Please let me know if this is possible. please see the bwlow query SELECT (GREATEST (MIN (a.start

  • Automatic update

    Hello, I have carriedforward the all the g/l balances into the system. But when i am making any entry in to 31st March, 2009 of any g/l e.g. Epx A/c Dr. 1000, Cash A/c Cr. 1000. At that time system is updating the balance for 31st March,2009 but that

  • Installation failed Mac OS X

    I am trying to install LR4 Beta on my Mac OS X 10.7.2 When the setup will write the files there is an unknown error and I have to contact Adobe to resolve this problem Can someone help me with this problem that I can install LR4