doushi7314 2012-09-15 09:56
浏览 61

如何启动URL

Hi Guys have got stuck between a rock and a hard place, I'm currently building a prize type website and want to fire off urls in a form, but for some reason there not working! this is my code logic:

<?php

$id = $logOptions_id;

$title = "";

$firstname = "";

$lastname = "";

$gender = "";

$email = "";

$housenumber = "";

$addressone = "";

$addresstwo = "";

$county = "";

$city = "";

$country = "";

$birthday = "";

$phone = "";

$postcode = "";



$ipaddress = getenv('REMOTE_ADDR');



$sql = mysql_query("SELECT * FROM myMembers WHERE id='$id' LIMIT 1");

while($row = mysql_fetch_array($sql)){

    $title = $row["title"];

    $firstname = $row["firstname"];

    $lastname = $row["lastname"];

    $gender = $row["gender"];

    $email = $row["email"];

    $housenumber = $row["housenumber"];

    $addressone = $row["addressone"];

    $addresstwo = $row["addresstwo"];

    $county = $row["county"];

    $city = $row["city"];

    $country = $row["country"];

    $birthday = $row["birthday"];

    $phone = $row["phone"];

    $postcode = $row["postcode"];

}

?>

And in my html I have this....

<form id="coregOffer" action="path.php" method="post">

<table width="100%" border="0" id="coregTable">

<tr>

<td>

<table width="95%" border="0" align="center" cellpadding="5">

<tr>

<td width="24%" align="center" valign="top"><img src="images/tesco.png" width="212" height="107" alt="Tesco Offer"></td>

<td width="76%" align="left" valign="top"></td>

</tr>

<tr>

<td colspan="2">

<br/>

Accept This Offer?

<input type="radio" value="yes" checked id="yes" onClick=\"location.href='http://www.somesite.com/feeds?&mg_site_id=1&mg_comp_id=1087&mg_terms_and_conditions=on&mg_cid=101&mg_ip=<?php echo $ipaddress; ?>&title=<?php echo $title; ?>&firstname=<?php echo $firstname; ?>&email=<?php echo $email; ?>'\" />Yes

<input type="radio" value="no" id="no" />No

</td>

</tr>

</table>

<table width="95%" border="0" align="center" cellpadding="5" id="coregTable2">

<tr>

<td width="24%" align="center" valign="top"><img src="images/PMOffer.png" width="213" height="108" alt="OfferPlaceholder"></td>

<td width="76%" align="left" valign="top"></td>

</tr>

<tr>

<td colspan="2">

<br/>

Accept This Offer?

<input type="radio" value="yes" checked id="yes" onClick=\"location.href='http://www.somesite.com/public/postlead.php?campaign=438&publisher=1322&adgroup=848&ip=<?php echo '$ipaddress'; ?>&field1=<?php echo '$title'; ?>&field14=<?php echo '$gender'; ?>&field2=<?php echo '$firstname'; ?>&field3=<?php echo '$lastname'; ?>&field4=<?php echo '$addressone';?>&field6=<?php echo '$city'; ?>&field8=<?php echo'$postcode'; ?>&field9=<?php echo '$phone';?>&field10=<?php echo '$email'; ?>&field18=<?php echo'$birthday'; ?>&field20=<?php echo 'now()'; ?>&source=123'\" />Yes

<input type="radio" value="no" id="no" />No

</td>

</tr>

</table></td>

</tr>

<tr>

<td align="center" valign="top">

<input type="submit" id="submit" value="Submit" /> 

</td>

</tr>

</table>

</form>
  • 写回答

1条回答 默认 最新

  • dourong9253 2012-09-15 10:08
    关注

    try this,

    onClick="javascript:window.location.href='http://www.somesite.com/feeds?&mg_site_id=1&mg_comp_id=1087&mg_terms_and_conditions=on&mg_cid=101&mg_ip=<?php echo @$ipaddress; ?>&title=<?php echo @$title; ?>&firstname=<?php echo @$firstname; ?>&email=<?php echo @$email; ?>'" />Yes
    
    评论

报告相同问题?

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测