English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm making a website for my business, and I've been searching for hours for codes for a request form...I need something with name, address,city & state,zip, e-mail address, phone #(optional), or if anyone knows a an extractor then I can get the code off my old website(i didn't make the old site and I doubt if they'll give me the code). Can anybody help me please?

2007-12-18 13:19:27 · 8 answers · asked by Sonya 2 in Computers & Internet Programming & Design

8 answers

Here's the good news:

You can get the code easily.
Just point your browser to the web site and choose "view source" from the menu system. You'll see all the HTML code there. They can't hide it from you. (at least not easily)

Ready for the bad news?
It's probably almost impossible to read. Lots of code out there is really bad. Even if you have the code, you'll probably have to tweak it so much it'll be easier to start over.

Now you want some good news?
It's not that hard to roll your own. Take a look at the form at
http://xfd.freehostia.com/xfd1.7/formDemo.html
and try the same 'view source' trick. If you study the code and the web page, you'll see it's not that difficult. (This is an example from my upcoming book)

Now you ready for the bad news again?
Just having the form isn't enough. It's easy to build a form, but then what are you going to do when somebody fills it in? You need to have a program on the web server to read the form and do something with it. This is also relatively easy, but it's more involved than you probably imagined when you started this project.

Don't give up. Just understand that this will take a little more effort than you initially expected. You can do it yourself, or you can get some help. If it's critical for your business and you need it soon, I'd hire somebody.

Ask another question if you want advice on hiring a web developer. I've been dying to answer that one. (It will make a lot of web developers mad.)

2007-12-18 13:53:02 · answer #1 · answered by Anonymous · 0 0

In Frontpage
Insert / Form
The you Insert Form field
Right click on the field to rename it
Rename it "Name" or whatever

2007-12-18 13:34:00 · answer #2 · answered by Anonymous · 0 0

Of what i've heard, you can hire someone to do that for you. But i'm pretty sure it's expensive.

I'm only positive you hire someone for maknig the html for signing up to a website, i'm not so sure if you can hire someone for your issue though...

2007-12-18 13:24:07 · answer #3 · answered by Lady Jane 6 · 0 0

Give me the old site and I will try.

Send private if you want.

2007-12-18 13:23:46 · answer #4 · answered by Christian Soldier 7 · 0 0

Nope... I got nothing... Because I did not understand 1 single thing you said.

2007-12-18 13:22:07 · answer #5 · answered by Anonymous · 0 0

www.freedback.com

Sign up for that site and you will get free forms, then they will give you the code.
Is that what you're looking for?

2007-12-18 13:22:59 · answer #6 · answered by Anonymous · 0 0

To make a form you can use something like this:


Name:

Address:

City:

State:

Zip:

Email address:

Phone no.:




Now, you must create another page, called actionpage.php (or any other name, but don't forget to change on form's action), and there you must have something like this:

$name = $_POST['name'];
$address = $_POST['address'];
$city = $_POST['city'];
$state = $_POST['state'];
$zip = $_POST['zip'];
$email = $_POST['email'];
$phone = $_POST['phone'];
if(empty($name)) {
echo 'Error: you did not entered your name'; }
elseif(empty($address)) {
echo 'You must enter your address'; }
elseif(empty($city)) {
echo 'Please enter your city!'; }
elseif(empty($state)) {
echo 'Please enter your state.'; }
elseif(empty($zip)) {
echo 'Please enter your zip code.'; }
elseif(empty($email)) {
echo 'Please enter your email address.'; }
else {
$to = "your_email@server.com";
$subject = "A new request trough the form";
$head = "From: $email\n";
$body = "Name: $name
Address: $address
City: $city
State: $state
Zip: $zip
Email: $email
Phone: $phone\n";
mail($to, $subject, $body, $head);
echo 'Thank you '.$name.' for your message.';
}
?>

That's it.
After you write this pages, you *must* upload them to your hosting server. It won't work on your computer, because the php script needs to run on a server, with php support, and a mail server. And replace the value from $to, with your email address.
Hope this helps.
Good Luck :-)

2007-12-18 13:26:42 · answer #7 · answered by Alin 3 · 1 0

i don't know for a fact... but i think that you can fide it on HTML web tutor.

2007-12-18 13:23:45 · answer #8 · answered by T man 2 · 0 0

fedest.com, questions and answers