[SOLVED] Â Pass values to another table |
10/27/2015 7:51:57 AM |
PHPRunner General questions | |
![]() I have a table with a field set to custom (fldcategory) . I have this code in the custom field ( view as ) |
|
![]() |
lefty author 11/13/2015 |
I have a table with a field set to custom (fldcategory) . I have this code in the custom field ( view as ) $value = "<a href='Book_Display_add.php?&fldcategory='".$data["fldcategory"]."'&fldavail='".$data["Pos"]."'>Book This Display</a>"; I have both default values on the add page to be $_REQUEST["fldcategory"] for fldcategory field and $_REQUEST["Pos"] for fldavail field. ( fields are same values in main table as in dropdowns on other table dropdowns ) When I click on the link to the add page in other table the fields do not get filled. The URL looks like this when clicking hyperlink. http: disregard this so link does not show //www.mywebsite.com/output/Book_Display_add.php?&fldcategory= NOTHING HERE Also tried without & in url and only one field but same issue just fldcategory= Nothing here . If I manually type in the url with values on the add page as a test the two dropdowns fill in. These fields are dropdowns on the add page fldcategory is the first dropdown and fldavail is dependant on fldcategory. Is this why they won't fill . Also tried $_GET["fldcategory"] as default . URL goes to add page but no dropdowns are filled in.
|
![]() |
HJB 11/14/2015 |
@John, I found this under http://stackoverflow.com/questions/4854754/how-to-set-a-session-variable-when-clicking-a-a-link hyperlink-style-button{ background:none; hyperlink-style-button:hover{ background:none;
|
![]() |
lefty author 11/15/2015 |
@John, I found this under http://stackoverflow.com/questions/4854754/how-to-set-a-session-variable-when-clicking-a-a-link the basic code for the form is: <form enctype="multipart/form-data" action="page-to-pass-to.php" method="post"> <input type="hidden" name="post-variable-name" value="value-you-want-pass"/> <input type="submit" name="whatever" value="text-to-display" id="hyperlink-style-button"/> </form> the basic css is: hyperlink-style-button{background:none; hyperlink-style-button:hover{background:none;
|
![]() |
lefty author 11/22/2015 |
I took a look at it but with phprunner . the link is going to the add page and needs two dropdowns filled in . The code above would work , but it seems the dropdowns take over the autofill . and keep blank even with default values set to _Get or _Request. THey are just plain blank. Can do with on parameter to a text field . works fine . just not two parameters and them two being a dropdown. I am trying to use same values on a custom view say a photo . Now the Item picked field and the category field is on this custom view page and the other table . I want them to see the image and then select the hyperlink which is over URL to the item field and category field. Like this this is the value of one of the fields and set as custom view . basically just says book this. $value = "<a href='Book_Display_add.php?&fldcategory='".$data["fldcategory"]."'&fldavail='".$data["Pos"]."'>Book This Display</a>"; I setup those fields as default _Get["fldcategor"] or tried _request["fldcagategory"] and same for fldavail , but the dropdowns for fldcategory and fldavail do not fill in when hyperlinking to that add page .
|
![]() |
Admin 11/23/2015 |
I don't think anyone can answer this by just looking at this description. You need to have an access to the application in order to see what might. somepage.php?value1=somevalue&value2=someothervalue
|
![]() |
lefty author 11/27/2015 |
I don't think anyone can answer this by just looking at this description. You need to have an access to the application in order to see what might. I can only explain the basics of passing values via URL. It works in PHPRunner exactly the same way it works in any other web application. First, you pass some values via URL. Second you read those values on receiving page and do something with it. Here is the typical URL with parameters: somepage.php?value1=somevalue&value2=someothervalue
|
![]() |
Admin 11/28/2015 |
This post is a collection of huge amounts of confusion and misunderstandings. I'm closing it as non-constructive. |