This topic is locked
[SOLVED]

 form has info in it instead of being blank

10/6/2011 6:56:17 PM
PHPRunner General questions
author

I'm useing a custom view as to link to a form
$value = "<a href=\"Plan_Holders_add.php?editid1=".$data["ID"]."\"><font style=\"color:red;font-size:12px;\">".$data["projectname"]." Add Planholder</font></a>";
it work except the form when you click on this link will sometimes be filled with a random planholders info. how do I get it to be blank?

Patti

Sergey Kornilov admin 10/7/2011

I guess you don't need to add ?editid1=... part to the URL. URL should be Plan_Holders_add.php and nothing else.

501398 10/7/2011

I want it to fill in a few things like the project name. But you did remind me that I need to add blank values
I have this in the add page process record values:
//Pass Record values to add page

if (postvalue("editid1")){

$sql = "select Project_Name, Project_Owner from Plan Room where ID=".postvalue("editid1");

$rs = CustomQuery($sql);

$data = db_fetch_array($rs);

$values["projectname"] = $data["Project_Name"];

$values["PlanHolder"] = $data["Project_Owner"];

}

$values["datestamp"] = date("m-d-y h:i");

$values["group"] = "Self_Add";

$values["Company"] = $data[""];

$values["Email"] = $data[""];
Thanks it seems to be working now

Patti