Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Using the Forms attribute.


  • Please log in to reply
6 replies to this topic

#1 JUICYboy

JUICYboy

  • Members
  • 537 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Anaheim, Ca
  • Local time:08:31 AM

Posted 23 March 2010 - 12:13 AM

Using notepad I have created a html forms page.

I have put all of the fields that need to be answered and on the html page they come out however, does anybody now how to actually retrive the data>? :thumbsup:

BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:06:31 AM

Posted 23 March 2010 - 06:04 AM

When you type 'retrieve html form data', what do you find?

#3 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,259 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:05:31 AM

Posted 23 March 2010 - 01:11 PM

You need a form handler. I use the one from Tectite.

#4 JUICYboy

JUICYboy
  • Topic Starter

  • Members
  • 537 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Anaheim, Ca
  • Local time:08:31 AM

Posted 23 March 2010 - 01:41 PM

Okay Thank you I will try booth suggestion as soon as I have time to continue studying.

I will post on how it turns out.

Thank-you so much guys for your input :thumbsup:

#5 Wolfy87

Wolfy87

  • Members
  • 414 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:England
  • Local time:12:31 PM

Posted 08 April 2010 - 03:31 PM

If you need something more specialized then you would need to use something like PHP, here is a VERY simple example.

display.html:
<form method="post" action="display.php">
	<input type="text" name="email" />
	<input type="submit" value="Submit!" />
</form>

Now when the user clicks "Submit!" this PHP script will be run.

display.php:
<?php
echo "Your email is..." . $_POST["email"] . "...well at-least I think it is...";
?>

Try running it on your server :thumbsup:

Hope this helps, Wolfy87.

#6 greis_welts

greis_welts

  • Members
  • 3 posts
  • OFFLINE
  •  
  • Local time:07:31 AM

Posted 22 April 2010 - 01:16 PM

well... when a user fills out the form field above and clicks on the button "submit" , the form data is sent to a PHP file for handle, in code it's looks like this:

<html>
<body>
Welcome <?php echo $_POST["fname"]; ?>!<br />
You are <?php echo $_POST["age"]; ?> years old.
</body>
</html>

where "fname" and "age" are the field in your form. Try learn more on php tutorials :thumbsup:

#7 JUICYboy

JUICYboy
  • Topic Starter

  • Members
  • 537 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Anaheim, Ca
  • Local time:08:31 AM

Posted 22 April 2010 - 09:39 PM

Thank-you sooo much




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users