Page 1 of 1

Display the user name !! Hard one Urgent

Posted: Wed Nov 15, 2006 6:47 pm
by newprogram
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


I need some help I have a foum which user use to regester to my site with 
it work good but I need to send a cookie to the user after they submit it with the value of what they put in textbox "T2" they first name and a way to read the cookie they vist other part of my site I want there name to be display on top of each webpage.Is this possable? here the HTML of the form

[syntax="html"]<form method="POST" action="_vti_bin/shtml.exe/submitpage.htm" name="FrontPage_Form1" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" webbot-action="--WEBBOT-SELF--">
			<td valign="top" height="520" background="cont4.gif">
			<p align="center"><font color="#FFFF00">
						<span style="font-size: 18px; font-family: Verdana, Sans-serif; padding-left: 10px">
						<b>Shipping Information</b></span></font>
						<font size="6" color="#FFFF00">:</font></p>
	<p>
						<font color="#FFFF00First Name <font size="6">:</font>&nbsp;&nbsp;&nbsp;
						<!--webbot bot="Validation" s-display-name="First Name" s-data-type="String" b-allow-letters="TRUE" b-allow-digits="TRUE" b-allow-whitespace="TRUE" b-value-required="TRUE" i-minimum-length="2" i-maximum-length="30" -->
						<input type="text" name="T1" size="20" style="border-style: double; border-width: 1px" maxlength="30"></font></p>
		<p>
						<font color="#FFFF00						Last Name <font size="6">:</font>&nbsp;&nbsp;&nbsp;<!--webbot bot="Validation" s-display-name="Last Name" s-data-type="String" b-allow-letters="TRUE" b-allow-digits="TRUE" b-allow-whitespace="TRUE" b-value-required="TRUE" i-minimum-length="2" i-maximum-length="30" --><input type="text" name="T2" size="20" style="border-style: double; border-width: 1px" maxlength="30"></font></p>
		<p>
						<font color="#FFFF00						Street Address <font size="6">:&nbsp;
						<!--webbot bot="Validation" s-display-name="Address" s-data-type="String" b-allow-letters="TRUE" b-allow-digits="TRUE" b-allow-whitespace="TRUE" b-value-required="TRUE" i-minimum-length="2" i-maximum-length="40" -->
						<input type="text" name="T3" size="20" style="border-style: double; border-width: 1px" maxlength="40"></font></font></p>
		<p>
						<font color="#FFFF00City <font size="6">:&nbsp;<!--webbot bot="Validation" s-display-name="City" s-data-type="String" b-allow-letters="TRUE" b-allow-digits="TRUE" b-allow-whitespace="TRUE" b-value-required="TRUE" i-minimum-length="2" i-maximum-length="30" --><input type="text" name="T4" size="20" style="border-style: double; border-width: 1px" maxlength="30"></font></font></p>
						<p><font color="#FFFF00 State/Province
						<font size="6">: 
						<select size="1" name="D1" style="border: 1px double #000000">
						<OPTION VALUE="AL">Alabama
<OPTION VALUE="AK">Alaska
<OPTION VALUE="AZ">Arizona
<OPTION VALUE="AR">Arkansas
<OPTION VALUE="CA">California
<OPTION VALUE="CO">Colorado
<OPTION VALUE="CT">Connecticut
<OPTION VALUE="DE">Delaware
<OPTION VALUE="DC">District of Columbia
<OPTION VALUE="FL">Florida
<OPTION VALUE="GA">Georgia
<OPTION VALUE="HI">Hawaii
<OPTION VALUE="ID">Idaho
<OPTION VALUE="IL">Illinois
<OPTION VALUE="IN">Indiana
<OPTION VALUE="IA">Iowa
<OPTION VALUE="KS">Kansas
<OPTION VALUE="KY">Kentucky
<OPTION VALUE="LA">Louisiana
<OPTION VALUE="ME">Maine
<OPTION VALUE="MD">Maryland
<OPTION VALUE="MA">Massachusetts
<OPTION VALUE="MI">Michigan
<OPTION VALUE="MN">Minnesota
<OPTION VALUE="MS">Mississippi
<OPTION VALUE="MO">Missouri
<OPTION VALUE="MT">Montana
<OPTION VALUE="NE">Nebraska
<OPTION VALUE="NV">Nevada
<OPTION VALUE="NH">New Hampshire
<OPTION VALUE="NJ">New Jersey
<OPTION VALUE="NM">New Mexico
<OPTION VALUE="NY">New York
<OPTION VALUE="NC">North Carolina
<OPTION VALUE="ND">North Dakota
<OPTION VALUE="OH">Ohio
<OPTION VALUE="OK">Oklahoma
<OPTION VALUE="OR">Oregon
<OPTION VALUE="PA">Pennsylvania
<OPTION VALUE="RI">Rhode Island
<OPTION VALUE="SC">South Carolina
<OPTION VALUE="SD">South Dakota
<OPTION VALUE="TN">Tennessee
<OPTION VALUE="TX">Texas
<OPTION VALUE="UT">Utah
<OPTION VALUE="VT">Vermont
<OPTION VALUE="VI">Virgin Islands
<OPTION VALUE="VA">Virginia
<OPTION VALUE="WA">Washington
<OPTION VALUE="WV">West Virginia
<OPTION VALUE="WI">Wisconsin
<OPTION VALUE="WY">Wyoming
<OPTION VALUE="AS">American Somoa
<OPTION VALUE="FM">F. St. of Micronesia
<OPTION VALUE="GU">Guam
<OPTION VALUE="MH">Marshall Islands
<OPTION VALUE="PW">Palau
<OPTION VALUE="PR">Puerto Rico
<OPTION VALUE="TT">Trust Territories
<OPTION VALUE="WL">Wake Island
<OPTION VALUE="">=======================
<OPTION VALUE="AB">Alberta
<OPTION VALUE="BC">British Columbia
<OPTION VALUE="MB">Manitoba
<OPTION VALUE="NB">New Brunswick
<OPTION VALUE="NF">Newfoundland
<OPTION VALUE="NT">Northwest Territories
<OPTION VALUE="NS">Nova Scotia
<OPTION VALUE="ON">Ontario
<OPTION VALUE="PE">Prince Edward Island
<OPTION VALUE="QC">Quebec
<OPTION VALUE="SK">Saskatchewan
<OPTION VALUE="YT">Yukon</option>
						</select></font></font><p><font color="#FFFF00 Zip/Postal Code</font><font size="6" color="#FFFF00">:
						</font>	<p><font color="#FFFF00		Your Age <font size="6">:&nbsp;<!--webbot bot="Validation" s-display-name="Age" b-value-required="TRUE" b-disallow-first-item="TRUE" --><select size="1" name="D2">
						<option selected>Your Age</option>
						<option>18 to 25</option>
						<option>25 to 30</option>
						<option>30 to 35</option>
						<option>35 to 40</option>
						<option>40 to 55</option>
						<option>56 to +</option>
						</select></font></font><p><font color="#FFFF00		<button name="B1" type="submit">Continue! >>></button</td>
		
</td>
		</form>

feyd | Please use[/syntax]

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Wed Nov 15, 2006 6:56 pm
by feyd
Urgent, huh? :roll:

Yes, it's possible for PHP to insert the username into a field. echo() for instance, may be of interest.