-
Posts
146 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Obi1-Cannabis
-
-
ah now i got ya... what's the browser your using?I'm in another computer and it's also ok hereyes i want it:D its strange i tryied on 2pc"s and same mistake but as i see its working for obi1:DLook at that picture that happends when i look at my page (picture taken on third computer) -
i have the ADOdb connection in the constructor of a class in a variable $conn but when i try to use it in another function forexample $var=$conn->GetAll("Select * from table where id='$id'") it gives me this error in the output:Fatal error: Call to a member function on a non-object in C:\Trabalhos\Apache\estagio\teste\classes\class.php on line 24can anyone explain?
-
i'm not sure if this will help you: http://www.desilva.biz/php/bbcode1.htmlCan anyone make the BBCodes work in this PHP script? -
maybe if you try to do a counter that counts the number of lines of the menu in the main code and give a diferent class in css for that 5th line...but i don't now i'm quite new at this and i'm not even sure if i've got your problem right...you dont have:D it like me:D but i want it to be someone knows the solution. -
-
in my browser there's no white line i would send a print screen but i have no where to upload ityou have white line bettwen that 2 buttons i write in last post? -
I don't see what is the problem it seems to be like all the others...I am working on one page but i did get to one problem. Every 5th line in submenu doesnt have a border dont know why but i think its css fault. Pls look at the page and help me if you can. My page i am working onNow the code is just for FF working on IE. You can see my problem if you look at PONUDBA bettwenGRAFIČNA OBDELAVA and PRIMERI UPORABE. -
imagine i'am creating a site for blind people...does this type of media works on any browser?do i need something special to make it work?and what about the language, is it only available in english? or is it possible to select another language like portuguese for example?>>>Obi1
-
Yes i found the problem already, the thing is that i was trying to use integer for the name. but thanks anyway.Obi1,The code you have will work as long as the value in $k2 will create a valid form name. If $k2 contains spaces, special characters, etc., it will fail. -
Dam this form
in PHP
Finnaly solved it using the way i was before, the problem was that i was trying to use an integer variable for form's id if i use a string it works.To think i took 3 days to see the problem lol.I don't know what you're doing wrong, but this works just fine for me. Just make sure you remove the space between java and script in the href, it should be one word.[ -
That would work fine if my DB had only one element, but that's not the case...
foreach($tipop as $k2=>$v2 ){if ($tipop[$k2]['IDFamilia'] == $familia[$k]['ID']){ $this->idt=$tipop[$k2]['ID']; print" <tr> <form method='Post' action='index.php' name='".$k2."' id='".$k2."'> <input type='hidden' name='comando' value='escolhi'> <input type='hidden' name='idt' value='".$tipop[$k2]['ID']."'> </form> <td width='200' align='left' onclick=\"document.".$k2.".submit();\"style=\" cursor:pointer; cursor:hand;\" onmouseover=\"bgColor='lightyellow';\" onmouseout=\"bgColor='white';\"> ".$tipop[$k2]['Descricao']." </td> </tr>"; }}
This is what's not working...
-
Dam this form
in PHP
nah... nothing seems to wor here i've got to find another way to do this...
-
Dam this form
in PHP
nope it dosn't work either i've tried it already. i also tried something like:<td width='200' align='left' onclick=\"document.forms[0].submit();>but since i have another form in the same page it doesn't work either...I got you, you just want to use javascript to submit it. I think you use the ID, not the name though. So try this:<form method='Post' action='index.php' name='".$myForm."' id='".$myForm."'> -
what if i have more then one form?If there is only one form on the page use the following code it won't matter what the form name isonclick="document.forms[0].submit();
or
onclick="document.getElementsByTagName('form')[0].submit();
-
Dam this form
in PHP
it's not that i can't use a submit button, but it isn't very pleasant to see so i just wanted to use text from a table cell...<form method='Post' action='index.php' name='".$myForm."'><input type='hidden' name='comando' value='escolhi'><input type='hidden' name='idt' value='".$tipop[$k2]['ID']."'></form> <td width='200' align='left' onclick=\"document.".$myForm.".submit();\"style=\"cursor:pointer; cursor:hand\" onmouseover=\"bgColor='lightyellow';\" onmouseout=\"bgColor='white';\">".$type[$key]['Value']." </td>this one isn't working, tough the onmouseover and onmouseout are working.I don't understand, why can't you use submit? I've never run into a situation where I could not use submit. -
Dam this form
in PHP
i'm working on a form that for each product of a DB has a diferent valuehow can i do this without having to use a submit button? because the onclick="document.form.submit();", where 'form' is a php variable doesn't work however the name of the form can be a php variable.please help
-
i'm working with javascript and php to make a form that for each product of a DB has a diferent valuehow can i do this without having to use a submit button? because the onclick="document.form.submit();", where 'form' is a php variable doesn't work however the name of the form can be a php variable.please help
-
Submit
in JavaScript
Do i have to make any function before i use an<td onClick="Document.Form.Submit">? if yes, does the form needs to be inside? it's not working for me...
-
Force a link?
in PHP
Thank you it's working now.
-
Force a link?
in PHP
Is it possible to force a link on php.my idea is: i have a form that takes me to another page but i want it to stay in the same if the fields are not complete, if they are wrong or if i already have that same data on my DB.how am i suposed to do such a thing?
Problem with classes
in PHP
Posted
Nevermind, solved it.