| Re: XoopsFormHidden |
| by xsell on 2010/1/5 19:23:40 Dylian Thank you Man , I feel Very Stupid , How in the World I could Not think about that .. Your Total Correct . it Should Be . le="color: #000000"><?php $form = new XoopsThemeForm(_MI_SEND, "form1", "send.php?id=".$id); Not le="color: #000000"><?php $form = new XoopsThemeForm(_MI_SEND, "form1", "send.php"); with That No need for Extra Hidden Filed , i can remove it Now .. Shame On me , was very Simple if Paid Good attention to my Code .. Thank you Dylian for Ponited it Out. |
| Re: XoopsFormHidden |
| by Dylian on 2010/1/5 10:25:01 If you look at the source code in your browser you'll see that the id field does have a value... (a html code lik this generated: <input type="hidden" name="id" value="1234" /> Or is this what you want? 1. user goes to id.php?id=123; 2. user fills in the visible fields; 3. user submits form and goes to send.php?id=123 4. send.php parses the data the user filled in. If so, use this code: Greets Dylian. |
| Re: XoopsFormHidden |
| by xsell on 2010/1/5 3:25:22 Thx Dylian , My way and your way Still Give the Same Result . Ok this The Problem in Simple Words . the $ID Value Should Be Replaced with the actual ID Number. But For Some reason the $ID Value if i make the Form Hidden Stays Empty. See the Image Explain to You Better.
|
| Re: XoopsFormHidden |
| by Dylian on 2010/1/5 1:05:36 Don't really get what your trying to do, but this is the working version of the script you posted above. (I removed the template vars as they ain't needed for proper functioning of the script) Version 1: This version puts the form in the <{$form}> template var (If you realy wan't to work with templates )Version 2: Hope this does what you want it to do and otherwise please try to explain what your trying to do... Greets Dylian. |
| Re: XoopsFormHidden |
| by xsell on 2010/1/2 0:20:55 up :) |