• This is so strange. I added an HTML Select and added PHP While statement to a Universal Snippet and it breaks Elementor. If you remove the PHP comments, it breaks Elementor. I do this in an Elementor Single Structure section. See the code below:

    	<form method='POST'>
    		<select name="formLeagueType" id="LeagueType" required>
    				<option value="">Select Your League Type....</option>
    			<?php //while($row1 = mysqli_fetch_assoc($result_LeagueType)):;?>
    			<option value=<?php echo $row1['league_type_id'];?>><?php echo $row1['league_name'];?></option>
    			<?php //endwhile;?>
    		</select>	
    		<input type="submit" name="submitCAP" value="Step 2" Style = "color:white; background-color:blue" required>		
    	</form>
    • This topic was modified 3 years, 2 months ago by ericjs61.
    • This topic was modified 3 years, 2 months ago by ericjs61.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ericjs61

    (@ericjs61)

    I just used an older woody snippet and copied my code to it and now it works.

    The older snippet was published Oct 23rd 2020
    The newer snippet was published Jan 2nd 2022

    Something changed in your updates that broke this option.

    Thread Starter ericjs61

    (@ericjs61)

    I am really getting a little annoyed that one snippet will work and another snippet with the same code will fail. Using the same type of snippet, universal snippet, so I can use PHP and HTML.

    This is getting so inconsistent. Can someone explain this to me?

    Plugin Support Temyk

    (@webtemyk)

    Hello.

    There are errors in your PHP code. For example, an extra semicolon after while.
    The plugin itself only executes PHP code. If there are errors in it, then the site is displayed incorrectly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTML with PHP While statement breaks Elementor’ is closed to new replies.