Help please David powers

David,

I use redirection to a personal page on page 515 of The Essential Guide to DWCS3 in the following form: $_SESSION [MM_Username] .php in the field "If the connection is successful.

This does work for me the first time, that loading of the login page. I get a 404 error. However, it I click the back button and try it again it works. I have a hypothesis that the Session variable is used before the username, it draws from the DB, but I don't know enough to be sure. I tried to move the lines of variable assignment and he screwed up royally.

This is performed on a live server. Below is my code that works if I hit the back button. Any help would be greatly appreciated.

Thank you.

Glenn

<? php require_once('.. / Connections/connatkinsdb.php');? >
<? PHP
If (! function_exists ("GetSQLValueString")) {}
function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

$theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

Switch ($theType) {}
case 'text ':
$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
break;
case "long":
case "int":
$theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
break;
case "double":
$theValue = ($theValue! = "")? « " ». doubleVal ($TheValue). "" "": "NULL";
break;
case "date":
$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
break;
case "set":
$theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
break;
}
Return $theValue;
}
}
? >
<? PHP
Validate request to connect to this site.
If (! isset {})
session_start();
}

$loginFormAction = $_SERVER ['PHP_SELF'];
If (isset($_GET['accesscheck'])) {}
$_SESSION ['PrevUrl'] = $_GET ['accesscheck"];
}

If (isset($_POST['username'])) {}
$loginUsername = $_POST ['username'];
$password = $_POST ["pwd"];
$MM_fldUserAuthorization = "admin_priv";
$MM_redirectLoginSuccess = "$_SESSION [MM_Username] .php ';
$MM_redirectLoginFailed = "... / Area/loginfail.php of the user;
$MM_redirecttoReferrer = false;
@mysql_select_db ($database_connatkinsdb, $connatkinsdb);

$LoginRS__query = sprintf ("SELECT name from user, pwd, admin_priv FROM users WHERE username = %s AND pwd = %s",
GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

$LoginRS = mysql_query ($LoginRS__query, $connatkinsdb) or die (mysql_error ());
$loginFoundUser = mysql_num_rows ($LoginRS);
If {($loginFoundUser)

$loginStrGroup = mysql_result($LoginRS,0,'admin_priv');

Declare two session variables and assign them
$_SESSION ['MM_Username"] = $loginUsername;
$_SESSION ["MM_UserGroup"] = $loginStrGroup;

If (isset($_SESSION['PrevUrl']) & & false) {}
$MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];
}
Header ("Location:".) $MM_redirectLoginSuccess);
}
else {}
Header ("Location:".) $MM_redirectLoginFailed);
}
}
? >
? >

GEAtkins wrote:
> I use redirection to a personal page on page 515 of the essential
> Guide of DWCS3 in the following form: $_SESSION [MM_Username] .php in the "if".
' > connection is successful "field.

Thank you for reminding me. There is a mistake in the book, I
discovered during the Christmas period, if you forgot to send to friends of ED
for the errata page.

Do not use $_SESSION [MM_Username]. Use $loginUsername instead. He then worked.

--
Adobe Community Expert David Powers
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Tags: Dreamweaver

Similar Questions

  • Seek help from David powers once again, please

    David,

    I am using your drop-down list of the script files page 197 of PHP Solutions. I have adapted successfully to read a list of PDFs of my subdirectories. The list of files is not on a base of data, but read in directly from a subdirectory.

    However, for the life of me, I can't understand how actually do one load the PDF file. I tried every syntax/combination in the action property that I can think of with no luck.

    What I would do is either: 1) select the PDF in the drop down menu and then have it load in the browser or the 2) select the PDF fromt the drop down then press a button 'Download' and the file to load in the browser.

    Can you please help me understand this?

    Thanks in advance. Here is my code so far.

    Glenn

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
    "< html xmlns =" http://www.w3.org/1999/xhtml "> "
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"
    drop down Image < title > < / title >
    < / head >

    < body >
    < form id = "form1" name = "form1" method = "post" action = "PDF files / <?" PHP echo $_POST ['pix'];? "> .php" >
    < p >
    < select name = "pix" id = "pix" >
    < option value = "" > select a picture < / option >
    <? PHP
    include('Includes/buildFileList5.php');
    buildFileList5 ('PDFs');

    ? >
    < / select > < label > < / label >
    < /p >
    < p >
    < label > download
    < input type = "submit" name = 'Download' id = 'Download' value = "Submit" / >
    < / label >
    < /p >

    < / make >
    < / body >
    < / html >

    GEAtkins wrote:
    > Now, I get this error in download.php.
    >
    > Parse error: syntax error, unexpected T_STRING in
    > C:\xampp\htdocs\Garrison\download.php on line 21

    It's the kind of mistake that you should be able to diagnose quickly by
    looking at the code coloring. The error is mine, because I was
    just by typing in a News Reader, but the cause becomes immediately visible
    in Dreamweaver code view, because several lines after the leak of slash
    became red. This means that the following lines are treated as
    part of the chain. A backslash before a single quote, it turns
    in a quotation mark in a string.

    The answer is to escape the backslash:

    > $filepath = ' C:\xampp\htdocs\Garrison\PDFs\'.$getfile;

    Should be this:

    $filepath = ' C:\xampp\htdocs\Garrison\PDFs\\'.$getfile;

    You can also use forward slashes for the separator of directory like this:

    $filepath = ' C:/xampp/htdocs/Garrison/PDFs/'.$getfile;

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Help with Adobe Dreamweaver tutorial (by David Powers)

    When you use Dreamweaver tutorial Adobe (create your first website by David Powers), I met my only problem to step 18 of the fourth part.  The insctruction is as follows:

    "Once you added properties to all the three rules, press F5 or click once in Design view to refresh the view.

    Look at what happened to the text. The h2 title has turned blue; the h3 title has been resized and now fits on a single line; and the text of the paragraph has been reduced in size (see Figure 16). »

    My problem is that changes to the text of the said does not happen.  Step 17 is a code to change the text as described above, and I entered the text, verbatum, checked several times (it was entered correctly).

    Here is a link to the fourth part tutorial): http://www.Adobe.com/devnet/Dreamweaver/articles/first_website_pt4.html

    I had no problem until then and have done everything that the tutorial has loaded.  It is extremely detailed and everything that preceded eighteen number should be correct.

    Is that what the Cill problem someone please suggest me?

    Thank you.

    hello020 wrote:

    I entered the text, verbatum, checked several times (it was entered correctly).

    If it has been entered correctly, it will work as described. So, obviously there's a mistake somewhere. But as John pointed out, we must see what you've done to identify the problem.

    It would also help if you describe what happens. Say that something is not working is only half of the story. If something unexpected happens, that often gives a clue as to where the error is located.

    Common errors in the CSS are mix upward of colons and semicolons (or them leaving aside). You should also check that your opening and closing braces match. In addition, the color used in one of the rules is #00b4e1 . The first two characters after the sign of hash are zeros, and the last character is the number one. It's small errors that can make a big difference.

  • Code PHP/mySQL help please

    Hi all

    Thanks to David Powers fab tutorial I am now well on my way to my first dynamic website with PHP/mySQL competeing, (thanks to David ), but I'm stuck on one particular area... can someone please help?

    I know that the mySQL database using the YYYY/MM/DD format for dates, and that's fine. I set how to display in a format more regular (for example, September 1, 2011) for my application, but I'm stuck on how to convert a more regular formatting date is entered by the user of the site to mySQL format.

    Ideally I would like to enter users or tell the 09/01/11 or 09/01/11 (or something in that sense, to be recognized and displayed on the registration form, but to have a back-end service that converts the data to the format mySQL. I think I'm reading a lot of posts forum who say that this is possible, but unfortunately I can't quite understand how or where the code should sit. Someone would have is not afraid to take a look at my page of codes to identify actually what I need to insert and also as important... where!

    Is it possible to have a miniature calendar date picker that can be built next to the entry field in the right format and date to make sure that a valid date is entered along these lines? Where this could be extracted?

    Thanks for help if necessary

    Mark

    GetSQLValueString (date('Y-m-d'), strtotime($_POST['date']), 'day'),

    Make this line looks like this-

    GetSQLValueString (date ('Y-m-in, strtotime($_POST['date'])), 'day'),

    This was my mistake - sorry.  The MySQL data type DATE should be in YYYY-MM-DD format.  If this is the data type of this field "date", and then copy the following code should work.

  • The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP by David Powers

    The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP by David powers:

    This book would help me learn more about Spry and Ajax and how applications may be lodged with them, if I have my e-commerce site works on a compiled C code cart (ShopSite) but supports scripts PHP server-side or is - this only for shopping carts based on PHP itself (like X-Cart)?

    I'm not sure. Someone please let me know if I can buy this book. Thank you.

    ahsenabro wrote:
    > 1. What I need to be a developer/programmer to learn from this book or
    > can a savvy entrepreneur can also get some gems out of it and direct sound
    > programmer?

    You don't need no prior knowledge of PHP or Ajax, but you must
    know the basics of HTML and CSS. As I say in the introduction, "You."
    don't need to be an expert, but do not have a curious mind.
    It teaches the basics of web site design, or he's trying to list
    each unique feature in Dreamweaver CS3. There are many other books
    to fill this gap. However, by working through this book, you will gain a
    in-depth knowledge of the most important features of Dreamweaver.

    > 2. I am interested in buying this book especially to implement cool Ajax/Spry
    > stuff on my e-commerce site. I wonder about PHP, because the content of the book
    > mentions making a PHP site. Now I realize this book isn't on purchases
    > carts, but the Ajax/Spry stuff can be implemented on e-commerce sites, right?

    The book provides detailed coverage of the features of Spry 1.4
    Dreamweaver CS3, which can be applied to any site. With minor
    adjustment, you can also use Spry 1.6. It is important to realize,
    However, the features of Spry/Ajax in Dreamweaver CS3 * cover of no
    asynchronous requests to the server. The ability to communicate
    asynchronously with the server has been added in Spry 1.6. If it has
    the asynchronous server calls and answers you are looking for, your
    programmer will need to dig into the documentation for Spry 1.6 on the
    Adobe Labs site and manually code it.

    The Spry features covered in the book are Spry, Spry UI widgets effects
    (menu accordion, tabbed and folding panels), Spry
    Widgets of validation and Spry XML data sets.

    > I just want to know if I can learn and implement Ajax/Spry apps on my
    > HTML/CSS-based simple pages, on a server that allows PHP scripts on the server side
    > but the pages themselves are not with the .php extension. This book is still going
    > apply?

    Yes. All Spry techniques can be used on any web page. This is not
    you have to be a PHP one.

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • I need help updating my graphics card! Help, please!

    Hello, I need help. I have the HP ENVY 700-214, I absolutely love it.

    If there was one thing I could change, however, it would be the graphics card. Which brings me to my question.

    What is the best graphic card compatible with desktop HP ENVY 700-214? I've got DirectX 11 and Intel HD graphics card. I want to get a GeForce graphics card, but I don't want to spend my money on evil. Help, please.

    JayrollsJay, welcome to the forum.

    Here is a small but powerful video card that should work on your computer.  It requires only a 300W power supply (PSU) with no extra power connector.  Read the reviews to see what users have to say about it.

    Please click on the Thumbs up button '+' if I helped you and click on "Accept as Solution" If your problem is resolved.

  • Help please! Buddy's computer will start

    My boyfriend is out of town and I was using his computer Compaq Presario V5000.  I went to answer a phone call and instead of shutting down the computer, I simply closed the lid, which normally into hibernation system until the lid is reopened and it starts up.  This time; However, when I open the cover, it makes a noise like it's going to start up and the power button lights up, so I don't know it is powered, but then nothing happens after that.  I had a few occasions where it has been slow to start after the cover was closed, but after a few seconds, the blue wireless light would flash and the system would start up.  This time it's right there and I hear the rotating CD drive from time to time, but nothing happens on the screen.

    I tried the HP troubleshooting tips and I reinstalled the memory and even tried to remove the CD-Rom drive and replace it, but I keep getting the same results!  I'm desperate to try to get this resolved before he returns to the city... I won't be responsible for it's broken! Even if I swear that I have nothing to him...

    Help, please!

    Any time...

    Sorry for the acronyms... NB is portable.

    No matter what model over two years is not worth fixing... data can be transferred from the hard drive disk (or HARD drive) on the new computer and with prices so low these days and a longer warranty on top, for the same price... Yes, you can get a much better system.

    The system has had more problems that what you posted... only it is reached a final point.  Just a coincidence that it happened when you were using it as you have always had.

  • New Win 7 computer cannot access the IP address of the network printer. Help, please.

    Greetings,

    -----------------------------------------------------------------------------------------------------------------------

    UPDATE: we have found the solution to this problem, we, and that I posted an explanation as well as two ways to solve the problem in my 2nd post on May 5, 2015. Scroll down to it for the solution. Unfortunately, Microsoft does not allow the OP to mark one of their own messages as 'the Answer' so this thread continues to be listed as "no answer" when he actually answered me.

    -----------------------------------------------------------------------------------------------------------------------

    The original message follows...

    We cannot sign a new Win 7 (64-bit) computer to a printer ethernet established in our local network of 'working '. We have reached the limit of our troubleshooting skills and expertise assistance.

    Our Local network
    ------------------------
    The printer is a Dell 5100cn workgroup laser that is connected via an ethernet cable to a 10/100 workgroup switch 5-port Cisco/Linksys. The switch is connected to the built-in cable Motorola modem / 4 port gigabit router / WiFi access point. There is no server between the printer and the network.

    Other computers on the network run also Win 7 and have no trouble seeing and using the printer. Some computers are connected via a gigabit ethernet cable to the router Motorola. Other computers connect wireless WiFi (once again, by the same Motorola device). All computers, including the new ones, are attributed to the same workgroup.

    The printer has a static IP address. It also has an integrated Web page accessible within the network via a browser to view the status of the printer. All previous computers can view the status of the printer Web page by entering its IP address in a browser.

    The new Win 7 computer
    --------------------------------
    At the Windows command prompt, we successfully ping the IP address of the printer and received a return signal. However, we are unable to connect to the IP address of the printer (and status Web page) with a browser. And we cannot find the printer when install us the printer driver. We have tried to turn off the Windows Firewall and it did not help.

    When we install the driver, move us as a 'local' printer and create a new "Standard TCP/IP Port" for her. We enter the static IP address of the printer and name the port. Define us the Protocol to "LPR", enter the name of the queue ("lp") and activate SNMP State with name of the 'public' community and the index "1". These settings have worked very well with our previous computers.

    When the time comes to 'choose printer', we select 'have disk... '. ' and use the Dell 64-bit for this printer driver. But it does not work and do not print a test page. We even tried to install the printer as a 'network' printer driver, but it does not, either. In addition, the 'local' method always seemed to work best in the past.

    The new computer has no harm to see other computers and devices on the network. For example, there is a NAS connected to the same switch Cisco/Linksys like the printer and the computer can access the NAS via its static IP address. The new computer can also access the internet. He can't use the IP address of the printer. We even tried to change the address IP of the printer, but that did not help either.

    Despite the fact that the work - the network troubleshooter Windows command prompt ping indicates that the printer is not responding. What do we lack? Help, please.

    Greetings,

    I hope that this will be our last post on this subject. We have discovered the source of the problem and can offer two 'fixed' in case someone else runs into the same situation.

    With the help of MSConfig and a process of elimination, we have disabled non-Microsoft services that were running on the computer until we discovered that "Qualcomm Atheros Killer Service V2" was the source of the problem.

    Explanation

    ----------------

    Our new Win 7 computer contains a communication module ethernet/WiFi/Bluetooth e2200 Qualcomm Atheros. The manufacturer provides a '' Killer Network Manager '' for this system. Its purpose is to monitor and control the flow of data over a network connection in order to optimize for. For example, the user can choose to give the program A high priority and program-B low priority. This ensures that the program-A is less lag in the network traffic.

    The primary market for this function, so far, has been the online game (where the name of 'Killer'). It allows players to channel the bulk of the bandwidth available to their game and away from other programs and services that are running at the same time. A response faster online gives the player the advantage it needs to get "kill him" before someone else.

    This system of control of bandwidth has interfered with data packets of return of our network, clearing communication between our computer and our printer printer.

    Difficulty 1

    --------------

    The simplest solution for us was to disable 'Qualcomm Atheros bandwidth control' for the ethernet NIC that has been accomplished by going to: Windows Control Panel > network and Internet > Network and Sharing Center > change the settings of the card (in the sidebar). Then we clicked on our connection to the LAN (our NETWORK ethernet card) and select the 'Properties' command Finally, on the Networking tab, we have disabled 'Qualcomm Atheros control bandwidth' and clicked 'OK' button to close.

    All that was needed after that was a quick restart and we were able to access our printer even with the killer Network Manager and functioning of Qualcomm Atheros Killer Service V2.

    Either way, we left the control function of bandwidth enabled for wireless (our) network connection because we do not plan on using this network printer when the computer is untethered to ethernet.

    Difficulty 2

    --------------

    If you don't want the killer running Network Manager on your computer, you may be tempted to uninstall. Do not! Uninstall will also uninstall the drivers needed for your ethernet, WiFi and possibly your Bluetooth as well. We heard that some users have communicated with Qualcomm and were able to coax, on their part, the necessary drivers comm without luggage "Killer". But you don't need to do it, either.

    All you need to do is: (1) remove the 'Killer Network Manager' of the '"start up" folder of the start menu of Windows (under "programs") and (2) using MSConfig, uncheck "Qualcomm Atheros Killer Service V2" under the ' Services ' section. Then reboot and you're good to go. The killer Network Manager and his service will not work.

    Moreover, the reason for which we did not chose this method, ourselves, is because we see one deserves that available Killer Network Manager so that we can block network traffic to select programs. Solution 1 converts this easy thing because the Ethernet bandwidth control can be quickly activated again if she is ever desired. And we're leaving it enabled for our WiFi.

    Best regards, David-EH

  • I bought a picture, under images under license there still have the watermark on it. Help, please

    I bought a picture, under images under license there still have the watermark on it. Help, please

    Hi Lisa,

    If you look at these images under license on the website of stock, they will appear as a watermark. However, if you save on the office/MyLibrary, then open, you should not see the watermark.

    Let me know how it goes.

    ~ David

  • Lightroom CC hangs at each export.  Help, please

    I recently upgraded to Lightroom CC and updated my video card.  Now, whenever I export, regardless of settings, my computer crashes (I think) when exporting.  It will export usually of 10 to 15 images and then crash.  It does not crash on specific images.  If I export even twice, it will crash on a different image each time.  I say that I "think" it crashes, because the screen turns off, then mouse stops working, but it seems that the computer is turned on and windows is not connect a crash.  There is nothing interesting in the system logs.  I disabled all plugins, and I tried activating / deactivating the GPU settings.  I am at a loss on what to do next to help out.  Help, please!

    I think I solved my problem, and it was not lightroom.  It was my PC.  I ran Prime95 to stress test my CPU, and I got exactly the same problem, computer off without reason.  That tells me that this problem is independent of LR.  It seems that the export of LR has been overload my CPU and PC downtime.  Maybe overheating.  So, I played around with the BIOS settings and managed to get a working config... until now.  I also replaced my power, thinking that the old 400W one was not powerful enough for my new video card.  For me, I think it was actually the BIOS config, that solved the problem.  I hope help you.

  • How can I display the Tamil fonts in Adobe CS6? Help, please...

    Hello

    I create a document in Tamil. Normally, I type in Google document. Then copy and paste into Word. It works perfectly.

    Now I create a poster in Adobe illustrator. I type in google and pasted into Notepad. It works perfectly.

    When I copy and past in Adobe Illustrator the police does not appear correctly.

    I have urgent need. Can someone help?

    I did a search on Google and found the following. But I am unable to find similar to Adobe Illustrator CS6 settings

    Thank you Ellis House. The issue has been resolved. Message from David that you pasted above was really helpful.

    In the preferences-> Type-> the text engine options I selected 'Middle East', unknown world that was "Southeast Asia", after the Tamil letters display correctly. Thank you very much...

    I saw another post that says that I need to enable view source option.

    http://helpx.Adobe.com/Illustrator/using/Indic-support.html

    Unfortunately, I don't have any option informant. My screen is different

    screenAdobeI.PNG

    I have a few Tamil Born installed. When I tried to change the Tamil police source, it no longer works.

    I have another font called Larson. When I changed the character displayed in Tamil Latha police, but all spelling badly shot in Tamil.

    Help, please. Enjoy.

    Thank you

    Notes; I am new to Adobe illustrator, so if I made a stupid mistake, my applogies.

    You are out of luck in your version. Support for the Tamils was added in CC

    http://helpx.Adobe.com/Illustrator/using/Indic-support.html

    You could try

    http://www.WinSoft-international.com/en/news/ScribeDOOR-CS5.html

    (also available for CS6)

  • same old same old: the appeal of David Powers

    It was interesting to watch and read comments recently about the tangle of DW with database-driven sites.

    I use DW CS6 (12.03) Mac with Mountain Lion and have installed MAMP and runnning.

    I'm done religiously tute David Powers here.

    Question:

    Why am I getting her "dynamically files cannot be resolved due to an internal error" when I go to the page with the Live button?

    The page displays empty... Laughing out loud

    Can someone tell me the possible cause?

    I wonder why Adobe has left this for 3 years when (after all updates) the message is still displayed and development stops.

    Are the defective tutorial files, or am I missing soemthing?

    David: can shed you some light on this please?

    In order to track the problem, I created a new site on my MacBook Air running Mountain Lion and followed the steps in the tutorial, using a new download of the files. Everything worked exactly as planned.

    After finishing, I checked the version of Dreamweaver CS6. It turned out to be the original 12.0. I tried to apply the update 12.03, but could not. So, I uninstalled and downloaded again CS6. However, because I have a subscription to creative cloud, when I have updated the program, he maintained at 12.2.

    Also, I copied your code of the forum and who was running. It also displays correctly.

    I don't know if there is a problem with CS6 12.03, but it seems highly unlikely because the files work fine in Dreamweaver CC as well, even if I do not have the server behavior extension installed.

    The unusual thing only I see in your screenshots is the wildcard: php_test in the privileges of phpMyAdmin. However, we should not make a difference because Dreamweaver must clearly connect seamlessly to your database.

    The only other thing I see as a possible cause is the server parameter in the site configuration dialog box. Make sure that the check box is selected, not away.

  • Contact Page and PHP: help, please.

    I created a page of contact within Flash using the following actionscript code:
    Stop();

    var senderLoad: LoadVars = new LoadVars();
    var receiveLoad: LoadVars = new LoadVars();

    sender.onRelease = function() {}
    senderLoad.theName = theName.text;
    senderLoad.theEmail = theEmail.text;
    senderLoad.theAddress = theAddress.text;
    senderLoad.thePhone = thePhone.text;
    senderLoad.theMessage = theMessage.text;
    senderLoad.sendAndLoad (" http://mydomain.com/mailExample.send.php", receiveLoad, POST);
    }

    And with the next PHP in Dreamweaver:

    <? PHP

    $to = "[email protected]."
    $subject = "sending the form of contact";
    $message = "name:". "." $theName;
    $message = "\nAddress:". "." $theAddress;
    $message = "\nPhone:". "." $thePhone;
    $message. = "\nEmail:". "." $theEmail;
    $message. = "\n\nMessage:". "." $theMessage;
    $headers = "from: [email protected]";
    $headers. = "\nReply-To: $theEmail";

    mail ($to, $Subject, $message, $headers);

    ? >

    My problem is that only phone and e-mail are sent to my to: address. I don't know why, two only entered send while others are not. Any help would be appreciated!

    Thank you
    Aaron

    Amyrs wrote:
    > $message = "name:". "." $theName;
    > $message = "\nAddress:". "." $theAddress;
    > $message = "\nPhone:". "." $thePhone;
    > $message. = "\nEmail:". "." $theEmail;
    > $message. = "\n\nMessage:". "." $theMessage;

    The first three lines above crash the other. You must use
    the combined concatenation operator (. =) for the second and subsequent
    lines.

    --
    David powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • Is this a problem re CONCAT: David Powers, or a problem of magic quotes...

    I tried to understand this with the posts (and some info on the site of David, etc.), and I can't seem to understand the real problem.

    I'm working on a tutorial and I can't know if the error message is correct and this is an incorrect encoding inserted by DW (and if so, I can't understand what it takes to correct) or

    If there is a problem with DW8.0.2 like what will fix the fix that seems so hard to get, or

    If this goes in the direction of an example of why magic quotes must be turned off and if so, where and how can I turn off the correct code, and if not, how could it be properly corrected?

    Here is the error message:
    Parse Error: parse error, unexpected '=' expected ', 'or')' in < dittos > on line 34.

    Here's the code that reference:
    32 $Search_rsSearch = "abc";
    33 cases (isset(#txtSearch#)) {}
    34 $Search_rsSearch = (get_magic_quotes_gpc())? #txtSearch #: addslashes(#txtSearch#);
    35}
    36 @mysql_select_db ($database_dorknozzle, $dorknozzle);
    37 $query_rsSearch = sprintf ("SELECT * FROM EmployeeStore WHERE ItemName AS CONCAT('%%', %s,)")
    (') ", GetSQLValueString ($Search_rsSearch,"text"));
    38 $rsSearch = mysql_query ($query_rsSearch, $dorknozzle) or die (mysql_error ());
    39 $row_rsSearch = mysql_fetch_assoc ($rsSearch);
    40 $totalRows_rsSearch = mysql_num_rows ($rsSearch);

    I use php4.4.4, mysql5.0.24, apache2.2.3

    Thank you
    Jeff G.

    xViPERed wrote:
    > If there is a problem with DW8.0.2 like what the software fix that
    > seems to be hard to get set,.

    That will fix the part of your problem, but the error is caused by something
    Another thing:

    > Here is the error message:
    > Parse Error: parse error, unexpected '=', expected ","or")" in
    > on line 34.
    >
    > Here is the code it refers:
    > 32 $Search_rsSearch = "abc";
    > if 33 (isset(#txtSearch#)) {}
    > 34 $Search_rsSearch = (get_magic_quotes_gpc())? #txtSearch: #
    > addslashes(#txtSearch#);
    > 35}

    # is one of the characters used to comment on the part of a PHP script. I have
    think you have received it in the Dreamweaver Help files, which
    damage especially on this point. The show the runtime value
    expression as #formFieldName #, which isn't a ColdFusion, PHP model. You
    need to replace #txtSearch # with something like $_GET ['search'] or
    $_POST ['search'].

    What makes matters worse, is that the code inserted by 8.0.2 without the
    fix is also incorrect. Line 34 should be something like this:

    $Search_rsSearch = $_GET ['search'];

    Line 37 is also wrong.

    > 37 $query_rsSearch = sprintf ("SELECT * FROM EmployeeStore ItemName WHERE AS")
    > CONCAT('%%', %s,)
    (' > ' %%') ", GetSQLValueString ($Search_rsSearch,"text"));

    It should be this:

    $query_rsSearch = sprintf ("SELECT * FROM EmployeeStore WHERE ItemName")
    LIKE "%s", GetSQLValueString ('%'. $Search_rsSearch.) '%', 'text'));

    --
    David powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • After my 10 updated iOS even if I am connected to view the content I have cloud and iCloud when I try it asks me to put in place when already established sound upward. Help, please

    After the last update of iOS10. Even though I am connected to iCloud when I try to display the content he asks me to implement the iCloud. Can anyone help please.

    Try to perform a restart- restart your iPhone, iPad or iPod touch - Apple Support

Maybe you are looking for

  • Separate homepage configurations

    Greetings,I create two distinct configurations of Firefox. When I open each individually, they work perfectly. However, when it is open, and then I opened the other, it becomes a mirror of the configuration that is already open. Y at - it a setting o

  • cover the existing connections expanded directory structure

    Hi all. I am merging two iTunes use directories of media on a much larger storage than before. The directory more recent, that I used on my MacBook Pro for many years, is full of AAC files. The directory is older, that I use for backup, is filled wit

  • to access multiple data items SV of DataSocket?

    Hi people. The doc that existed for this, I think, 6048 # seems to be 404. Direct me to the new, please! I need to get a the entire structure of the SV, as 200 data elements (no tables, a few short strings, ints and floats of the balance) once per se

  • B1-850 Iconia, a 8 flashes acer logo screen then off continually. Will not power off / reset

    Iconia a b1-850 8 my son continues to blink from the acer logo screen then off continually. Attempted to maintain the power button / stop to + 30 secs and also tried hard reset, but nothing works. Do not cut keeps blinking in and out. Can someone adv

  • I get a BSOD ntkrnlpa on the computer.

    SP2 of Windows Vista (Home Basic)1 GB OF RAM This problem started a week ago: Whenever I start my PC, it starts in Windows, but before Windows can load entirely, it blue screens and restarting the computer, on this second attempt charges Windows and