Tagged: session_start
-
AuthorPosts
-
December 6, 2018 at 8:48 am #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!
December 6, 2018 at 12:03 pm #1041589This reply has been marked as private.December 11, 2018 at 10:57 am #1043690Hi, Just following up is there any response to this?
December 11, 2018 at 3:06 pm #1043780Hi 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,
VictoriaDecember 12, 2018 at 3:16 pm #1044363Hi 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?
December 14, 2018 at 6:46 pm #1045382Hi AdriaanvR,
The form customization is out of the scope of our support, unfortunately.
Where can we see the lightbox issue?
Best regards,
VictoriaDecember 18, 2018 at 10:01 am #1046772Hi,
- This reply was modified 5 years, 11 months ago by AdriaanvR.
December 22, 2018 at 8:02 pm #1048609Hi,
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,
VinayJanuary 4, 2019 at 1:34 pm #1049980Hi 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.
January 4, 2019 at 3:20 pm #1050001Enabling breadcrumbs solved the issue…
January 8, 2019 at 3:17 am #1051137Hi,
Please could you refer me on where to find the details for customization again.
Which customization?
@loumirak11: Thanks for the info.Best regards,
IsmaelJanuary 8, 2019 at 2:02 pm #1051390Hi Ismael,
Thanks but I found what I was looking for thank you.
January 9, 2019 at 10:27 am #1051695 -
AuthorPosts
- You must be logged in to reply to this topic.