Jump to content
Sign in to follow this  
thomas_xyz

can't send html link with php value from isset echo to next page

Recommended Posts

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

Share this post


Link to post
Share on other sites

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);

Share this post


Link to post
Share on other sites

Put that code at the top of your PHP code, you want to enable error reporting before any other code runs.

Share this post


Link to post
Share on other sites

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!
  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...