vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   need help with safety of input from html form (https://vborg.vbsupport.ru/showthread.php?t=120274)

jake7338 07-03-2006 09:25 PM

need help with safety of input from html form
 
I am a new programmer.... I have a form on my site where people can input data via an html form and then i put it in a MySQL db.

What is normal safety practice to filter this input? Please help.

For example in html code like this:
<input type="text" name="phone" value="" size="12">

Thanks,
--jake

Paul M 07-04-2006 12:24 AM

Are you referring to vbulletin or just in general, as vb has some built in functions to do it.

jake7338 07-04-2006 01:02 AM

I meant just in general. However, i would like to implement some general vb stuff on this page. So could you tell me both? What are the include statements for the vb stuff.

Thanks,
--jake

sabret00the 07-04-2006 10:28 AM

check out escape_string http://dev.mysql.com/doc/refman/5.0/...pe-string.html

also check out functions like is_numeric(), is_string(), intval(), preg_match(), eregi()


All times are GMT. The time now is 10:40 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01809 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete