duanben4771 2013-04-04 12:37
浏览 41

如何使用PHP将关键字传递到登录页面?

I'm using a landing page to redirect to my tracking url, how do I pass the keyword to my landing page which then passes it to my tracking link? Here is what my tracking link ends with:

&keyword={keyword}

I have tried doing http://www.foo.com?keyword={keyword} but no luck.

My landing page has this code:

<?php

header("Location: http://trackinglink.com&keyword={keyword}");

exit;
?>

Help please!!

edit: sorry for not being clear, I'm doing PPC and I need to use a landing page instead of direct linking (tracking url) so I need to be able to pass the keyword from the lander (which I'm gonna give to the PPC network) to my tracking link so I can see what keywords convert.

I need to know how to format the url to pass the keyword and what code to put into the landing page. thanks.

  • 写回答

2条回答 默认 最新

  • douben8492 2013-04-04 12:40
    关注

    either the below, or I am not sure what you've asked at all

    <?php
    
    $keyword = 'location'; 
    
    header("Location: http://foo.com?keyword=".$keyword);
    
    exit;
    ?>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 怎么改成循环输入删除(语言-c语言)
  • ¥15 安卓C读取/dev/fastpipe屏幕像素数据
  • ¥15 pyqt5tools安装失败
  • ¥15 mmdetection
  • ¥15 nginx代理报502的错误
  • ¥100 当AWR1843发送完设置的固定帧后,如何使其再发送第一次的帧
  • ¥15 图示五个参数的模型校正是用什么方法做出来的。如何建立其他模型
  • ¥100 描述一下元器件的基本功能,pcba板的基本原理
  • ¥15 STM32无法向设备写入固件
  • ¥15 使用ESP8266连接阿里云出现问题