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: [email protected]

 

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
https://forums.phpfreaks.com/topic/72297-php-forum-processing-help/
Share on other sites

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.