Jump to content

Input Field


nthomthom

Recommended Posts

I think doing everything is discouraged in this forum, so I'll point you in the right direction.

 

To check the input fields, you can use Javascript or PHP, but javascript is much easier. Google "javascript form validation".

 

Then, google "submit button image"

 

Finally, learn PHP and MySQL. That's going to be more in depth, and would basically require lessons if someone were to help you in this forum.

 

Google PHP + MySQL.

Link to comment
https://forums.phpfreaks.com/topic/174658-input-field/#findComment-920510
Share on other sites

javascript isn't a good way to validate data, since it can be turned off server side.

 

if you don't know how to create input boxes, then you will have to learn HTML. if you have the SQL statement(s) down, its really just about doing a query with PHP. its quite simple, but if have no clue where to get started, learn HTML, and PHP

Link to comment
https://forums.phpfreaks.com/topic/174658-input-field/#findComment-921058
Share on other sites

Well I know how to create fields in a .html file, then transfer the info to a .php file... Anywho I was wondering if there was a way to directly put them into a .php file. Sorry that the statement above didn't make any sense.

 

See I want to create a field for someone to enter information in a php file for instance: "/purchaseorder.php?number=20" This is a public file which is not secured by anything (such as a login). For instance when the person enters a value in the field and clicks submit the table is updated with the information in the table WHERE po_number is = $_GET['number']. I wanted to know if it is possible that someone can enter info into a field to destroy the database (is that possible?) and if i should required that the customer enters their login info. this would be simple as all I have to do is require the file which makes sure that the person is logged into the system. However, i though this would be an inconvenience, but if it is a security issue then I am better off requiring them to login in.

Link to comment
https://forums.phpfreaks.com/topic/174658-input-field/#findComment-921063
Share on other sites

I wanted to know if it is possible that someone can enter info into a field to destroy the database (is that possible?)

 

Yes its possible. You need to make sure your users are posting only valid data and that you sanatise any variables used within SQL queries.

 

should required that the customer enters their login info

 

Just because a customer is logged in doesn't make it any more secure, it just means you can keep track of who's doing what.

Link to comment
https://forums.phpfreaks.com/topic/174658-input-field/#findComment-921066
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.