thomas_xyz Posted December 12, 2012 Share Posted December 12, 2012 i'm trying to send information to the following page but can't seem to do so. this might be a html problem i build an if (isset($_REQUEST[""])) to have one side link and another form. problem is that for the image link i set up, i can't send value to the following page <?phpif (isset ($_REQUEST['code']))$code=$_REQUEST['code'];$phone=$_REQUEST['phone'];?> <html><head><title></title></head><body> <?php if (isset($_REQUEST['code'])) echo "</br> <a href=\"request.php\?code&&phone"><img src=\"../images/button1.png\" onmouseover=\"this.src=\'../images/button1-hover.png\'\" onmouseout=\"this.src=\'../images/button1.png\'\"/></a>"; else echo "form"?> </body></html> I thought all i have to do is add ?code&&phone to the <a href> tag.. what am i doing wrong Please help. Thank you Link to comment Share on other sites More sharing options...
justsomeguy Posted December 12, 2012 Share Posted December 12, 2012 <a href=\"request.php?code=" . $code . " &phone=" . $phone . "\">... Link to comment Share on other sites More sharing options...
thomas_xyz Posted December 12, 2012 Author Share Posted December 12, 2012 thanks! but here's the other problem. when the second page load, all the graphics, divs, and alignments are missing.. i don't get it Link to comment Share on other sites More sharing options...
justsomeguy Posted December 12, 2012 Share Posted December 12, 2012 There might be a PHP error stopping the page. Make sure you have error reporting enabled: ini_set('display_errors', 1);error_reporting(E_ALL); Link to comment Share on other sites More sharing options...
thomas_xyz Posted December 12, 2012 Author Share Posted December 12, 2012 oh ok thanks again! where am i suppose to put those strings? Link to comment Share on other sites More sharing options...
thomas_xyz Posted December 12, 2012 Author Share Posted December 12, 2012 sorry i'm still very new at this Link to comment Share on other sites More sharing options...
justsomeguy Posted December 12, 2012 Share Posted December 12, 2012 Put that code at the top of your PHP code, you want to enable error reporting before any other code runs. Link to comment Share on other sites More sharing options...
thomas_xyz Posted December 12, 2012 Author Share Posted December 12, 2012 it didn't report any errors Link to comment Share on other sites More sharing options...
justsomeguy Posted December 12, 2012 Share Posted December 12, 2012 There's not enough information for me to guess why part of the page is missing, do you have it online? Link to comment Share on other sites More sharing options...
thomas_xyz Posted December 12, 2012 Author Share Posted December 12, 2012 yuphttp://test.dhamilaw.com/?phone=2125551212&code=abc123 Link to comment Share on other sites More sharing options...
justsomeguy Posted December 12, 2012 Share Posted December 12, 2012 There are a couple warnings at the bottom about missing include files. Link to comment Share on other sites More sharing options...
thomas_xyz Posted December 12, 2012 Author Share Posted December 12, 2012 that's for google analytics Link to comment Share on other sites More sharing options...
satishpoul Posted December 12, 2012 Share Posted December 12, 2012 you given url and i dont think there is any problem. all the div's and images are very well displayed. Link to comment Share on other sites More sharing options...
thomas_xyz Posted December 12, 2012 Author Share Posted December 12, 2012 yea that's what i thought too but when i click on the link it shows this Link to comment Share on other sites More sharing options...
thomas_xyz Posted December 12, 2012 Author Share Posted December 12, 2012 (edited) naturally without syntax it would've look like this Edited December 12, 2012 by thomas_xyz Link to comment Share on other sites More sharing options...
thomas_xyz Posted December 12, 2012 Author Share Posted December 12, 2012 never mind i fixed itit's the little "\" got in the way after the request.php all i have to do is remove the forward slash just keep the url to request.php?code=$code&phone=$phone thanks a lot for the help everyone! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now