Variables wont carry values

liunx

Guest
Hello people. <br />
<br />
Im using swish 2 to make a logo and an Enter button, im also using dreamweaver so that i can use input boxes, a username and password. <br />
<br />
The thing is the username and password are checked via a database and if correct a perl script will print another page. <br />
<br />
Is there a way i can get the button to carry these values across (user & pwd)<br />
<br />
Or does anyone know a way of how to do it in dreamweaver <br />
<br />
ive got the direction working but it cant validate anything? <br />
<br />
Thankyou for your help in advanced <br />
<br />
Jeffers<!--content-->what is the form code?<!--content-->Do i have to put <input type=submit> and aim it at the object???<br />
<br />
<html><head><title>Untitled Document</title><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
</head><br />
<body bgcolor="#000040" text="#FFFFFF"><br />
<form action="http://homepages.shu.ac.uk/~rheather/ass2/main.pl" method="post"> <br />
<table width="1013" border="0" cellpadding="0" cellspacing="0" bgcolor="000040"><br />
<tr> <br />
<td width="273" height="107"></td><br />
<td width="1"></td><br />
<br />
<td width="440" rowspan="3" valign="top" type="submit"><br />
<br />
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://Download <!--more-->.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="421" height="340"><br />
<br />
<param name=movie value="wbsass3swish.swf"><br />
<param name=quality value=high><br />
<embed src=http://www.htmlforums.com/archive/index.php/"wbsass3swish.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/Download <!--more-->/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="421" height="340"><br />
</embed> <br />
</object></td><br />
<td width="164"></td><br />
<td width="135"></td><br />
</tr><br />
<tr> <br />
<td valign="top" rowspan="3"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://Download <!--more-->.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="273" height="209"><br />
<param name=movie value="submissiontext.swf"><br />
<param name=quality value=high><br />
<embed src=http://www.htmlforums.com/archive/index.php/"submissiontext.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/Download <!--more-->/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="273" height="209"><br />
</embed> <br />
</object></td><br />
<td height="20"></td><br />
<td></td><br />
<td></td><br />
</tr><br />
<tr><br />
<td height="234"></td><br />
<td rowspan="2" valign="top"> <br />
<br />
<p><font color =# > <font color="#FFCC33">Username: </font></font> <br />
<input type="text" name="user"><br />
</p><br />
<p> <br><br />
<font color ="red"> Password:</font> <br />
<input type="password" name="pwd"><br />
</p><br />
</form><br />
</td><br />
<td></td><br />
</tr><br />
</table></body></html><!--content-->for one what is this/<br />
<td width="440" rowspan="3" valign="top" type="submit"> <br />
<br />
also it looks ok to me, except for I don't know what is in the flash part.<br />
<br />
sounds like to me the the perl script is not detecting the right variable names.<!--content-->Sorry <td width="440" rowspan="3" valign="top" type="submit"><br />
that was a poor attemp to get the submit button to the object which is created from Swish 2.<br />
<br />
if you have a look at this link you will see the login page:<br />
<br />
<!-- m --><a class="postlink" href="http://homepages.shu.ac.uk/~rheather/ass2/main.html">http://homepages.shu.ac.uk/~rheather/ass2/main.html</a><!-- m --><br />
<br />
please ignore the &user&pwd for the enter link<br />
<br />
thanks<!--content-->listen... your really making this hard on yourself by trying to use HTML forms, and asking SWISH to submit the form for you. <br />
<br />
Either use swish for the form (better yet, flash)... or stay with what works: HTML.<br />
<br />
What you have going now: Enter data on HTML form... press swish enter button. Now should HTML form send data to actionPage? Or should swish?<br />
<br />
if the html forms sends the info, then youd need to tell swish to ask the HTML page to execute a javascript to submit the form when the swish enter button is pressed.<br />
<br />
If the swish page is supposed to send the info, then the html page would need to send the info to the swish page, then the swish page would need to fire it off to the action page. <br />
<br />
<br />
Does that sound confusing? Well the coding for it will also be equally confusing. Basically you just want a really cool looking enter button, right? Right. So either design the form in flash (or swish if you can)... or design the thing in HTML. <br />
<br />
<br />
***Flash to javascript... and javascript to flash communication is tricky... fails in netscape, and is very limited. If your not proficient in flash actionscript and in javascript your really asking to beat your head against the wall.<!--content-->Thanks for your reply Dr. web<br />
<br />
Apart from the time ive already waisted you've saved me a lot more.<br />
<br />
Thanks again. ill leave the fancy stuff until later.<!--content-->
 
Back
Top