Jump to content

help with simple code


n00byboy

Recommended Posts

hi i am really new to php and i really need this badly

 

so i am trying to do something like this

 

http://www.cs.sfu.ca/CC/365/li/material/cgi-bin/wavelet.cgi

 

when u put a value between 1 to 100 it should give you the correspoding jpeg file

 

for eg if you put 50 it will show you 50.jpeg

 

so i need the php file for the form like wavelet.php

 

if anyone can help i would really appreciate it .:)

Link to comment
https://forums.phpfreaks.com/topic/126014-help-with-simple-code/
Share on other sites

so here is the form code

 

<FORM Method=POST Action="wavelet.cgi">

<input type=hidden name="image" value="p ">

 

 

here i want a wavelet.php

 

when a user puts a value for p which is betweeen 1 to 100 should return the p.jpeg file.

 

if someone puts a value of 50 for p then he should get 50.jpeg

First of all, don't capitalize unless your using PHP functions, and you need them capitolized, or you really need something to stand out; otherwise it's just annoying.

 

<form method="post" action="wavelet.cgi">
<input type="hidden" name="image" value="p">

 

Secondly atributes (ex. type=hidden) need to be in "'s... This is just basic conventions.

 

And last but not least:

 

If your looking for someone to write code for you post your request in the freelance board. Otherwise, post your code and issue here.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.