Advertise Here

Author Topic: My latest code.  (Read 7141 times)

0 Members and 1 Guest are viewing this topic.

Offline php coder

  • SMF For Free Newbie
  • *
  • Posts: 16
    • View Profile
    • YOUR NUMBER 1 RSPS STATUS PAGE!

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
My latest code.
« on: January 15, 2009, 02:42:22 pm »
Code: [Select]
<?php
if ($_POST[op] !=”add”) {
//haven’t seen the forum, so show it
$display_block =<h1>Add an entry</h1>
<
form method=\“post\“action=”$_SERVER[PHP_SELF]>
<
p><strong>First/Last names:</strong><br>
<
input type=\”radio\“ name=\”f_name\” size=30 maxlength=75>
<
input type=\”text\” name =”\l_name\” size=30 maxlength=75>

<
p><strong>Address:</strong><br>
<
input type=\”text\” name=\”address\” size=30>

<
p><strong>City/State/Zip:</strong><br>
<
input type=\”text\” name=\”city\” size=30 maxlength=50>
<
input type=\”text\” name=\”state\” size=5 maxlength=2>
<
input type=\”text\” name=\”zip\” size=10 maxlength=10>

<
p><strong>Address type:</strong><br>
<
input type=\"radio\" name=\"add_type\"value=\"home\" checked> home
<input type=\"radio\" name=\"add_type\"value=\"work\"> work
<input type=\"radio\" name=\"add_type\"value=\"other\"> other

<p><strong>Telephone Number:</strong><br>
<input type=\”text\”name=\”tel_number\” size=30 maxlength=25>
<input type=\"radio\" name=\"tel_type\"value=\"home\" checked> home
<input type=\"radio\" name=\"tel_type\"value=\"work\"> work
<input type=\"radio\" name=\"tel_type\"value=\"other\"> other

<p><strong>Fax Number:</strong><br>
<input type=\"text\" name\"fax_number\" size=30 maxlength=25>
<input type=\"radio\" name=\"fax_type\"value=\"home\" checked> home
<input type=\"radio\" name=\"fax_type\"value=\"work\"> work
<input type=\"radio\" name=\"fax_type\"value=\"other\"> other

<p><strong>Email Address:</strong><br>
<input type=\”text\” name=\”email\” size=30 maxlength=150>
<input type=\"radio\" name=\"email_type\"value=\"home\" checked> home
<input type=\"radio\" name=\"email_type\"value=\"work\"> work
<input type=\"radio\" name=\"email_type\"value=\"other\"> other

<p><strong>Personal note:</strong><br>
 <textarea name=\”note\” cols=35 rows=5 wrap=virtual></textarea>
<input type=\”hidden\” name=\”op\”value=\”add\”>

<p><input type=\”submit\” name=\”submit\”value=\”add entry\”></p>
</FORM>”; 
} else if (
$_post[op] == “add”) {
//time to add to tables, so check for required fields
If ((
$_post[f_name] == “” || ($_post[l_name} == “”)) {
Header(“location: addentry.php”);


preview is here
www.dreamscapedesigns.smfforfree.com

Offline - Lawrence -

  • SMF For Free Hero
  • *
  • Posts: 549
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: My latest code.
« Reply #1 on: January 15, 2009, 02:43:04 pm »
What does this code do?
You can't submit?

Offline php coder

  • SMF For Free Newbie
  • *
  • Posts: 16
    • View Profile
    • YOUR NUMBER 1 RSPS STATUS PAGE!

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: My latest code.
« Reply #2 on: January 15, 2009, 02:44:43 pm »
im not 100% finished yet.

thats why i uploaded it as an attatchment .
you can finish it your self.
or just wait till im done

Offline - Lawrence -

  • SMF For Free Hero
  • *
  • Posts: 549
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: My latest code.
« Reply #3 on: January 15, 2009, 02:45:15 pm »
im not 100% finished yet.

thats why i uploaded it as an attatchment .
you can finish it your self.
or just wait till im done
Oh ok, thanks. ;)

Offline php coder

  • SMF For Free Newbie
  • *
  • Posts: 16
    • View Profile
    • YOUR NUMBER 1 RSPS STATUS PAGE!

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: My latest code.
« Reply #4 on: January 15, 2009, 02:46:12 pm »
no problem

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
1424 Views
Last post November 30, 2007, 04:36:56 pm
by V.JR
My latest

Started by RiseAgainst « 1 2 » Graphics

15 Replies
3836 Views
Last post April 27, 2008, 10:06:33 am
by RiseAgainst
1 Replies
1085 Views
Last post May 08, 2008, 10:21:59 am
by Blade
0 Replies
1012 Views
Last post June 30, 2008, 11:38:55 am
by RiseAgainst
6 Replies
1892 Views
Last post July 21, 2008, 08:00:44 am
by Max.