Tagged: 

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1041547

    I posted the following code in a code block on a page on my site. I tested the code and it seems fine however it won’t work on the page at all. When I check my page source then the code comes out red for some reason?

    Not sure if I’m doing something wrong but basically all I need to do is take the filter results and auto populate my contact from. I tried this simple code just to make sure it works then I was planning to change it with my variables etc.

    Perhaps you know of a better way that I can carry along the filters on my shop to my contact/get quote page. If so then please do tell, I will happily use that rather.

    Code for page one:

    <?php
    // Start the session
    session_start();
    ?>
    <!DOCTYPE html>
    <html>
    <body>
    
    <?php
    // Set session variables
    $_SESSION["favcolor"] = "green";
    $_SESSION["favanimal"] = "cat";
    echo "Session variables are set.";
    ?>
    
    </body>
    </html>

    Code for page 2:

    <?php
    session_start();
    ?>
    <!DOCTYPE html>
    <html>
    <body>
    
    <?php
    // Echo session variables that were set on previous page
    echo "Favorite color is " . $_SESSION["favcolor"] . ".<br>";
    echo "Favorite animal is " . $_SESSION["favanimal"] . ".";
    ?>
    
    </body>
    </html>

    I tried taking out the tags, pasting the start session in the header (not recommended I know), it always just reads red and echos nothing!

    #1041589
    This reply has been marked as private.
    #1043690

    Hi, Just following up is there any response to this?

    #1043780

    Hi AdriaanvR,

    Not sure you can do that in a code block, here is a thread for you to consider:

    Please refrain from bumping or replying to your own thread because it gets pushed back to the end of the queue and moderators won’t be able to provide a response immediately. Please be patient while we go through the rest of the queue. Thank you for your understanding.

    Best regards,
    Victoria

    #1044363

    Hi Victoria,

    Thanks, Could you recommend or suggest a way that I can take my filters through to my contact form to auto populate it, I want to avoid having the visitor fill in stuff twice :)?

    Also when I select Big image only, other images can be accessed via lightbox in a gallery’s gallery style it still shows a large image with smaller images underneath. Any reason as to why it;s doing this?

    #1045382

    Hi AdriaanvR,

    The form customization is out of the scope of our support, unfortunately.

    Where can we see the lightbox issue?

    Best regards,
    Victoria

    #1046772

    Hi,

    • This reply was modified 5 years, 11 months ago by AdriaanvR.
    #1048609

    Hi,

    Please elaborate on the issue, what exactly are you referring to?

    The link you provided does not have anything that mention specials please share the exact link to the page where we can see the issue.

    Best regards,
    Vinay

    #1049980

    Hi Vinay,

    It seems to be sorted, perhaps the updated cleared things or something. Apologies for wasting your time.

    Please could you refer me on where to find the details for customization again.

    Thank you in advance.

    #1050001

    Enabling breadcrumbs solved the issue…

    #1051137

    Hi,

    Please could you refer me on where to find the details for customization again.

    Which customization?


    @loumirak11
    : Thanks for the info.

    Best regards,
    Ismael

    #1051390

    Hi Ismael,

    Thanks but I found what I was looking for thank you.

    #1051695

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.