Results 1 to 3 of 3
  1. #1
    loopsnhoops is offline Member
    Join Date
    Feb 2011
    Posts
    83
    Rep Power
    0

    Default Quotations Syntax Help

    Hey I am trying to print out some php code involving quotations in the code and it is not letting me because the quotations I put around the whole text are conflicting with the inside quotations. This is probably really easy but I am stuck.

  2. #2
    loopsnhoops is offline Member
    Join Date
    Feb 2011
    Posts
    83
    Rep Power
    0

    Default

    This is the string I want to make work.


    Java Code:
    String email = "w/e@test.com";
    	
    	String words = $to = email;
    	$subject = "Test mail";
    	$message = "Hello! This is a simple email message.";
    	$from = "someonelse@example.com";
    	$headers = "From:" . $from;
    	mail($to,$subject,$message,$headers);
    	echo "Mail Sent.";

  3. #3
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    I'm confused, why the mix of php and java code? Try explaining better, but perhaps you are looking to escape the quotes.

Similar Threads

  1. No more syntax error
    By ideyatech in forum Java Software
    Replies: 2
    Last Post: 04-22-2010, 04:20 AM
  2. Syntax in eclipse
    By insectincest in forum Eclipse
    Replies: 1
    Last Post: 04-12-2010, 11:10 AM
  3. Syntax correct?
    By dbashby in forum New To Java
    Replies: 5
    Last Post: 09-22-2009, 06:44 AM
  4. Syntax-Check Your XML
    By gilbertsavier in forum XML
    Replies: 0
    Last Post: 07-17-2009, 07:37 AM
  5. syntax error
    By gabriel in forum New To Java
    Replies: 3
    Last Post: 08-03-2007, 03:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •