View Single Post
  #8  
Old 08-12-2006, 07:07 PM
navaldesign's Avatar
navaldesign navaldesign is offline
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,031
Default Re: Multipage Form Tutorial

It is quite simple, but you need a couple of lines in php, and of course, the page has to be saved as php and not as html.

Insert two editboxes (withour form, just the edit boxes) in your page, as in the picture bellow. Double click the first one (for the Date) and, as initial value, give it:
"<? echo(date("l jS F Y, g:i A")); ?>"

Do the same thing for the second (the IP address) , and as initial value give it: "<? echo $_SERVER['REMOTE_ADDR'];?>"








Of course, if you don't want the editboxes, you can simply insert two small html boxes in your page. In the first one, paste the date code: <? echo(date("l jS F Y, g:i A")); ?>

and in the second, the IP code: <? echo $_SERVER['REMOTE_ADDR'];?>

Move the boxes wherever you want them in your page.

Remember that in both cases, the page must be published as php.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Reply With Quote