mrherman Posted May 22, 2012 Share Posted May 22, 2012 This works: form action="http://localhost/mysite/css/screen.css" method="post"> This does not work: <?php $link_1 = "http://localhost/mysite/css/screen.css" ; $link_2 = '"' . "http://localhost/mysite/css/screen.css" .'"' ; ?> <form action=<?php echo $link_1;?> method="post"> <form action=<?php echo $link_2;?> method="post"> Why do neither of the PHP variables work? Thanks! Quote Link to comment Share on other sites More sharing options...
Drummin Posted May 22, 2012 Share Posted May 22, 2012 Missing the quotes. <form action="<?php echo $link_1;?>" method="post"> Quote Link to comment Share on other sites More sharing options...
mrherman Posted May 22, 2012 Author Share Posted May 22, 2012 Well, thank you very much! I tried everything BUT that! Quote Link to comment Share on other sites More sharing options...
Jessica Posted May 22, 2012 Share Posted May 22, 2012 I have to ask why you're having a form post to a .css file? Quote Link to comment Share on other sites More sharing options...
mrherman Posted May 22, 2012 Author Share Posted May 22, 2012 Well, actually, in reality I'm not. See, none of my "variable links" were working -- form, redirection, etc. -- and I couldn't figure it out. So, to illustrate my error on the forum, I just copied and posted a link, which happened to be a reference to the CSS file. I didn't even notice that I had done this. Good catch! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.