It is currently Sun Dec 16, 2018 8:46 pm




Post new topic Reply to topic  [ 1 post ] 
Data Page with custom Code EDITABLE fields (911 please) 
Author Message

Joined: Sun Jun 07, 2009 8:54 am
Posts: 65
Post Data Page with custom Code EDITABLE fields (911 please)
Hi,

1. I love dbQwkSite.
2. Scenario: Developer Edition, 5.4.0.5 (latest V5)
3. V6 might be even offering this by default, but I need this right now and I am totally lost.

4. Request: Need to read self generated fields at the end of the form

5. So far: I was able to generate with Custom Code a field at the end of the line and I can enter values there. CHECK.
$Ref++;
$lfdNr[$Ref] = $row[0];

$TheName[$Ref] = "Feld";
$TheName[$Ref] .= $Ref;

$FieldID[$Ref] = "ID";
$FieldID[$Ref] .= $Ref;

$cellvalue = "<input id =$FieldID[$Ref] type=\"text\" name=\"$TheName[$Ref]\" value=\"" . qsreplace_html_quote(stripslashes($Quantity[$Ref])) . "\" size=\"2\" maxlength=\"2\" >";

if ($cellvalue == "") {
$cellvalue = "&nbsp;";
}

print "<td align=Center >" . $cellvalue . "</td>";

6. I have even prepopulated the fields with values. CHECK.

7 :shock: . What I need to do is read out the fields at the end of the table rows via icon with href, and I have failed to do so. I tried everything from $_POST to getElementsByName to no prevail.

$Quantity[X] is an array for this field in question!

print "<td align=Center >";
print "<a href=\"" . "./testing.php?" . ""."1=$Quantity[1]"."&"."2=$Quantity[2]"."&"."3=$Quantity[3]"."&"."4=$Quantity[4]"."&"."5=$Quantity[5]" . "\" target=\"_self\">" . $cellvalue . "</a>";
print "</td>";
Your assistance is greatly appreciated!

Thanks!


You do not have the required permissions to view the files attached to this post.


Sat Sep 12, 2009 12:15 am
Profile E-mail
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Copyright © 2004-2008 TheDevShop Ltd. All Rights Reserved