Solved

Php newbie

Posted on 2004-09-24
3
230 Views
Last Modified: 2012-05-05
May i know where can i get the tutorial or guide to start my first php program?
In jsp i can write:
String col0 = request.getParameter("col0");
<a href="<%=col0 %>">Download</a>

But how to convert it to php?

thanks
0
Comment
Question by:guecl
  • 2
3 Comments
 
LVL 45

Assisted Solution

by:sunnycoder
sunnycoder earned 30 total points
ID: 12141714
Hi guecl,

http://www.php.net/tut.php

Sunnycoder
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 12141722
0
 
LVL 27

Accepted Solution

by:
Diablo84 earned 45 total points
ID: 12142049
Not great at ASP but im presuming the following is a reference to a form input

request.getParameter("col0");

so you would want

$var = $_POST['col0'];
echo '<a href="'.$var.'">download</a>';


Very good beginners site: http://www.w3schools.com/php/default.asp

Most basic php script to output "hello world":

<?php
echo "hello world";
?>
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question