close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Notice: Undefined variable on form?

Thread began 3/23/2012 6:27 am by gary.brett434358 | Last modified 3/23/2012 10:29 am by Jason Byrnes | 710 views | 2 replies |

gary.brett434358

Notice: Undefined variable on form?

Hi, I have a form used in several pages across my site. On one page however this form select field errors "Notice: Undefined variable: on line 391", the select list does appear and the form works but the error box always appears.

<?php
do {
?>
<option value="<?php echo $row_WADADynListtblCaseType['CaseTypeID']?>"><?php echo $row_WADADynListtblCaseType['CaseTypeName']?></option>
<?php
} while ($row_WADADynListtblCaseType = mysql_fetch_assoc($WADADynListtblCaseType));
$rows = mysql_num_rows($WADADynListtblCaseType);
if($rows > 0) {
mysql_data_seek($WADADynListtblCasetype, 0);
$row_WADADynListtblCaseType = mysql_fetch_assoc($WADADynListtblCaseType);
}
?>



Line 391: mysql_data_seek($WADADynListtblCasetype, 0);

If I copy and paste the form to a different section on the page it works fine which has left me confused. Any ideas appreciated form is attached if it helps..

Attached Files
dh.zip
Sign in to reply to this post

gary.brett434358

Hi again, I have noticed that this is only an issue when the form is wrapped inside a table. If I move the select to inside the form but outside of the table it works fine, even using <td> is ok, its just table? Any ideas why this would be?

This works:

<tr><td>Product:</td><td>                            <select name="CaseType" style="width:200px" id="CaseType">
<option value="">Case Type</option>
<?php
do {
?>
<option value="<?php echo $row_WADADynListtblCaseType['CaseTypeID']?>"><?php echo $row_WADADynListtblCaseType['CaseTypeName']?></option>
<?php
} while ($row_WADADynListtblCaseType = mysql_fetch_assoc($WADADynListtblCaseType));
$rows = mysql_num_rows($WADADynListtblCaseType);
if($rows > 0) {
mysql_data_seek($WADADynListtblCasetype, 0);
$row_WADADynListtblCaseType = mysql_fetch_assoc($WADADynListtblCaseType);
}
?>
</select></td></tr>



This doesnt:

<table><tr><td>Product:</td><td>                            <select name="CaseType" style="width:200px" id="CaseType">
<option value="">Case Type</option>
<?php
do {
?>
<option value="<?php echo $row_WADADynListtblCaseType['CaseTypeID']?>"><?php echo $row_WADADynListtblCaseType['CaseTypeName']?></option>
<?php
} while ($row_WADADynListtblCaseType = mysql_fetch_assoc($WADADynListtblCaseType));
$rows = mysql_num_rows($WADADynListtblCaseType);
if($rows > 0) {
mysql_data_seek($WADADynListtblCasetype, 0);
$row_WADADynListtblCaseType = mysql_fetch_assoc($WADADynListtblCaseType);
}
?>
</select></td></tr></table>



Regards

Gary

Sign in to reply to this post

Jason ByrnesWebAssist

I dont see a problem in the code, i'll need to look at it a bit deeper to troubleshoot.

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...