Link to home
Start Free TrialLog in
Avatar of wayboo
waybooFlag for United States of America

asked on

PHP Form

Hi,
I'm very new to PHP so I'm looking for hints/ sample of how I can do the following

I need a simple front end where I would enter two variables in a form which will output the formatted results like below
variable1=test
variables=10.20.20.1

The formatted text will look like this and the whitespace will need to be taken into account

-------------------------------------
Place configuration as follows
Endpoint
      ,EndpointName=test
      ,EndpointIpAddress=10.20.20.1
--------------------------------------



   
ASKER CERTIFIED SOLUTION
Avatar of Roger Baklund
Roger Baklund
Flag of Norway image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
There should be an ending </pre> tag:
echo "<pre>Place configuration as follows
Endpoint
      ,EndpointName=".$_REQUEST['variable1']."
      ,EndpointIpAddress=".$_REQUEST['variables'].'</pre>';

Open in new window

Avatar of wayboo

ASKER

Thanks