1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Help With Correct Syntax? Please

Discussion in 'PHP' started by mattheww, Oct 29, 2008.

  1. #1
    Hello

    I need a little help wuth the correct syntax for a for a wordpress plugin.
    The creator if the plugin said to add this line...

    <input type=”hidden” name=”entry_category” value=”‘.$_GET['cat'].’”>
    Code (markup):
    after this
    $page.=’<form method=”POST” action=”" name=”entryform”> 
    Code (markup):
    into this
    $page.='<form method="POST" action="" name="entryform">
    		<table>'.$Fields.'
    		<tr align="left"><td><b>Website URL:</b></td><td><input type="text" name="entry_url" value="http://"></td></tr>
    		<tr align="left"><td><b>Website Title:</b></td><td><input type="text" name="entry_title"></td></tr>
    
    		<tr align="left"><td valign="top"><b>Description:</b>'.$Tags.'</td><td><textarea name="entry_description" rows="3" cols="35"></textarea></td></tr>';
    Code (markup):
    I tried but I just get a syntax error for the added line... any help would be greatly appreciated!
     
    mattheww, Oct 29, 2008 IP
  2. keyaa

    keyaa Peon

    Messages:
    137
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The quotes got messed up.

    This should work:

    
    $page.='<form method="POST" action="" name="entryform">
    		<input type="hidden" name="entry_category" value="'.$_GET['cat'].'">
    		<table>'.$Fields.'
    		<tr align="left"><td><b>Website URL:</b></td><td><input type="text" name="entry_url" value="http://"></td></tr>
    		<tr align="left"><td><b>Website Title:</b></td><td><input type="text" name="entry_title"></td></tr>
    		<tr align="left"><td valign="top"><b>Description:</b>'.$Tags.'</td><td><textarea name="entry_description" rows="3" cols="35"></textarea></td></tr>';
    
    Code (markup):
     
    keyaa, Oct 29, 2008 IP
  3. mattheww

    mattheww Well-Known Member

    Messages:
    377
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Thank you, Thank you, Thank you!!!

    You made my day!
     
    mattheww, Oct 29, 2008 IP
  4. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #4
    notice the ” should be " instead
     
    ads2help, Oct 29, 2008 IP