Jump to content

html submit and export info to notepad


spudly1987

Recommended Posts

I do not know if i'm in the right forum section for this however I will let you know what I need assistance with and if anyone can guide me or assist me I would be greatly appreciated.

 

I have a notepad file that i created on my system, i do not have any software installed that is allowing me to host and nor am I signed up for a website as of yet

 

but the following code. I would like to some how have the information that is entered and then when click on submit i would like it to be able to go to another screen with the results of what was entered and have two additional buttons to download resutls and then an option to start new entry, I am not to sure if I will need to create a sql database for this to happen or if its even phesable.

 

Thank you for the support in advanced, I am also not an expert so if you can break it down and educate me a bit so i can learn what to do thank you

<html>

<title>
Note Template
</title>


<head>
<style type="text/css">

body{
background-color: lightgreen;
}
h1{
text-align:center;
text-decoration: underline;
}
</style>
</head>

<body>

<h1>Pc Note Template</h1>

<form>
Tech Agent:<br>
<input type="text" name="firstname"><p>
<br>
Date:<br>
<input type="text" name="Date"><p>
<br>
Primary Issue:<br>
<textarea rows="4" cols="50">
</textarea>
<p>
<br>
Beginning Webroot Score:
<input type="text" name="removed" size="2"><br><br>
Did You Run Mbar:
<select>
  <option value=""></option>
  <option value="Yes">Yes</option>
  <option value="No">No</option>
</select>
<br><br>
How Many Threats Found And Removed:
<select>
  <option value=""></option>
  <option value="Yes">Yes</option>
  <option value="No">No</option>
</select>
<br><br>
Did Customer Purchase Webroot:
<select>
  <option value=""></option>
  <option value="Yes">Yes</option>
  <option value="No">No</option>
</select>
<br><br>
Did You Install Webroot:
<select>
  <option value=""></option>
  <option value="Yes">Yes</option>
  <option value="No">No</option>
</select>
<br><br>
How Many Threats Removed:
<input type="text" name="removed" size="2"><br><br>
Webroot Info:<br>
<textarea rows="10" cols="30" required>
</textarea><br>
<br>
Did You Run Ccleaner:
<select>
  <option value=""></option>
  <option value="Yes">Yes</option>
  <option value="No">No</option>
</select>
<br><br>
How Much Was Removed:
<textarea rows="1" cols="25">
</textarea><br><br>
Did You Adjust Startup:
<select>
  <option value=""></option>
  <option value="Yes">Yes</option>
  <option value="No">No</option>
</select>
<br><br>
How Many Items: 
<input type="text" name="removed" size="2"><br>
Which Of The Following Browsers Were Cleaned:
<select multiple>
   <option value="Internet Explorer">Internet Explorer</option>
   <option value="Google Chrome">Google Chrome</option>
   <option value="Firefox">Firefox</option>
   <option value="Safari">Safari</option>
</select>
<br><br>
What Was Done To Clean The Browsers:<br>
<textarea rows="4" cols="50">
</textarea><br><br>
Ending Webroot Score:
<input type="text" name="removed" size="2"><br><br>
Did You Create A Restore Point:
<select>
  <option value=""></option>
  <option value="Yes">Yes</option>
  <option value="No">No</option>
</select>
<br><br>
Additional Information:<br>
<textarea rows="4" cols="50"
placeholder="Optional">
</textarea>
</input>

</body>
</html>
Link to comment
Share on other sites

You can install an amp stack and have a local server running for development or can even set it live.

xxampp (windows,linux,mac os)

wamp (windows)

lamp (linux) each distro has own install methods

mamp (mac os)

 

Is some other versions but are a pain to install, no longer supported or solaris,ibm

 

Once you have something can work with stop back and ask particular questions, lots here are willing to help.

 

Take a look at php.net for some additional info, tutorials, example codes

 

Notepad plus is a nice editor with highlighting

Edited by QuickOldCar
Link to comment
Share on other sites

Okay so i have the new following code with a submit button

 

and i installed and downloaded xampp

 

i believe i created the colums and everything in the phpmyadmin sql database

 

now how do i connect it from the html file to the data base?

 

this is step 1 i need assistance with?

<html>

<title>
Note Template
</title>


<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>

<body>

<h1>Pc Note Template</h1>

<form action="notes_db">


Tech Agent:<br>
<input type="text" name="firstname"><p>
<br>
Date:<br>
<input type="text" name="Date"><p>
<br>
Primary Issue:<br>
<textarea rows="4" cols="50">
</textarea>
<p>
<br>
Beginning Webroot Score:
<input type="text" name="beginningscore" size="2"><br><br>
Did You Run Mbar:
<select>
  <option value=""></option>
  <option value="Yes">Yes</option>
  <option value="No">No</option>
</select>
<br><br>
How Many Threats Found And Removed:
<select>
  <option value=""></option>
  <option value="Yes">Yes</option>
  <option value="No">No</option>
</select>
<br><br>
Did Customer Purchase Webroot:
<select>
  <option value=""></option>
  <option value="Yes">Yes</option>
  <option value="No">No</option>
</select>
<br><br>
Did You Install Webroot:
<select>
  <option value=""></option>
  <option value="Yes">Yes</option>
  <option value="No">No</option>
</select>
<br><br>
How Many Threats Removed:
<input type="text" name="threatsremoved1" size="2"><br><br>
Webroot Info:<br>
<textarea rows="10" cols="30" required>
</textarea><br>
<br>
Did You Run Ccleaner:
<select>
  <option value=""></option>
  <option value="Yes">Yes</option>
  <option value="No">No</option>
</select>
<br><br>
How Much Was Removed:
<textarea rows="1" cols="25">
</textarea><br><br>
Did You Adjust Startup:
<select>
  <option value=""></option>
  <option value="Yes">Yes</option>
  <option value="No">No</option>
</select>
<br><br>
How Many Items: 
<input type="text" name="items" size="2"><br>
Which Of The Following Browsers Were Cleaned:
<select multiple>
   <option value="Internet Explorer">Internet Explorer</option>
   <option value="Google Chrome">Google Chrome</option>
   <option value="Firefox">Firefox</option>
   <option value="Safari">Safari</option>
</select>
<br><br>
What Was Done To Clean The Browsers:<br>
<textarea rows="4" cols="50">
</textarea><br><br>
Ending Webroot Score:
<input type="text" name="endingscore" size="2"><br><br>
Did You Create A Restore Point:
<select>
  <option value=""></option>
  <option value="Yes">Yes</option>
  <option value="No">No</option>
</select>
<br><br>
Additional Information:<br>
<textarea rows="4" cols="50"
placeholder="Optional">
</textarea>
<br><br>
<input type="submit" value="Submit">
</input>


</form>


</body>




</html>
Link to comment
Share on other sites

The form needs a lot more work.

The next step would be checking POST values, right now default is GET because the method is not set in the form.

Next can insert them into a database

 

I was making a lot of fixes but got called into work today.

Do some reading on PDO and prepared statements, is what we will be using

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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