//Netscape's JS Console shows the message:
//"Error: form is not defined
Source File: http://coliseu/Agro-Fauna/prod_inc1.php
Line: 26"
//when I run this code::
----------------------------------------
<script language="JavaScript">
function envio(form) {...
No, man, we're talking about PHP. This mess around 'request' method isn't supposed to happen...
All the other variables but this opt are showing alright when you add an 'alert(var_name)' instruction to the function that submits the data.
So I wonder it's not even getting there...
Hulla-Lele!
We've written an html 'popup' page that sends data to php using
creator.location="pod_inclu.php?name="+frm.name.value+"&..and so on..
Its working alright since input type <> "radio"
why does it happen? Is there anything wrong with my form syntax?
the...
Hulla!
Guess what? I'm in trouble with JS again...
I need to open a popup window that receives some values, adds one more and passes them away to PHP.
When we dealing with frames it was simple. Just used...
yeah, its kinda a family crossing the street:
ASP is handed to ADO who is handed to SQL
but SQL and ASP are able to do a lot of things alone and with other people. as you see, they're a really post-modern family.
:) :) :) :) :) :) :) :) :) :) :) :)
Just it?
It may seem a little "duh", you know, but if you are running ASP in a localhost, have you properly configured your Personal Web Server?
Another thing, try chnge your line:
cn = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" &...
welshone, your example is nice, too.
but did you know that the processment of your code by the server will be faster if you dont close/open your ASP?
instead of it, I'd rather use a lot of 'response.write'
but everyone must find his own way to do things. and that's the fun!
:D
ok. so, pay attention:
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
'create a form
response.write "<form name='any_name' action='u_know' method='get'>"
'create a combo
response.write "<select name='any_name'>"
'Create a Loop...
Do while not cn.EOF
'...that...
You've got me confused now...
ok, lets assume that you've inserted these two values into your DB and then you want to show a combo with data from the same DB. alright?
what do you want to fetch from your DB? The same values?
I didn't understand what's the purpose of your page.
You'll do it...
Excuse me, I didn't fix my 'zombie' properly.
It should be like this:
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
<%
Set Conn=Server.CreateObject("ADODB.Connection")
Conn.Open("Logs")
Set LogRec=Server.CreateObject("ADODB.Recordset")
Sel="SELECT player_id...
Does it fit?
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
<%
Set Conn=Server.CreateObject("ADODB.Connection")
Conn.Open("Logs")
Set LogRec=Server.CreateObject("ADODB.Recordset")
Sel="SELECT id, data, diasemana, titulo, corpo, logger FROM TB_Log ORDER BY id...
okay spew, lets go
1) yeah, its kind of that but if this was the problem we'd just use the "post" method ;-)
2) I'm making a lot of different validations. cad_nam can't be a number, cad_email must have the e-mail syntax and so on. But this part is easy and it's done.
3) I'm not...
hey, mwolf00, maybe you'd like to see how I did it:
-----------------
response.write "<table name='logs' width='60%'>"
For i=1 to 20
ThisDate=LogRec("date")
response.write "<tr>"
response.write "<td style='border-style: dashed; border-width: 1px'...
Hi. I've built my own ASP blog and it works fine, thanks.
There's just one thing that I couln't do anyway.
Look at this code:
-------------------------------------
response.write "<table name='posts' width='95%'>"
For i=1 to 18
response.write "<tr>"
response.write...
sorry, the function should be:
function validate_frm() {
pass==0
if ((document.test.a1.value=="")||(document.test.a2.value=="")) {
alert ("Fill in the fields.")
pass ++
}
if (pass==0) {
document.test.submit()
}
}
</script>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.