close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

undefined index

Thread began 7/10/2020 7:42 pm by randyrie405335 | Last modified 8/07/2020 4:27 pm by Ray Borduin | 431 views | 5 replies |

randyrie405335

undefined index

I copied a website from my MacBook to my iMac and am now getting a "undefined index" error on the iMac (see my attachments). The page works perfectly on my Macbook and on the public site. Any ideas what's different?

Attached Files
codepage.rtf
Sign in to reply to this post

Ray BorduinWebAssist

This is a Notice... not an error. It probably doesn't effect the functionality of the page. You could probably just turn off notices in your php.ini file and it would work like it does on the other server.

Sign in to reply to this post
Did this help? Tips are appreciated...

randyrie405335

Annoying notice - but not serious

I know I can simply dismiss the display of the "undefined Index" error by turning off displaying errors in the php.ini file... but WHAT causes this error and how do I correct the code so it no longer displays? See my attachments.

Sign in to reply to this post

Ray BorduinWebAssist

You aren't passing an Item_Name in the url but you code references it without checking to see if it exists.

You can correct it by checking by changing this:

$_GET['Item_Name']


to:

(isset($_GET['Item_Name'])?$_GET['Item_Name']:"")
Sign in to reply to this post
Did this help? Tips are appreciated...

randyrie405335

That worked!

Thanks for you prompt response, Ray. Hopefully I've now learned how to properly use the WebAssist MySQLi GUI... I've been typing in the runtime value manually (e.g., $_GET[" xxx ']) instead of simply using the GUI to set the runtime value. See my screen capture and let me know if I've FINALLY got this right.

Sign in to reply to this post

Ray BorduinWebAssist

Yes that should work.

Sign in to reply to this post
Did this help? Tips are appreciated...

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...