Jump to content

PHP forum processing help


scoobs001

Recommended Posts

Hiya folks, I'm making a wee website for myself, but i'm no expert on PHP,

 

I have got most things working apart from this,

 

I have a HTML form, that uses a PHP file to proccess the details and upload an image and save it to my server,

 

I got the code from a free thing and edited it to suit my needs,

 

 

What i am stuck on is, When the user submits the forum, i recieve an email with the details and the link to the image on my server,

 

Here is an example.

 

 

Name: Scott

Address: Address here,

Instructions:instructions for picture here,

E-mail: scoobs001@gmail.com

 

Type:

 

Image upload Path: http://www.digiars.co.uk/uploads/alloy-2.jpg

 

 

I have a radio group, named "type" ( as in the email above, there is no data submitted, ie,  I cannot get it to submit which radio button the user has selected, its just blank.

 

This is the part of the form with the radio group name is all the same, just the value is different which i believe is correct.

 

<input type="radio" name="type" value="Cartoon" />

</div></td>

<td><div align="center">

<input type="radio" name="type" value="Caricature" />

</div></td>

<td><div align="center">

<input type="radio" name="type" value="Standard" />

 

now for the bit i dont understand,

 

My php file recieves the variables? like this, (i thn=ink this is it just renaming them?)

 

an example of the name field.

 

// Receiving variables

@$Name = addslashes($_POST['Name']);

 

Then post it into the email like this below,

 

$pfw_message = "Name: $Name\n"

. "Address: $address\n"

. "Instructions: $instructions\n"

 

I was able to make new text boxes that work, but i cant ger the radio group to work,

 

I tried the listvalue (?) command or something, but just not sure how to recieve it and then post it into the email that is automaticly sent out.

 

I hope this post makes some sence to someone, cause its all jibber jabber to me!, but i do try  :)

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.